rubocop_challenger 2.6.0 → 2.9.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 +4 -4
- data/.circleci/config.yml +15 -14
- data/.rubocop.yml +4 -4
- data/.rubocop_todo.yml +1 -1
- data/CHANGELOG.md +197 -143
- data/Gemfile +0 -2
- data/Gemfile.lock +27 -50
- data/README.md +23 -20
- data/challenger.gemspec +2 -2
- data/images/{decrease_of_offence_codes.png → decrease_of_offense_codes.png} +0 -0
- data/lib/rubocop_challenger/bundler/command.rb +1 -1
- data/lib/rubocop_challenger/cli.rb +16 -12
- data/lib/rubocop_challenger/errors.rb +2 -2
- data/lib/rubocop_challenger/go.rb +25 -12
- data/lib/rubocop_challenger/rubocop/challenge.rb +6 -6
- data/lib/rubocop_challenger/rubocop/command.rb +7 -5
- data/lib/rubocop_challenger/rubocop/rule.rb +4 -3
- data/lib/rubocop_challenger/rubocop/todo_reader.rb +11 -10
- data/lib/rubocop_challenger/rubocop/yardoc.rb +3 -11
- data/lib/rubocop_challenger/version.rb +1 -1
- data/lib/templates/checklist.md.erb +4 -4
- data/lib/templates/default.md.erb +4 -4
- metadata +13 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d5a129ffbdfa720d2d61386e268ccfbff06005cd0f59f04ff5e4fbc843a82b0c
|
|
4
|
+
data.tar.gz: 7a6a2de90d5077852ab9c8ae16a9cb409b4319136a776bf1f82fc614c44b1011
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 046a667891ec84c62ae768b3ba3ef28ab906c2e4e4df94bbb74950ab6db66c0157290975d223a0d1fe1d49d1d026ab88a8870195a1d0c6c09d866aaa80f1cd55
|
|
7
|
+
data.tar.gz: cc60705e93e82bd5d482ddc7a7b493f636e60286cf83527cf6dbddc1538a47dac18d7f014ea0935c9c5ec3725faff9f15154275330ac570fbe0b84df85140dbd
|
data/.circleci/config.yml
CHANGED
|
@@ -12,23 +12,23 @@ references:
|
|
|
12
12
|
- &ruby_version
|
|
13
13
|
ruby_version:
|
|
14
14
|
type: enum
|
|
15
|
-
enum: [
|
|
16
|
-
default:
|
|
15
|
+
enum: ["2.7", "3.0", "3.1"]
|
|
16
|
+
default: "3.1"
|
|
17
17
|
|
|
18
18
|
executors:
|
|
19
19
|
default:
|
|
20
20
|
parameters:
|
|
21
21
|
<<: *ruby_version
|
|
22
22
|
docker:
|
|
23
|
-
|
|
23
|
+
- image: cimg/ruby:<< parameters.ruby_version >>
|
|
24
24
|
working_directory: ~/repo
|
|
25
25
|
|
|
26
26
|
commands:
|
|
27
27
|
run_rspec:
|
|
28
|
-
description:
|
|
28
|
+
description: "Run RSpec"
|
|
29
29
|
steps:
|
|
30
30
|
- run:
|
|
31
|
-
name:
|
|
31
|
+
name: "Execute RSpec"
|
|
32
32
|
command: |
|
|
33
33
|
mkdir /tmp/test-results
|
|
34
34
|
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | circleci tests split --split-by=timings)"
|
|
@@ -58,7 +58,7 @@ commands:
|
|
|
58
58
|
name: Run RuboCop
|
|
59
59
|
command: bundle exec rubocop
|
|
60
60
|
yardoc:
|
|
61
|
-
description:
|
|
61
|
+
description: "Generate YARDoc"
|
|
62
62
|
steps:
|
|
63
63
|
- run: bundle exec yardoc -o ./yardoc
|
|
64
64
|
- store_artifacts:
|
|
@@ -77,7 +77,7 @@ commands:
|
|
|
77
77
|
bundle exec exe/rubocop_challenger go \
|
|
78
78
|
--email=ryz310@gmail.com \
|
|
79
79
|
--name=ryz310 \
|
|
80
|
-
--
|
|
80
|
+
--no-offense-counts \
|
|
81
81
|
--no-create-pr
|
|
82
82
|
integration_testing:
|
|
83
83
|
description: Integration testing for RuboCop Challenge
|
|
@@ -96,6 +96,7 @@ commands:
|
|
|
96
96
|
- verify_rubocop_challenge
|
|
97
97
|
- verify_rubocop_challenge
|
|
98
98
|
- verify_rubocop_challenge
|
|
99
|
+
- rubocop
|
|
99
100
|
rubocop_challenge:
|
|
100
101
|
steps:
|
|
101
102
|
- run:
|
|
@@ -192,29 +193,29 @@ workflows:
|
|
|
192
193
|
|
|
193
194
|
commit:
|
|
194
195
|
jobs:
|
|
195
|
-
- build:
|
|
196
|
-
name: build_on_ruby_2.6
|
|
197
|
-
ruby_version: '2.6'
|
|
198
196
|
- build:
|
|
199
197
|
name: build_on_ruby_2.7
|
|
200
|
-
ruby_version:
|
|
198
|
+
ruby_version: "2.7"
|
|
201
199
|
- build:
|
|
202
200
|
name: build_on_ruby_3.0
|
|
203
|
-
ruby_version:
|
|
201
|
+
ruby_version: "3.0"
|
|
202
|
+
- build:
|
|
203
|
+
name: build_on_ruby_3.1
|
|
204
|
+
ruby_version: "3.1"
|
|
204
205
|
- rubocop
|
|
205
206
|
- yardoc
|
|
206
207
|
- integration_testing
|
|
207
208
|
- upload-coverage:
|
|
208
209
|
requires:
|
|
209
|
-
- build_on_ruby_2.6
|
|
210
210
|
- build_on_ruby_2.7
|
|
211
211
|
- build_on_ruby_3.0
|
|
212
|
+
- build_on_ruby_3.1
|
|
212
213
|
- release:
|
|
213
214
|
context: RubyGems API Key
|
|
214
215
|
requires:
|
|
215
|
-
- build_on_ruby_2.6
|
|
216
216
|
- build_on_ruby_2.7
|
|
217
217
|
- build_on_ruby_3.0
|
|
218
|
+
- build_on_ruby_3.1
|
|
218
219
|
- rubocop
|
|
219
220
|
filters:
|
|
220
221
|
branches:
|
data/.rubocop.yml
CHANGED
|
@@ -7,13 +7,13 @@ require:
|
|
|
7
7
|
inherit_from: .rubocop_todo.yml
|
|
8
8
|
|
|
9
9
|
AllCops:
|
|
10
|
-
TargetRubyVersion: 2.
|
|
10
|
+
TargetRubyVersion: 2.7
|
|
11
11
|
NewCops: enable
|
|
12
12
|
|
|
13
13
|
Metrics/BlockLength:
|
|
14
14
|
Exclude:
|
|
15
|
-
-
|
|
16
|
-
-
|
|
15
|
+
- "challenger.gemspec"
|
|
16
|
+
- "spec/**/*"
|
|
17
17
|
|
|
18
18
|
Naming/VariableNumber:
|
|
19
19
|
EnforcedStyle: snake_case
|
|
@@ -21,7 +21,7 @@ Naming/VariableNumber:
|
|
|
21
21
|
# For integration testing
|
|
22
22
|
RSpec/MultipleExpectations:
|
|
23
23
|
Exclude:
|
|
24
|
-
-
|
|
24
|
+
- "spec/lib/rubocop_challenger/cli_spec.rb"
|
|
25
25
|
|
|
26
26
|
RSpec/MultipleMemoizedHelpers:
|
|
27
27
|
Max: 10
|
data/.rubocop_todo.yml
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config --exclude-limit 30 --no-auto-gen-timestamp`
|
|
3
|
-
# using RuboCop version 1.
|
|
3
|
+
# using RuboCop version 1.30.0.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|