govuk-lint 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/configs/rubocop/other-lint.yml +29 -29
- data/lib/govuk/lint/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 29ae063fd0a4c66e3920abe351af2c2519820ffa
|
|
4
|
+
data.tar.gz: 82613a747328ca9e5acd4dbb01330e981c6e7acb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 59a094d021df7d08ea74fb2663c459ead842ae67b0a974164f3622daabaf3f8ed5efc84ecc0cd6d671fe15d6a97a147c03f86b078ee7ca8cb41c0cca578b29dc
|
|
7
|
+
data.tar.gz: 1bff1b039e47086deee314fe6429ba4a6002c15ee7cfa68c689c324aa48bd83bc9017420355a88aa013ce99c0cf461c2815784babbb942cf129a5840209ae7a0
|
|
@@ -2,130 +2,130 @@ AmbiguousOperator:
|
|
|
2
2
|
Description: >-
|
|
3
3
|
Checks for ambiguous operators in the first argument of a
|
|
4
4
|
method invocation without parentheses.
|
|
5
|
-
Enabled:
|
|
5
|
+
Enabled: true
|
|
6
6
|
|
|
7
7
|
AmbiguousRegexpLiteral:
|
|
8
8
|
Description: >-
|
|
9
9
|
Checks for ambiguous regexp literals in the first argument of
|
|
10
10
|
a method invocation without parenthesis.
|
|
11
|
-
Enabled:
|
|
11
|
+
Enabled: true
|
|
12
12
|
|
|
13
13
|
AssignmentInCondition:
|
|
14
14
|
Description: "Don't use assignment in conditions."
|
|
15
|
-
Enabled:
|
|
15
|
+
Enabled: true
|
|
16
16
|
|
|
17
17
|
ConditionPosition:
|
|
18
18
|
Description: 'Checks for condition placed in a confusing position relative to the keyword.'
|
|
19
|
-
Enabled:
|
|
19
|
+
Enabled: true
|
|
20
20
|
|
|
21
21
|
Debugger:
|
|
22
22
|
Description: 'Check for debugger calls.'
|
|
23
|
-
Enabled:
|
|
23
|
+
Enabled: true
|
|
24
24
|
|
|
25
25
|
DeprecatedClassMethods:
|
|
26
26
|
Description: 'Check for deprecated class method calls.'
|
|
27
|
-
Enabled:
|
|
27
|
+
Enabled: true
|
|
28
28
|
|
|
29
29
|
EmptyEnsure:
|
|
30
30
|
Description: 'Checks for empty ensure block.'
|
|
31
|
-
Enabled:
|
|
31
|
+
Enabled: true
|
|
32
32
|
|
|
33
33
|
EmptyInterpolation:
|
|
34
34
|
Description: 'Checks for empty string interpolation.'
|
|
35
|
-
Enabled:
|
|
35
|
+
Enabled: true
|
|
36
36
|
|
|
37
37
|
EndInMethod:
|
|
38
38
|
Description: 'END blocks should not be placed inside method definitions.'
|
|
39
|
-
Enabled:
|
|
39
|
+
Enabled: true
|
|
40
40
|
|
|
41
41
|
EnsureReturn:
|
|
42
42
|
Description: 'Never use return in an ensure block.'
|
|
43
|
-
Enabled:
|
|
43
|
+
Enabled: true
|
|
44
44
|
|
|
45
45
|
Eval:
|
|
46
46
|
Description: 'The use of eval represents a serious security risk.'
|
|
47
|
-
Enabled:
|
|
47
|
+
Enabled: true
|
|
48
48
|
|
|
49
49
|
HandleExceptions:
|
|
50
50
|
Description: "Don't suppress exception."
|
|
51
|
-
Enabled:
|
|
51
|
+
Enabled: true
|
|
52
52
|
|
|
53
53
|
InvalidCharacterLiteral:
|
|
54
54
|
Description: >-
|
|
55
55
|
Checks for invalid character literals with a non-escaped
|
|
56
56
|
whitespace character.
|
|
57
|
-
Enabled:
|
|
57
|
+
Enabled: true
|
|
58
58
|
|
|
59
59
|
LiteralInCondition:
|
|
60
60
|
Description: 'Checks of literals used in conditions.'
|
|
61
|
-
Enabled:
|
|
61
|
+
Enabled: true
|
|
62
62
|
|
|
63
63
|
LiteralInInterpolation:
|
|
64
64
|
Description: 'Checks for literals used in interpolation.'
|
|
65
|
-
Enabled:
|
|
65
|
+
Enabled: true
|
|
66
66
|
|
|
67
67
|
Loop:
|
|
68
68
|
Description: >-
|
|
69
69
|
Use Kernel#loop with break rather than begin/end/until or
|
|
70
70
|
begin/end/while for post-loop tests.
|
|
71
|
-
Enabled:
|
|
71
|
+
Enabled: true
|
|
72
72
|
|
|
73
73
|
ParenthesesAsGroupedExpression:
|
|
74
74
|
Description: >-
|
|
75
75
|
Checks for method calls with a space before the opening
|
|
76
76
|
parenthesis.
|
|
77
|
-
Enabled:
|
|
77
|
+
Enabled: true
|
|
78
78
|
|
|
79
79
|
RequireParentheses:
|
|
80
80
|
Description: >-
|
|
81
81
|
Use parentheses in the method call to avoid confusion
|
|
82
82
|
about precedence.
|
|
83
|
-
Enabled:
|
|
83
|
+
Enabled: true
|
|
84
84
|
|
|
85
85
|
ShadowingOuterLocalVariable:
|
|
86
86
|
Description: >-
|
|
87
87
|
Do not use the same name as outer local variable
|
|
88
88
|
for block arguments or block local variables.
|
|
89
|
-
Enabled:
|
|
89
|
+
Enabled: true
|
|
90
90
|
|
|
91
91
|
SpaceBeforeFirstArg:
|
|
92
92
|
Description: >-
|
|
93
93
|
Put a space between a method name and the first argument
|
|
94
94
|
in a method call without parentheses.
|
|
95
|
-
Enabled:
|
|
95
|
+
Enabled: true
|
|
96
96
|
|
|
97
97
|
UnderscorePrefixedVariableName:
|
|
98
98
|
Description: 'Do not use prefix `_` for a variable that is used.'
|
|
99
|
-
Enabled:
|
|
99
|
+
Enabled: true
|
|
100
100
|
|
|
101
101
|
UnusedMethodArgument:
|
|
102
102
|
Description: 'Checks for unused method arguments.'
|
|
103
|
-
Enabled:
|
|
103
|
+
Enabled: true
|
|
104
104
|
|
|
105
105
|
UnreachableCode:
|
|
106
106
|
Description: 'Unreachable code.'
|
|
107
|
-
Enabled:
|
|
107
|
+
Enabled: true
|
|
108
108
|
|
|
109
109
|
UselessAccessModifier:
|
|
110
110
|
Description: 'Checks for useless access modifiers.'
|
|
111
|
-
Enabled:
|
|
111
|
+
Enabled: true
|
|
112
112
|
|
|
113
113
|
UselessAssignment:
|
|
114
114
|
Description: 'Checks for useless assignment to a local variable.'
|
|
115
|
-
Enabled:
|
|
115
|
+
Enabled: true
|
|
116
116
|
|
|
117
117
|
UselessComparison:
|
|
118
118
|
Description: 'Checks for comparison of something with itself.'
|
|
119
|
-
Enabled:
|
|
119
|
+
Enabled: true
|
|
120
120
|
|
|
121
121
|
UselessElseWithoutRescue:
|
|
122
122
|
Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
|
|
123
|
-
Enabled:
|
|
123
|
+
Enabled: true
|
|
124
124
|
|
|
125
125
|
UselessSetterCall:
|
|
126
126
|
Description: 'Checks for useless setter call to a local variable.'
|
|
127
|
-
Enabled:
|
|
127
|
+
Enabled: true
|
|
128
128
|
|
|
129
129
|
Void:
|
|
130
130
|
Description: 'Possible use of operator/literal/variable in void context.'
|
|
131
|
-
Enabled:
|
|
131
|
+
Enabled: true
|
data/lib/govuk/lint/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk-lint
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.5.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Government Digital Service
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-11-
|
|
11
|
+
date: 2015-11-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|