govuk-lint 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 25ba5005ed423fceed215a1352eb2466773ca945
4
- data.tar.gz: 12c4a204245a3b55f9ccab292cda9f1b33ac4fd2
3
+ metadata.gz: 3b6e7534142c5135038f8f2356caa28230e9ad8f
4
+ data.tar.gz: 007271aae33c43c66995d72100b210eccae947f5
5
5
  SHA512:
6
- metadata.gz: ab2588d736b6fbe54080d45b4fc587becc89c7e097656063443443e1d61fc8d077e11b2a9ce1863964749ade4a5dd8abedb811a6dcaf4dd07ba1e9ec329e7743
7
- data.tar.gz: 3f84dd71c4fe7f433f9b579607a4cd1819cefe0c78dcfbea992d7ffbfd9d5d1c96014e5083e1555180d59c3f30601568c33f54d0f30e7d59092572467f1d23f4
6
+ metadata.gz: f24265d32db57b2a39d7e40d5bba926eabfed2c55df3af28a30072f3b0910aa146c6186c99b8698b800efe80c8e7b1f427bcedd8d0d37cc2cd165c2a98f28c45
7
+ data.tar.gz: dcf7dfc12cc804a1f5f36b37ec83d5cf3df2d28e0317bc1cca3927985d4525dc1a77dc936e27dd89e1526547e38a22962d4f0b56265d37d97da1c35180da2053
@@ -0,0 +1,208 @@
1
+ # Default severity of all linters.
2
+ severity: warning
3
+
4
+ linters:
5
+ BangFormat:
6
+ enabled: true
7
+ space_before_bang: true
8
+ space_after_bang: false
9
+
10
+ BemDepth:
11
+ enabled: false
12
+
13
+ BorderZero:
14
+ enabled: false
15
+
16
+ ChainedClasses:
17
+ enabled: false
18
+
19
+ ColorKeyword:
20
+ enabled: true
21
+
22
+ ColorVariable:
23
+ enabled: true
24
+
25
+ Comment:
26
+ enabled: true
27
+ style: silent
28
+
29
+ DebugStatement:
30
+ enabled: true
31
+
32
+ DeclarationOrder:
33
+ enabled: false
34
+
35
+ DisableLinterReason:
36
+ enabled: false
37
+
38
+ DuplicateProperty:
39
+ enabled: true
40
+
41
+ ElsePlacement:
42
+ enabled: true
43
+ style: same_line
44
+
45
+ EmptyLineBetweenBlocks:
46
+ enabled: true
47
+ ignore_single_line_blocks: true
48
+
49
+ EmptyRule:
50
+ enabled: true
51
+
52
+ ExtendDirective:
53
+ enabled: false
54
+
55
+ FinalNewline:
56
+ enabled: true
57
+ present: true
58
+
59
+ HexLength:
60
+ enabled: false
61
+
62
+ HexNotation:
63
+ enabled: false # colours should be variables
64
+ style: lowercase
65
+
66
+ HexValidation:
67
+ enabled: true
68
+
69
+ IdSelector:
70
+ enabled: true
71
+
72
+ ImportantRule:
73
+ enabled: false
74
+
75
+ ImportPath:
76
+ enabled: true
77
+ leading_underscore: false
78
+ filename_extension: false
79
+
80
+ Indentation:
81
+ enabled: true
82
+ allow_non_nested_indentation: false
83
+ character: space
84
+ width: 2
85
+
86
+ LeadingZero:
87
+ enabled: false
88
+
89
+ MergeableSelector:
90
+ enabled: false
91
+
92
+ NameFormat:
93
+ enabled: true
94
+ allow_leading_underscore: true
95
+ convention: hyphenated_lowercase
96
+
97
+ NestingDepth:
98
+ enabled: true
99
+ max_depth: 5 # ideally 3
100
+ ignore_parent_selectors: true
101
+
102
+ PlaceholderInExtend:
103
+ enabled: true
104
+
105
+ PropertyCount:
106
+ enabled: false
107
+
108
+ PropertySortOrder:
109
+ enabled: false
110
+
111
+ PropertySpelling:
112
+ enabled: false # avoid false positives on new CSS features
113
+
114
+ PropertyUnits:
115
+ enabled: false
116
+
117
+ PseudoElement:
118
+ enabled: false # using `:after` is acceptable for older browsers
119
+
120
+ QualifyingElement:
121
+ enabled: true
122
+ allow_element_with_attribute: true # eg elements based on aria attributes
123
+ allow_element_with_class: false
124
+ allow_element_with_id: false
125
+
126
+ SelectorDepth:
127
+ enabled: false
128
+
129
+ SelectorFormat:
130
+ enabled: true
131
+ convention: hyphenated_lowercase
132
+
133
+ Shorthand:
134
+ enabled: true
135
+ allowed_shorthands: [1, 2, 3]
136
+
137
+ SingleLinePerProperty:
138
+ enabled: true
139
+ allow_single_line_rule_sets: true
140
+
141
+ SingleLinePerSelector:
142
+ enabled: true
143
+
144
+ SpaceAfterComma:
145
+ enabled: true
146
+ style: one_space
147
+
148
+ SpaceAfterPropertyColon:
149
+ enabled: true
150
+ style: one_space
151
+
152
+ SpaceAfterPropertyName:
153
+ enabled: true
154
+
155
+ SpaceAfterVariableName:
156
+ enabled: true
157
+
158
+ SpaceAroundOperator:
159
+ enabled: true
160
+ style: one_space
161
+
162
+ SpaceBeforeBrace:
163
+ enabled: true
164
+ style: space
165
+ allow_single_line_padding: true
166
+
167
+ SpaceBetweenParens:
168
+ enabled: false
169
+
170
+ StringQuotes:
171
+ enabled: false
172
+
173
+ TrailingSemicolon:
174
+ enabled: true
175
+
176
+ TrailingWhitespace:
177
+ enabled: true
178
+
179
+ TrailingZero:
180
+ enabled: true
181
+
182
+ TransitionAll:
183
+ enabled: true
184
+
185
+ UnnecessaryMantissa:
186
+ enabled: true
187
+
188
+ UnnecessaryParentReference:
189
+ enabled: true
190
+
191
+ UrlFormat:
192
+ enabled: true
193
+
194
+ UrlQuotes:
195
+ enabled: true
196
+
197
+ VariableForProperty:
198
+ enabled: false
199
+ properties: []
200
+
201
+ VendorPrefix:
202
+ enabled: false
203
+
204
+ ZeroUnit:
205
+ enabled: true
206
+
207
+ Compass::*:
208
+ enabled: false
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module Lint
3
- VERSION = "0.6.0"
3
+ VERSION = "0.6.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk-lint
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Government Digital Service
@@ -112,6 +112,7 @@ files:
112
112
  - configs/rubocop/other-metrics.yml
113
113
  - configs/rubocop/other-rails.yml
114
114
  - configs/rubocop/other-style.yml
115
+ - configs/scss_lint/gds-sass-styleguide.yml
115
116
  - lib/govuk/lint.rb
116
117
  - lib/govuk/lint/cli.rb
117
118
  - lib/govuk/lint/config_file.rb