Skip to content

Commit

Permalink
Fix #61 Remove deprecated rule selector-naming-convention
Browse files Browse the repository at this point in the history
  • Loading branch information
racodond committed Sep 14, 2017
1 parent 2eb0d6b commit 77c0bd2
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 326 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ It computes the complexity/rule, meaning the average number of selectors per rul
* Regular expression on property
* Regular expression on unit
* Rule properties should be alphabetically ordered
* Selectors should follow a naming convention
* Shorthand properties should be used whenever possible
* Shorthand properties should not be used
* Single quotes should be used instead of double quotes for strings
Expand Down
2 changes: 0 additions & 2 deletions css-checks/src/main/java/org/sonar/css/checks/CheckList.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ private static List<Class> getCommonChecks() {
QuotedGenericFontFamilyNamesCheck.class,
QuotedUrlCheck.class,
SelectorLikeRegExCheck.class,
SelectorNamingConventionCheck.class,
SelectorNumberCheck.class,
SemicolonDeclarationCheck.class,
SingleQuotesCheck.class,
Expand Down Expand Up @@ -249,7 +248,6 @@ public static List<Class> getEmbeddedCssChecks() {
QuotedGenericFontFamilyNamesCheck.class,
QuotedUrlCheck.class,
SelectorLikeRegExCheck.class,
SelectorNamingConventionCheck.class,
SelectorNumberCheck.class,
SemicolonDeclarationCheck.class,
SingleQuotesCheck.class,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ public StyleSheetTreeTest() {
public void stylesheet() throws Exception {
StyleSheetTree tree;

tree = checkParsed(".abc { .space; }");
assertThat(tree.atRules()).isEmpty();

checkParsed("");
checkParsed(" ");
checkParsed(" ");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
59,
65,
71,
87,g
87,
101,
106,
111,
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void test() {

assertThat(repository.name()).isEqualTo("SonarQube");
assertThat(repository.language()).isEqualTo("css");
assertThat(repository.rules()).hasSize(88);
assertThat(repository.rules()).hasSize(87);
assertThat(CheckList.getEmbeddedCssChecks()).hasSize(repository.rules().size() - 6);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void test() {

assertThat(repository.name()).isEqualTo("SonarQube");
assertThat(repository.language()).isEqualTo("less");
assertThat(repository.rules()).hasSize(89);
assertThat(repository.rules()).hasSize(88);

RulesDefinition.Rule rule = repository.rule(DeprecatedEscapingFunctionCheck.class.getAnnotation(Rule.class).key());
assertThat(rule).isNotNull();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void test() {

assertThat(repository.name()).isEqualTo("SonarQube");
assertThat(repository.language()).isEqualTo("scss");
assertThat(repository.rules()).hasSize(100);
assertThat(repository.rules()).hasSize(99);

RulesDefinition.Rule rule = repository.rule(ScssVariableNamingConventionCheck.class.getAnnotation(Rule.class).key());
assertThat(rule).isNotNull();
Expand Down

0 comments on commit 77c0bd2

Please sign in to comment.