publishing_platform_rubocop 0.1.0 → 0.2.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
  SHA256:
3
- metadata.gz: f27137d2bfe4b25d99f0ac251051e50b8c8a7e4c5f0d362cd81384d1074b3070
4
- data.tar.gz: b3ad74d780bd5cf98ee1a2e32f397df408978ab334a44bfd832beb77560533dd
3
+ metadata.gz: 6d2ed8ccb002b39721de85f8552479aef2d59361148441003c58ef3d209cfb3d
4
+ data.tar.gz: 8fefc46f76a6711801389691002b0eb3133007031435e5e0e46845fb52f43bd2
5
5
  SHA512:
6
- metadata.gz: e3175569084735053a97c4f0282f1e15eac69f8a877ea0d2f7e0ed38571e23bd3665a3369947eae5ae068fd8f0b6d0bb5e7b4c262012ae1301f6cda4f267b962
7
- data.tar.gz: dfde7d47e3d316bfc0747e33fa761035cc0ecf6b5eb1938ca17ef1d27a11a81436f8e31d827330982cfea3d31d7345c154c0a00e2233515deea357bdbb395c25
6
+ metadata.gz: 6f5d777dc01b55cf1ec42f36aad4b7da4de5bb7e8aec67f1a1b4bc2b33e45e1e87d5cf0bc8ec983c09496c4a2803edd119280cf7421b436359a89f5ecc4a98e6
7
+ data.tar.gz: 21487a524df577b6c8ed5b5e87592c73680fb1119159c08ffa222e822894e335c5b96780cfc523eade110e288ae73a7e85f0adfd93285f70e8b61481e2f38f59
data/config/capybara.yml CHANGED
@@ -1,6 +1,6 @@
1
+ plugins: rubocop-capybara
2
+
1
3
  # Within GOV.UK we use Capybara test method syntax of feature,
2
- # scenario. We don't want this outside of feature or system specs though.
3
- RSpec/Capybara/FeatureMethods:
4
- Exclude:
5
- - 'spec/features/**/*.rb'
6
- - 'spec/system/**/*.rb'
4
+ # scenario.
5
+ Capybara:
6
+ Enabled: true
data/config/rails.yml CHANGED
@@ -3,7 +3,7 @@
3
3
  # By default Rails is switched off so this can be used by non-Rails apps,
4
4
  # this can be enabled in a local .rubocop.yml file
5
5
 
6
- require: rubocop-rails
6
+ plugins: rubocop-rails
7
7
 
8
8
  AllCops:
9
9
  Exclude:
data/config/rake.yml CHANGED
@@ -1 +1 @@
1
- require: rubocop-rake
1
+ plugins: rubocop-rake
data/config/rspec.yml CHANGED
@@ -1,4 +1,4 @@
1
- require: rubocop-rspec
1
+ plugins: rubocop-rspec
2
2
 
3
3
  inherit_from:
4
4
  - capybara.yml
@@ -20,18 +20,25 @@ RSpec/MultipleMemoizedHelpers:
20
20
  RSpec/DescribeClass:
21
21
  Enabled: false
22
22
 
23
- # We accept multiple expectations (within reason), preferring
23
+ # We accept multiple expectations (within reason), preferring
24
24
  # them to running mulitple similar tests.
25
25
  RSpec/MultipleExpectations:
26
26
  Enabled: false
27
27
 
28
- # Part of the GOV.UK feature style involves instance variables.
28
+ # Part of the GOV.UK feature style involves instance variables.
29
29
  RSpec/InstanceVariable:
30
30
  Exclude:
31
31
  - 'spec/features/**/*.rb'
32
32
  - 'spec/system/**/*.rb'
33
33
 
34
- # In GOV.UK we quite often test that a class received a method.
34
+ # The GOV.UK Feature spec style has expectations in method calls so this
35
+ # cop falsely triggers.
36
+ RSpec/NoExpectationExample:
37
+ Exclude:
38
+ - 'spec/features/**/*.rb'
39
+ - 'spec/system/**/*.rb'
40
+
41
+ # In GOV.UK we quite often test that a class received a method.
35
42
  RSpec/MessageSpies:
36
43
  Enabled: false
37
44
 
@@ -51,3 +58,20 @@ RSpec/ContextWording:
51
58
  - without
52
59
  - and
53
60
  - but
