Skip to content
This repository was archived by the owner on Nov 11, 2019. It is now read-only.

Extended sniff to make sure there is one space before a curly#27

Merged
linaori merged 2 commits intohostnet:masterfrom
yannickl88:feature/curly-indent
Dec 5, 2017
Merged

Extended sniff to make sure there is one space before a curly#27
linaori merged 2 commits intohostnet:masterfrom
yannickl88:feature/curly-indent

Conversation

@yannickl88
Copy link
Member

This adds a sniff to force a space before a curly bracket.

example:

.good {
  color: #ffffff;
}
.bad{
  color: #ffffff;
}

if ($before->type !== Token::T_WHITESPACE || $before->chars !== ' ') {
$file->addViolation(
self::class,
'There must be one space before curly.',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

before a curly bracket.

@linaori linaori merged commit 82e2aba into hostnet:master Dec 5, 2017
@yannickl88 yannickl88 deleted the feature/curly-indent branch December 5, 2017 07:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants