Skip to content

Commit 98c19d2

Browse files
authored
Merge pull request #45 from zendesk/bquorning/standardrb
Lint with StandardRb
2 parents 02b9a49 + 6c5bea8 commit 98c19d2

File tree

14 files changed

+289
-67
lines changed

14 files changed

+289
-67
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,12 @@ jobs:
4141
echo "Some specs failed"
4242
false
4343
fi
44+
45+
lint:
46+
runs-on: ubuntu-latest
47+
steps:
48+
- uses: actions/checkout@v4
49+
- uses: ruby/setup-ruby@v1
50+
with:
51+
bundler-cache: true
52+
- run: bundle exec standardrb

.ruby-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.7

Gemfile.lock

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,64 @@ GEM
1717
i18n (>= 1.6, < 2)
1818
minitest (>= 5.1)
1919
tzinfo (~> 2.0)
20+
ast (2.4.2)
2021
bump (0.10.0)
2122
concurrent-ruby (1.2.2)
2223
i18n (1.14.1)
2324
concurrent-ruby (~> 1.0)
25+
json (2.6.3)
26+
language_server-protocol (3.17.0.3)
27+
lint_roller (1.1.0)
2428
mini_portile2 (2.8.5)
2529
minitest (5.20.0)
2630
minitest-rg (5.3.0)
2731
minitest (~> 5.0)
2832
mocha (2.1.0)
2933
ruby2_keywords (>= 0.0.5)
34+
parallel (1.23.0)
35+
parser (3.2.2.4)
36+
ast (~> 2.4.1)
37+
racc
38+
racc (1.7.3)
39+
rainbow (3.1.1)
3040
rake (13.1.0)
41+
regexp_parser (2.8.2)
42+
rexml (3.2.6)
43+
rubocop (1.57.2)
44+
json (~> 2.3)
45+
language_server-protocol (>= 3.17.0)
46+
parallel (~> 1.10)
47+
parser (>= 3.2.2.4)
48+
rainbow (>= 2.2.2, < 4.0)
49+
regexp_parser (>= 1.8, < 3.0)
50+
rexml (>= 3.2.5, < 4.0)
51+
rubocop-ast (>= 1.28.1, < 2.0)
52+
ruby-progressbar (~> 1.7)
53+
unicode-display_width (>= 2.4.0, < 3.0)
54+
rubocop-ast (1.30.0)
55+
parser (>= 3.2.1.0)
56+
rubocop-performance (1.19.1)
57+
rubocop (>= 1.7.0, < 2.0)
58+
rubocop-ast (>= 0.4.0)
59+
ruby-progressbar (1.13.0)
3160
ruby2_keywords (0.0.5)
3261
sqlite3 (1.6.8)
3362
mini_portile2 (~> 2.8.0)
63+
standard (1.32.0)
64+
language_server-protocol (~> 3.17.0.2)
65+
lint_roller (~> 1.0)
66+
rubocop (~> 1.57.2)
67+
standard-custom (~> 1.0.0)
68+
standard-performance (~> 1.2)
69+
standard-custom (1.0.2)
70+
lint_roller (~> 1.0)
71+
rubocop (~> 1.50)
72+
standard-performance (1.2.1)
73+
lint_roller (~> 1.1)
74+
rubocop-performance (~> 1.19.1)
3475
tzinfo (2.0.6)
3576
concurrent-ruby (~> 1.0)
77+
unicode-display_width (2.5.0)
3678

3779
PLATFORMS
3880
ruby
@@ -45,6 +87,7 @@ DEPENDENCIES
4587
mocha
4688
rake
4789
sqlite3
90+
standard
4891

4992
BUNDLED WITH
5093
2.4.22

Rakefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
require 'bundler/setup'
2-
require 'bundler/gem_tasks'
3-
require 'bump/tasks'
1+
require "bundler/setup"
2+
require "bundler/gem_tasks"
3+
require "bump/tasks"
44

5-
require 'rake/testtask'
5+
require "rake/testtask"
66
Rake::TestTask.new(:test) do |test|
7-
test.libs << 'lib'
8-
test.pattern = 'test/**/test_*.rb'
7+
test.libs << "lib"
8+
test.pattern = "test/**/test_*.rb"
99
test.verbose = true
1010
end
1111