61
+
62
+ # Within GOV.UK we use Capybara test method syntax of feature,
63
+ # scenario.
64
+ # We don't want this cop outside of feature or system specs though.
65
+ RSpec/Dialect:
66
+ # Disables all Capybara-specific methods that have the same native
67
+ # RSpec method (e.g. are just aliases)
68
+ PreferredMethods:
69
+ background: :before
70
+ scenario: :it
71
+ xscenario: :xit
72
+ given: :let
73
+ given!: :let!
74
+ feature: :describe
75
+ Exclude:
76
+ - 'spec/features/**/*.rb'
77
+ - 'spec/system/**/*.rb'
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: publishing_platform_rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Publishing Platform
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-05-09 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rake
@@ -30,72 +29,85 @@ dependencies:
30
29
  requirements:
31
30
  - - '='
32
31
  - !ruby/object:Gem::Version
33
- version: 1.63.4
32
+ version: 1.75.3
34
33
  type: :runtime
35
34
  prerelease: false
36
35
  version_requirements: !ruby/object:Gem::Requirement
37
36
  requirements:
38
37
  - - '='
39
38
  - !ruby/object:Gem::Version
40
- version: 1.63.4
39
+ version: 1.75.3
41
40
  - !ruby/object:Gem::Dependency
42
41
  name: rubocop-ast
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
44
  - - '='
46
45
  - !ruby/object:Gem::Version
47
- version: 1.31.3
46
+ version: 1.44.1
48
47
  type: :runtime
49
48
  prerelease: false
50
49
  version_requirements: !ruby/object:Gem::Requirement
51
50
  requirements:
52
51
  - - '='
53
52
  - !ruby/object:Gem::Version
54
- version: 1.31.3
53
+ version: 1.44.1
54
+ - !ruby/object:Gem::Dependency
55
+ name: rubocop-capybara
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - '='
59
+ - !ruby/object:Gem::Version
60
+ version: 2.22.1
61
+ type: :runtime
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - '='
66
+ - !ruby/object:Gem::Version
67
+ version: 2.22.1
55
68
  - !ruby/object:Gem::Dependency
56
69
  name: rubocop-rails
57
70
  requirement: !ruby/object:Gem::Requirement
58
71
  requirements:
59
72
  - - '='
60
73
  - !ruby/object:Gem::Version
61
- version: 2.24.1
74
+ version: 2.31.0
62
75
  type: :runtime
63
76
  prerelease: false
64
77
  version_requirements: !ruby/object:Gem::Requirement
65
78
  requirements:
66
79
  - - '='
67
80
  - !ruby/object:Gem::Version
68
- version: 2.24.1
81
+ version: 2.31.0
69
82
  - !ruby/object:Gem::Dependency
70
83
  name: rubocop-rake
71
84
  requirement: !ruby/object:Gem::Requirement
72
85
  requirements:
73
86
  - - '='
74
87
  - !ruby/object:Gem::Version
75
- version: 0.6.0
88
+ version: 0.7.1
76
89
  type: :runtime
77
90
  prerelease: false
78
91
  version_requirements: !ruby/object:Gem::Requirement
79
92
  requirements:
80
93
  - - '='
81
94
  - !ruby/object:Gem::Version
82
- version: 0.6.0
95
+ version: 0.7.1
83
96
  - !ruby/object:Gem::Dependency
84
97
  name: rubocop-rspec
85
98
  requirement: !ruby/object:Gem::Requirement
86
99
  requirements:
87
100
  - - '='
88
101
  - !ruby/object:Gem::Version
89
- version: 2.29.2
102
+ version: 3.6.0
90
103
  type: :runtime
91
104
  prerelease: false
92
105
  version_requirements: !ruby/object:Gem::Requirement
93
106
  requirements:
94
107
  - - '='
95
108
  - !ruby/object:Gem::Version
96
- version: 2.29.2
109
+ version: 3.6.0
97
110
  description: Shared RuboCop rules for publishing platform Ruby projects.
98
- email:
99
111
  executables: []
100
112
  extensions: []
101
113
  extra_rdoc_files: []
@@ -110,11 +122,9 @@ files:
110
122
  - config/rake.yml
111
123
  - config/rspec.yml
112
124
  - config/style.yml
113
- homepage:
114
125
  licenses:
115
126
  - MIT
116
127
  metadata: {}
117
- post_install_message:
118
128
  rdoc_options: []
119
129
  require_paths:
120
130
  - lib
@@ -122,15 +132,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
132
  requirements:
123
133
  - - ">="
124
134
  - !ruby/object:Gem::Version
125
- version: '3.0'
135
+ version: '3.1'
126
136
  required_rubygems_version: !ruby/object:Gem::Requirement
127
137
  requirements:
128
138
  - - ">="
129
139
  - !ruby/object:Gem::Version
130
140
  version: '0'
131
141
  requirements: []
132
- rubygems_version: 3.3.7
133
- signing_key:
142
+ rubygems_version: 3.6.8
134
143
  specification_version: 4
135
144
  summary: RuboCop Publishing Platform
136
145
  test_files: []