Skip to content
This repository has been 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
merged 2 commits into from
Dec 5, 2017
Merged

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

merged 2 commits into from
Dec 5, 2017

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