rubocop-govuk 3.17.1 → 4.1.0

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
  SHA256:
3
- metadata.gz: 8ef0a8b1f526bdba1c8152abe1e2c64899667bae4333034e8fe522860a96fedc
4
- data.tar.gz: ae376a5117e15ba9ce86e83524df9422c6211d56f3298a24344101ac5cfb24e3
3
+ metadata.gz: 414ff4213da8a8ea70821cb630647952e771f98d01279d790463a92bcf350ac2
4
+ data.tar.gz: 7db52250855d45d7315911320daa0f659c2a0f646d708b5ad94f6ab21de052e1
5
5
  SHA512:
6
- metadata.gz: 3f8c2597c64a1842bb5e8c5a9a78fb7dac3b898865c3da60dfad238a0c022ff95bf32cb2f3bee1ffe2ab7e9897378c93670ced073d428613e4bc1267c9e662a5
7
- data.tar.gz: 32b99fa71506c6314f783ae30b84f077ec56de20dc6a27f1530fb829581b7b0cbf7404d5cc70aaa1761792f60b886865f2736cddddb125c0ae3b1792a48a7ee9
6
+ metadata.gz: ec499801f4cd3ebfa79c4bca8a996cdc5534d86e6cef016b4e0c6668ce1c4baf0115d797197cf693e1821dc428ac37249bda3629e83d6aebc80816229bb1b09f
7
+ data.tar.gz: 5821f363ebc0ee793bc6cf9469b91dbdf3e4f6ca4d8de54e7ce5ab3811e5b59f9218beae08053e5fade8ca5b250163bb07bf37a080c35d17ce1370875ac3b15e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,46 @@
1
+ # 4.1.0
2
+
3
+ - Update rubocop to 1.21.0
4
+ - Update rubocop-ast to 1.11.0
5
+ - Update rubocop-rails to 2.12.0
6
+ - Update rubocop-rspec to 2.4.0
7
+ - Update rubocop-rake to 0.6.0
8
+
9
+ # 4.0.0
10
+
11
+ - Update rubocop to 1.15.0
12
+ - Update rubocop-ast to 1.6.0
13
+ - Update rubocop-rails to 2.10.0
14
+ - Update rubocop-rspec to 2.3.0
15
+
16
+ # 4.0.0.pre.1
17
+
18
+ - Released as a pre-release to try surface any issues before wider rollout,
19
+ use https://github.com/alphagov/rubocop-govuk/issues/129 to record any
20
+ problems
21
+ - BREAKING: Upgraded from Rubocop 0.x to 1.x which introduces lots of new
22
+ cops
23
+ - Update rubocop to 1.10.0
24
+ - Update rubocop-ast to 1.4.0
25
+ - Update rubocop-rails to 2.9.1
26
+ - Update rubocop-rspec to 2.2.0
27
+ - Make stable dependencies (>= 1.0) less strict on patch version
28
+ - Disable `SuggestExtensions` to stop Rubocop suggesting additional
29
+ extensions at runtime
30
+ - Explicitly set target Ruby version to `>= 2.6` in gemspec
31
+ - Downgrade local Ruby version to `2.6.6` to capture lowest supported
32
+ Ruby version
33
+ - Fix namespace change of `Capybara/FeatureMethods`
34
+ - Disable `Naming/VariableNumbers`
35
+
36
+ # 4.0.0.pre.pre.1
37
+
38
+ - Mistakenly named release, same as 4.0.0.pre.1
39
+
40
+ # 3.17.2
41
+
42
+ - Rename Blacklist to ForbiddenMethods to fix rubocop-rails warnings
43
+
1
44
  # 3.17.1
2
45
 
3
46
  - Pin rubocop-ast to 0.8.0
data/README.md CHANGED
@@ -8,7 +8,7 @@ Add `rubocop-govuk` to your Gemfile and then run `bundle install`:
8
8
 
9
9
  ```ruby
10
10
  # Gemfile
11
- gem 'rubocop-govuk'
11
+ gem 'rubocop-govuk', require: false
12
12
  ```
13
13
 
14
14
  Then inherit the default rules by adding the following in your project:
data/config/capybara.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  # Within GOV.UK we use Capybara test method syntax of feature,
2
2
  # scenario. We don't want this outside of feature specs though.
3
- Capybara/FeatureMethods:
3
+ RSpec/Capybara/FeatureMethods:
4
4
  Exclude:
5
5
  - 'spec/features/**/*.rb'
data/config/default.yml CHANGED
@@ -1,5 +1,6 @@
1
1
  AllCops:
2
2
  NewCops: disable
3
+ SuggestExtensions: false
3
4
  Exclude:
4
5
  - 'bin/**'
5
6
  - 'config.ru'
data/config/naming.yml CHANGED
@@ -19,3 +19,10 @@ Naming/AccessorMethodName:
19
19
  # repos, which would require manual intervention.
20
20
  Naming/PredicateName:
21
21
  Enabled: false
22
+
23
+ # This rule can cause readability issues when applied (for example
24
+ # `born_on_or_before_6_april_1935` becomes `born_on_or_before_6april1935`)
25
+ # and would require lots of amends to apply either `normalcase`
26
+ # or `snake_case` to projects. It is not auto-correctable.
27
+ Naming/VariableNumber:
28
+ Enabled: false
data/config/rails.yml CHANGED
@@ -36,7 +36,7 @@ Rails/Output:
36
36
  # no efficient alternative. Instead, we should only enable
37
37
  # this Cop for methods that have a clear alternative.
38
38
  Rails/SkipsModelValidations:
39
- Blacklist:
39
+ ForbiddenMethods:
40
40
  - update_attribute
41
41
 
42
42
  # While using has_many/through does have some advantages,
data/config/rspec.yml CHANGED
@@ -10,6 +10,11 @@ inherit_from:
10
10
  RSpec/ExampleLength:
11
11
  Enabled: false
12
12
 
13
+ # We should avoid cops that are based on heuristics, since
14
+ # it's not clear what action to take to fix an issue.
15
+ RSpec/MultipleMemoizedHelpers:
16
+ Enabled: false
17
+
13
18
  # We have common cases, such as rake tasks, where we do not
14
19
  # use a class to the describe the test.
15
20
  RSpec/DescribeClass:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-govuk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.17.1
4
+ version: 4.1.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: 2020-10-13 00:00:00.000000000 Z
11
+ date: 2021-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -30,70 +30,70 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.87.1
33
+ version: 1.21.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.87.1
40
+ version: 1.21.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-ast
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 0.8.0
47
+ version: 1.11.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 0.8.0
54
+ version: 1.11.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 2.8.1
61
+ version: 2.12.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 2.8.1
68
+ version: 2.12.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.5.1
75
+ version: 0.6.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.5.1
82
+ version: 0.6.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop-rspec
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - '='
88
88
  - !ruby/object:Gem::Version
89
- version: 1.42.0
89
+ version: 2.4.0
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 1.42.0
96
+ version: 2.4.0
97
97
  description: Shared RuboCop rules for Ruby projects in GOV.UK
98
98
  email:
99
99
  - govuk-dev@digital.cabinet-office.gov.uk
@@ -125,14 +125,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
125
  requirements:
126
126
  - - ">="
127
127
  - !ruby/object:Gem::Version
128
- version: '0'
128
+ version: '2.6'
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  requirements:
131
131
  - - ">="
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
134
  requirements: []
135
- rubygems_version: 3.1.4
135
+ rubygems_version: 3.2.27
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: RuboCop GOV.UK