gemfiles/rails6.0.gemfile.lock

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,65 @@ GEM
1818
minitest (~> 5.1)
1919
tzinfo (~> 1.1)
2020
zeitwerk (~> 2.2, >= 2.2.2)
21+
ast (2.4.2)
2122
bump (0.10.0)
2223
concurrent-ruby (1.2.2)
2324
i18n (1.14.1)
2425
concurrent-ruby (~> 1.0)
26+
json (2.6.3)
27+
language_server-protocol (3.17.0.3)
28+
lint_roller (1.1.0)
2529
mini_portile2 (2.8.5)
2630
minitest (5.20.0)
2731
minitest-rg (5.3.0)
2832
minitest (~> 5.0)
2933
mocha (2.1.0)
3034
ruby2_keywords (>= 0.0.5)
35+
parallel (1.23.0)
36+
parser (3.2.2.4)
37+
ast (~> 2.4.1)
38+
racc
39+
racc (1.7.3)
40+
rainbow (3.1.1)
3141
rake (13.1.0)
42+
regexp_parser (2.8.2)
43+
rexml (3.2.6)
44+
rubocop (1.57.2)
45+
json (~> 2.3)
46+
language_server-protocol (>= 3.17.0)
47+
parallel (~> 1.10)
48+
parser (>= 3.2.2.4)
49+
rainbow (>= 2.2.2, < 4.0)
50+
regexp_parser (>= 1.8, < 3.0)
51+
rexml (>= 3.2.5, < 4.0)
52+
rubocop-ast (>= 1.28.1, < 2.0)
53+
ruby-progressbar (~> 1.7)
54+
unicode-display_width (>= 2.4.0, < 3.0)
55+
rubocop-ast (1.30.0)
56+
parser (>= 3.2.1.0)
57+
rubocop-performance (1.19.1)
58+
rubocop (>= 1.7.0, < 2.0)
59+
rubocop-ast (>= 0.4.0)
60+
ruby-progressbar (1.13.0)
3261
ruby2_keywords (0.0.5)
3362
sqlite3 (1.6.8)
3463
mini_portile2 (~> 2.8.0)
64+
standard (1.32.0)
65+
language_server-protocol (~> 3.17.0.2)
66+
lint_roller (~> 1.0)
67+
rubocop (~> 1.57.2)
68+
standard-custom (~> 1.0.0)
69+
standard-performance (~> 1.2)
70+
standard-custom (1.0.2)
71+
lint_roller (~> 1.0)
72+
rubocop (~> 1.50)
73+
standard-performance (1.2.1)
74+
lint_roller (~> 1.1)
75+
rubocop-performance (~> 1.19.1)
3576
thread_safe (0.3.6)
3677
tzinfo (1.2.11)
3778
thread_safe (~> 0.1)
79+
unicode-display_width (2.5.0)
3880
zeitwerk (2.6.12)
3981

4082
PLATFORMS
@@ -49,6 +91,7 @@ DEPENDENCIES
4991
mocha
5092
rake
5193
sqlite3 (~> 1.4)
94+
standard
5295

5396
BUNDLED WITH
5497
2.4.22

gemfiles/rails6.1.gemfile.lock

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,64 @@ GEM
1818
minitest (>= 5.1)
1919
tzinfo (~> 2.0)
2020
zeitwerk (~> 2.3)
21+
ast (2.4.2)
2122
bump (0.10.0)
2223
concurrent-ruby (1.2.2)
2324
i18n (1.14.1)
2425
concurrent-ruby (~> 1.0)
26+
json (2.6.3)
27+
language_server-protocol (3.17.0.3)
28+
lint_roller (1.1.0)
2529
mini_portile2 (2.8.5)
2630
minitest (5.20.0)
2731
minitest-rg (5.3.0)
2832
minitest (~> 5.0)
2933
mocha (2.1.0)
3034
ruby2_keywords (>= 0.0.5)
35+
parallel (1.23.0)
36+
parser (3.2.2.4)
37+
ast (~> 2.4.1)
38+
racc
39+
racc (1.7.3)
40+
rainbow (3.1.1)
3141
rake (13.1.0)
42+
regexp_parser (2.8.2)
43+
rexml (3.2.6)
44+
rubocop (1.57.2)
45+
json (~> 2.3)
46+
language_server-protocol (>= 3.17.0)
47+
parallel (~> 1.10)
48+
parser (>= 3.2.2.4)
49+
rainbow (>= 2.2.2, < 4.0)
50+
regexp_parser (>= 1.8, < 3.0)
51+
rexml (>= 3.2.5, < 4.0)
52+
rubocop-ast (>= 1.28.1, < 2.0)
53+
ruby-progressbar (~> 1.7)
54+
unicode-display_width (>= 2.4.0, < 3.0)
55+
rubocop-ast (1.30.0)
56+
parser (>= 3.2.1.0)
57+
rubocop-performance (1.19.1)
58+
rubocop (>= 1.7.0, < 2.0)
59+
rubocop-ast (>= 0.4.0)
60+
ruby-progressbar (1.13.0)
3261
ruby2_keywords (0.0.5)
3362
sqlite3 (1.6.8)
3463
mini_portile2 (~> 2.8.0)
64+
standard (1.32.0)
65+
language_server-protocol (~> 3.17.0.2)
66+
lint_roller (~> 1.0)
67+
rubocop (~> 1.57.2)
68+
standard-custom (~> 1.0.0)
69+
standard-performance (~> 1.2)
70+
standard-custom (1.0.2)
71+
lint_roller (~> 1.0)
72+
rubocop (~> 1.50)
73+
standard-performance (1.2.1)
74+
lint_roller (~> 1.1)
75+
rubocop-performance (~> 1.19.1)
3576
tzinfo (2.0.6)
3677
concurrent-ruby (~> 1.0)
78+
unicode-display_width (2.5.0)
3779
zeitwerk (2.6.12)
3880

