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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e53cb75e191208e26bfb52195f601096b60b5bb6
4
- data.tar.gz: 19057c0ef06055e1f62c72d5c5bd5947f85d64fb
3
+ metadata.gz: 29ae063fd0a4c66e3920abe351af2c2519820ffa
4
+ data.tar.gz: 82613a747328ca9e5acd4dbb01330e981c6e7acb
5
5
  SHA512:
6
- metadata.gz: d56fbb3dd30915524ed9f08c11a482309f5d8670e4d37b7129f8a31d5d64b0f0ca78e6c1a5d55c309e2a5fcb55c5569890d9569736cd05e55e727d51673ee098
7
- data.tar.gz: ae3b2a7b0339d8bdd427c3c5e52eba90bb4901b57dd079bfb3542167226aba5195051ef81db46789ee6901854236fcdbd138e0464936d93fef40c426a7c549f5
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: false
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: false
11
+ Enabled: true
12
12
 
13
13
  AssignmentInCondition:
14
14
  Description: "Don't use assignment in conditions."
15
- Enabled: false
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: false
19
+ Enabled: true
20
20
 
21
21
  Debugger:
22
22
  Description: 'Check for debugger calls.'
23
- Enabled: false
23
+ Enabled: true
24
24
 
25
25
  DeprecatedClassMethods:
26
26
  Description: 'Check for deprecated class method calls.'
27
- Enabled: false
27
+ Enabled: true
28
28
 
29
29
  EmptyEnsure:
30
30
  Description: 'Checks for empty ensure block.'
31
- Enabled: false
31
+ Enabled: true
32
32
 
33
33
  EmptyInterpolation:
34
34
  Description: 'Checks for empty string interpolation.'
35
- Enabled: false
35
+ Enabled: true
36
36
 
37
37
  EndInMethod:
38
38
  Description: 'END blocks should not be placed inside method definitions.'
39
- Enabled: false
39
+ Enabled: true
40
40
 
41
41
  EnsureReturn:
42
42
  Description: 'Never use return in an ensure block.'
43
- Enabled: false
43
+ Enabled: true
44
44
 
45
45
  Eval:
46
46
  Description: 'The use of eval represents a serious security risk.'
47
- Enabled: false
47
+ Enabled: true
48
48
 
49
49
  HandleExceptions:
50
50
  Description: "Don't suppress exception."
51
- Enabled: false
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: false
57
+ Enabled: true
58
58
 
59
59
  LiteralInCondition:
60
60
  Description: 'Checks of literals used in conditions.'
61
- Enabled: false
61
+ Enabled: true
62
62
 
63
63
  LiteralInInterpolation:
64
64
  Description: 'Checks for literals used in interpolation.'
65
- Enabled: false
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: false
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: false
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: false
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: false
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: false
95
+ Enabled: true
96
96
 
97
97
  UnderscorePrefixedVariableName:
98
98
  Description: 'Do not use prefix `_` for a variable that is used.'
99
- Enabled: false
99
+ Enabled: true
100
100
 
101
101
  UnusedMethodArgument:
102
102
  Description: 'Checks for unused method arguments.'
103
- Enabled: false
103
+ Enabled: true
104
104
 
105
105
  UnreachableCode:
106
106
  Description: 'Unreachable code.'
107
- Enabled: false
107
+ Enabled: true
108
108
 
109
109
  UselessAccessModifier:
110
110
  Description: 'Checks for useless access modifiers.'
111
- Enabled: false
111
+ Enabled: true
112
112
 
113
113
  UselessAssignment:
114
114
  Description: 'Checks for useless assignment to a local variable.'
115
- Enabled: false
115
+ Enabled: true
116
116
 
117
117
  UselessComparison:
118
118
  Description: 'Checks for comparison of something with itself.'
119
- Enabled: false
119
+ Enabled: true
120
120
 
121
121
  UselessElseWithoutRescue:
122
122
  Description: 'Checks for useless `else` in `begin..end` without `rescue`.'
123
- Enabled: false
123
+ Enabled: true
124
124
 
125
125
  UselessSetterCall:
126
126
  Description: 'Checks for useless setter call to a local variable.'
127
- Enabled: false
127
+ Enabled: true
128
128
 
129
129
  Void:
130
130
  Description: 'Possible use of operator/literal/variable in void context.'
131
- Enabled: false
131
+ Enabled: true
@@ -1,5 +1,5 @@
1
1
  module Govuk
2
2
  module Lint
3
- VERSION = "0.4.1"
3
+ VERSION = "0.5.0"
4
4
  end
5
5
  end
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.1
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-02 00:00:00.000000000 Z
11
+ date: 2015-11-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler