Skip to content

Commit 77c0bd2

Browse files
committed
Fix #61 Remove deprecated rule selector-naming-convention
1 parent 2eb0d6b commit 77c0bd2

File tree

13 files changed

+4
-326
lines changed

13 files changed

+4
-326
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,6 @@ It computes the complexity/rule, meaning the average number of selectors per rul
152152
* Regular expression on property
153153
* Regular expression on unit
154154
* Rule properties should be alphabetically ordered
155-
* Selectors should follow a naming convention
156155
* Shorthand properties should be used whenever possible
157156
* Shorthand properties should not be used
158157
* Single quotes should be used instead of double quotes for strings

css-checks/src/main/java/org/sonar/css/checks/CheckList.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ private static List<Class> getCommonChecks() {
167167
QuotedGenericFontFamilyNamesCheck.class,
168168
QuotedUrlCheck.class,
169169
SelectorLikeRegExCheck.class,
170-
SelectorNamingConventionCheck.class,
171170
SelectorNumberCheck.class,
172171
SemicolonDeclarationCheck.class,
173172
SingleQuotesCheck.class,
@@ -249,7 +248,6 @@ public static List<Class> getEmbeddedCssChecks() {
249248
QuotedGenericFontFamilyNamesCheck.class,
250249
QuotedUrlCheck.class,
251250
SelectorLikeRegExCheck.class,
252-
SelectorNamingConventionCheck.class,
253251
SelectorNumberCheck.class,
254252
SemicolonDeclarationCheck.class,
255253
SingleQuotesCheck.class,

css-checks/src/main/java/org/sonar/css/checks/common/SelectorNamingConventionCheck.java

Lines changed: 0 additions & 109 deletions
This file was deleted.

css-checks/src/main/resources/org/sonar/css/checks/l10n/common/template/selector-naming-convention.html

Lines changed: 0 additions & 61 deletions
This file was deleted.

css-checks/src/test/java/org/sonar/css/checks/common/SelectorNamingConventionCheckTest.java

Lines changed: 0 additions & 75 deletions
This file was deleted.

css-frontend/src/test/java/org/sonar/css/parser/less/StyleSheetTreeTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ public StyleSheetTreeTest() {
3939
public void stylesheet() throws Exception {
4040
StyleSheetTree tree;
4141

42-
tree = checkParsed(".abc { .space; }");
43-
assertThat(tree.atRules()).isEmpty();
44-
4542
checkParsed("");
4643
checkParsed(" ");
4744
checkParsed(" ");

its/ruling/tests/src/test/expected/css-alphabetize-declarations.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
59,
55
65,
66
71,
7-
87,g
7+
87,
88
101,
99
106,
1010
111,

its/ruling/tests/src/test/expected/css-selector-naming-convention.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

its/ruling/tests/src/test/expected/less-selector-naming-convention.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

its/ruling/tests/src/test/expected/scss-selector-naming-convention.json

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)