Skip to content

Commit b0882f6

Browse files
authored
Merge pull request #51 from Envek/chore/standardrb
chore: update Standardrb, configure Rubocop to use Standard rules
2 parents 05a2571 + 852f669 commit b0882f6

File tree

7 files changed

+42
-35
lines changed

7 files changed

+42
-35
lines changed

.github/workflows/standardrb.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@ name: StandardRB
33
on: [push]
44

55
jobs:
6-
build:
6+
standardrb:
77
runs-on: ubuntu-latest
88
permissions:
99
checks: write
10-
contents: read
10+
contents: write
1111
steps:
12-
- uses: actions/checkout@v1
1312
- name: StandardRB Linter
14-
uses: standardrb/standard-ruby-action@v0.0.5
13+
uses: standardrb/standard-ruby-action@v1
1514
env:
1615
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.rubocop.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
AllCops:
2-
TargetRubyVersion: 2.7
2+
TargetRubyVersion: 3.2
3+
4+
require:
5+
- standard
6+
- standard-custom
7+
- standard-performance
8+
9+
inherit_gem:
10+
standard: config/base.yml
11+
standard-custom: config/base.yml
12+
standard-performance: config/base.yml

.standard.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
fix: true
22
format: progress
3-
extend_config:
4-
- .rubocop.yml

Gemfile.lock

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ GEM
2323
securerandom (>= 0.3)
2424
tzinfo (~> 2.0, >= 2.0.5)
2525
uri (>= 0.13.1)
26-
ast (2.4.2)
26+
ast (2.4.3)
2727
base64 (0.3.0)
2828
bigdecimal (4.0.1)
2929
concurrent-ruby (1.3.6)
@@ -34,26 +34,25 @@ GEM
3434
activesupport (>= 6.1)
3535
i18n (1.14.8)
3636
concurrent-ruby (~> 1.0)
37-
json (2.18.1)
38-
language_server-protocol (3.17.0.3)
37+
json (2.19.1)
38+
language_server-protocol (3.17.0.5)
3939
lint_roller (1.1.0)
4040
logger (1.7.0)
4141
minitest (6.0.2)
4242
drb (~> 2.0)
4343
prism (~> 1.5)
44-
parallel (1.24.0)
45-
parser (3.3.1.0)
44+
parallel (1.27.0)
45+
parser (3.3.10.2)
4646
ast (~> 2.4.1)
4747
racc
4848
prism (1.9.0)
49-
racc (1.7.3)
49+
racc (1.8.1)
5050
rack (3.2.5)
5151
rainbow (3.1.1)
5252
rake (13.0.6)
5353
redis-client (0.26.4)
5454
connection_pool
55-
regexp_parser (2.9.0)
56-
rexml (3.4.2)
55+
regexp_parser (2.11.3)
5756
rspec (3.12.0)
5857
rspec-core (~> 3.12.0)
5958
rspec-expectations (~> 3.12.0)
@@ -67,22 +66,24 @@ GEM
6766
diff-lcs (>= 1.2.0, < 2.0)
6867
rspec-support (~> 3.12.0)
6968
rspec-support (3.12.0)
70-
rubocop (1.62.1)
69+
rubocop (1.84.2)
7170
json (~> 2.3)
72-
language_server-protocol (>= 3.17.0)
71+
language_server-protocol (~> 3.17.0.2)
72+
lint_roller (~> 1.1.0)
7373
parallel (~> 1.10)
7474
parser (>= 3.3.0.2)
7575
rainbow (>= 2.2.2, < 4.0)
76-
regexp_parser (>= 1.8, < 3.0)
77-
rexml (>= 3.2.5, < 4.0)
78-
rubocop-ast (>= 1.31.1, < 2.0)
76+
regexp_parser (>= 2.9.3, < 3.0)
77+
rubocop-ast (>= 1.49.0, < 2.0)
7978
ruby-progressbar (~> 1.7)
80-
unicode-display_width (>= 2.4.0, < 3.0)
81-
rubocop-ast (1.31.3)
82-
parser (>= 3.3.1.0)
83-
rubocop-performance (1.20.2)
84-
rubocop (>= 1.48.1, < 2.0)
85-
rubocop-ast (>= 1.30.0, < 2.0)
79+
unicode-display_width (>= 2.4.0, < 4.0)
80+
rubocop-ast (1.49.0)
81+
parser (>= 3.3.7.2)
82+
prism (~> 1.7)
83+
rubocop-performance (1.26.1)
84+
lint_roller (~> 1.1)
85+
rubocop (>= 1.75.0, < 2.0)
86+
rubocop-ast (>= 1.47.1, < 2.0)
8687
ruby-progressbar (1.13.0)
8788
securerandom (0.4.1)
8889
sidekiq (8.1.1)
@@ -93,21 +94,23 @@ GEM
9394
redis-client (>= 0.26.0)
9495
rubyzip (3.2.2)
9596
stackprof (0.2.28)
96-
standard (1.35.1)
97+
standard (1.54.0)
9798
language_server-protocol (~> 3.17.0.2)
9899
lint_roller (~> 1.0)
99-
rubocop (~> 1.62.0)
100+
rubocop (~> 1.84.0)
100101
standard-custom (~> 1.0.0)
101-
standard-performance (~> 1.3)
102+
standard-performance (~> 1.8)
102103
standard-custom (1.0.2)
103104
lint_roller (~> 1.0)
104105
rubocop (~> 1.50)
105-
standard-performance (1.3.1)
106+
standard-performance (1.9.0)
106107
lint_roller (~> 1.1)
107-
rubocop-performance (~> 1.20.2)
108+
rubocop-performance (~> 1.26.0)
108109
tzinfo (2.0.6)
109110
concurrent-ruby (~> 1.0)
110-
unicode-display_width (2.5.0)
111+
unicode-display_width (3.2.0)
112+
unicode-emoji (~> 4.1)
113+
unicode-emoji (4.2.0)
111114
uri (1.1.1)
112115

113116
PLATFORMS

lib/singed.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
require "json"
44
require "stackprof"
5-
require "pathname"
65

76
module Singed
87
extend self

lib/singed/cli.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
require "shellwords"
22
require "tmpdir"
33
require "optionparser"
4-
require "pathname"
54

65
# NOTE: we defer requiring singed until we run. that lets Rails load it if its in the gemfile, so the railtie has had a chance to run
76

spec/singed_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# frozen_string_literal: true
22

33
require "tempfile"
4-
require "pathname"
54

65
RSpec.describe Singed do
76
around do |example|

0 commit comments

Comments
 (0)