Skip to content

Commit 02bce8b

Browse files
committed
Add rubocop-govuk
This is the only Ruby repository owned by the Publishing Platform team that does not include rubocop. Therefore adding it to make sure the code here remains consistent.
1 parent 083befd commit 02bce8b

File tree

4 files changed

+70
-0
lines changed

4 files changed

+70
-0
lines changed

.govuk_dependabot_merger.yml

+4
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@ auto_merge:
44
allowed_semver_bumps:
55
- patch
66
- minor
7+
- dependency: rubocop-govuk
8+
allowed_semver_bumps:
9+
- patch
10+
- minor

.rubocop.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
inherit_gem:
2+
rubocop-govuk:
3+
- config/default.yml
4+
5+
inherit_mode:
6+
merge:
7+
- Exclude
8+
9+
# **************************************************************
10+
# TRY NOT TO ADD OVERRIDES IN THIS FILE
11+
#
12+
# This repo is configured to follow the RuboCop GOV.UK styleguide.
13+
# Any rules you override here will cause this repo to diverge from
14+
# the way we write code in all other GOV.UK repos.
15+
#
16+
# See https://github.com/alphagov/rubocop-govuk/blob/main/CONTRIBUTING.md
17+
# **************************************************************

Gemfile

+4
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@ source 'https://rubygems.org'
22

33
gem 'govuk_tech_docs'
44
gem 'middleman-gh-pages', '~> 0.4.1'
5+
6+
group :development, :test do
7+
gem "rubocop-govuk"
8+
end

Gemfile.lock

+45
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ GEM
88
tzinfo (~> 2.0)
99
addressable (2.8.6)
1010
public_suffix (>= 2.0.2, < 6.0)
11+
ast (2.4.2)
1112
autoprefixer-rails (10.4.16.0)
1213
execjs (~> 2)
1314
backports (3.24.1)
@@ -65,8 +66,10 @@ GEM
6566
http_parser.rb (0.8.0)
6667
i18n (1.6.0)
6768
concurrent-ruby (~> 1.0)
69+
json (2.7.1)
6870
kramdown (2.4.0)
6971
rexml
72+
language_server-protocol (3.17.0.3)
7073
listen (3.8.0)
7174
rb-fsevent (~> 0.10, >= 0.10.3)
7275
rb-inotify (~> 0.9, >= 0.9.10)
@@ -140,19 +143,59 @@ GEM
140143
tilt (>= 1.4.1, < 3)
141144
padrino-support (0.15.3)
142145
parallel (1.24.0)
146+
parser (3.3.0.5)
147+
ast (~> 2.4.1)
148+
racc
143149
parslet (2.0.0)
144150
public_suffix (5.0.4)
145151
racc (1.7.3)
146152
rack (2.2.8.1)
147153
rack-livereload (0.3.17)
148154
rack
155+
rainbow (3.1.1)
149156
rake (13.0.6)
150157
rb-fsevent (0.11.2)
151158
rb-inotify (0.10.1)
152159
ffi (~> 1.0)
153160
redcarpet (3.5.1)
161+
regexp_parser (2.9.0)
154162
rexml (3.2.6)
155163
rouge (3.30.0)
164+
rubocop (1.60.2)
165+
json (~> 2.3)
166+
language_server-protocol (>= 3.17.0)
167+
parallel (~> 1.10)
168+
parser (>= 3.3.0.2)
169+
rainbow (>= 2.2.2, < 4.0)
170+
regexp_parser (>= 1.8, < 3.0)
171+
rexml (>= 3.2.5, < 4.0)
172+
rubocop-ast (>= 1.30.0, < 2.0)
173+
ruby-progressbar (~> 1.7)
174+
unicode-display_width (>= 2.4.0, < 3.0)
175+
rubocop-ast (1.30.0)
176+
parser (>= 3.2.1.0)
177+
rubocop-capybara (2.20.0)
178+
rubocop (~> 1.41)
179+
rubocop-factory_bot (2.25.1)
180+
rubocop (~> 1.41)
181+
rubocop-govuk (4.14.0)
182+
rubocop (= 1.60.2)
183+
rubocop-ast (= 1.30.0)
184+
rubocop-rails (= 2.23.1)
185+
rubocop-rake (= 0.6.0)
186+
rubocop-rspec (= 2.26.1)
187+
rubocop-rails (2.23.1)
188+
activesupport (>= 4.2.0)
189+
rack (>= 1.1)
190+
rubocop (>= 1.33.0, < 2.0)
191+
rubocop-ast (>= 1.30.0, < 2.0)
192+
rubocop-rake (0.6.0)
193+
rubocop (~> 1.0)
194+
rubocop-rspec (2.26.1)
195+
rubocop (~> 1.40)
196+
rubocop-capybara (~> 2.17)
197+
rubocop-factory_bot (~> 2.22)
198+
ruby-progressbar (1.13.0)
156199
sass (3.4.25)
157200
sassc (2.4.0)
158201
ffi (~> 1.9)
@@ -169,6 +212,7 @@ GEM
169212
concurrent-ruby (~> 1.0)
170213
uglifier (3.2.0)
171214
execjs (>= 0.3.0, < 3)
215+
unicode-display_width (2.5.0)
172216
webrick (1.8.1)
173217

174218
PLATFORMS
@@ -177,6 +221,7 @@ PLATFORMS
177221
DEPENDENCIES
178222
govuk_tech_docs
179223
middleman-gh-pages (~> 0.4.1)
224+
rubocop-govuk
180225

181226
BUNDLED WITH
182227
2.3.26

0 commit comments

Comments
 (0)