3981
PLATFORMS
@@ -48,6 +90,7 @@ DEPENDENCIES
4890
mocha
4991
rake
5092
sqlite3 (~> 1.4)
93+
standard
5194

5295
BUNDLED WITH
5396
2.4.22

gemfiles/rails7.0.gemfile.lock

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,64 @@ GEM
1717
i18n (>= 1.6, < 2)
1818
minitest (>= 5.1)
1919
tzinfo (~> 2.0)
20+
ast (2.4.2)
2021
bump (0.10.0)
2122
concurrent-ruby (1.2.2)
2223
i18n (1.14.1)
2324
concurrent-ruby (~> 1.0)
25+
json (2.6.3)
26+
language_server-protocol (3.17.0.3)
27+
lint_roller (1.1.0)
2428
mini_portile2 (2.8.5)
2529
minitest (5.20.0)
2630
minitest-rg (5.3.0)
2731
minitest (~> 5.0)
2832
mocha (2.1.0)
2933
ruby2_keywords (>= 0.0.5)
34+
parallel (1.23.0)
35+
parser (3.2.2.4)
36+
ast (~> 2.4.1)
37+
racc
38+
racc (1.7.3)
39+
rainbow (3.1.1)
3040
rake (13.1.0)
41+
regexp_parser (2.8.2)
42+
rexml (3.2.6)
43+
rubocop (1.57.2)
44+
json (~> 2.3)
45+
language_server-protocol (>= 3.17.0)
46+
parallel (~> 1.10)
47+
parser (>= 3.2.2.4)
48+
rainbow (>= 2.2.2, < 4.0)
49+
regexp_parser (>= 1.8, < 3.0)
50+
rexml (>= 3.2.5, < 4.0)
51+
rubocop-ast (>= 1.28.1, < 2.0)
52+
ruby-progressbar (~> 1.7)
53+
unicode-display_width (>= 2.4.0, < 3.0)
54+
rubocop-ast (1.30.0)
55+
parser (>= 3.2.1.0)
56+
rubocop-performance (1.19.1)
57+
rubocop (>= 1.7.0, < 2.0)
58+
rubocop-ast (>= 0.4.0)
59+
ruby-progressbar (1.13.0)
3160
ruby2_keywords (0.0.5)
3261
sqlite3 (1.6.8)
3362
mini_portile2 (~> 2.8.0)
63+
standard (1.32.0)
64+
language_server-protocol (~> 3.17.0.2)
65+
lint_roller (~> 1.0)
66+
rubocop (~> 1.57.2)
67+
standard-custom (~> 1.0.0)
68+
standard-performance (~> 1.2)
69+
standard-custom (1.0.2)
70+
lint_roller (~> 1.0)
71+
rubocop (~> 1.50)
72+
standard-performance (1.2.1)
73+
lint_roller (~> 1.1)
74+
rubocop-performance (~> 1.19.1)
3475
tzinfo (2.0.6)
3576
concurrent-ruby (~> 1.0)
77+
unicode-display_width (2.5.0)
3678

3779
PLATFORMS
3880
ruby
@@ -46,6 +88,7 @@ DEPENDENCIES
4688
mocha
4789
rake
4890
sqlite3 (~> 1.4)
91+
standard
4992

5093
BUNDLED WITH
5194
2.4.22

0 commit comments

Comments
 (0)