rubocop_challenger 2.5.0 → 2.8.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 +14 -14
- data/.rubocop.yml +4 -4
- data/.rubocop_todo.yml +1 -1
- data/CHANGELOG.md +198 -137
- data/Gemfile +0 -2
- data/Gemfile.lock +39 -62
- data/README.md +19 -16
- 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 +14 -10
- data/lib/rubocop_challenger/go.rb +20 -7
- data/lib/rubocop_challenger/rubocop/command.rb +3 -1
- data/lib/rubocop_challenger/rubocop/rule.rb +2 -1
- data/lib/rubocop_challenger/rubocop/todo_reader.rb +6 -5
- data/lib/rubocop_challenger/rubocop/yardoc.rb +1 -9
- data/lib/rubocop_challenger/version.rb +1 -1
- data/lib/templates/checklist.md.erb +2 -2
- data/lib/templates/default.md.erb +2 -2
- 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: '069b4741c020bd27b620bcf7e5cac220bd9f80de03735751598e148d7c622a0a'
|
|
4
|
+
data.tar.gz: 0a9eedf4aed6d0154be1cd70f53ac4a573fcdc349b0be4611b60e8f3463f2c6f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b87dea0df5bbb1e54e9296d71752be6d5af85dc57374da52c34431175e831e103f2c45d565e22e0b6e6c5bc4e6bdca95761a849489984699f4aa4721c306f84
|
|
7
|
+
data.tar.gz: 54357ce576a82ea8c950fc2d0ed1c21b956e04fc971659b05b3e62d43696850fb59394943ba30f761674f07462474037fdfb6ffb87780f2e5d33f588da37ea8a
|
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
|
|
@@ -192,29 +192,29 @@ workflows:
|
|
|
192
192
|
|
|
193
193
|
commit:
|
|
194
194
|
jobs:
|
|
195
|
-
- build:
|
|
196
|
-
name: build_on_ruby_2.6
|
|
197
|
-
ruby_version: '2.6'
|
|
198
195
|
- build:
|
|
199
196
|
name: build_on_ruby_2.7
|
|
200
|
-
ruby_version:
|
|
197
|
+
ruby_version: "2.7"
|
|
201
198
|
- build:
|
|
202
199
|
name: build_on_ruby_3.0
|
|
203
|
-
ruby_version:
|
|
200
|
+
ruby_version: "3.0"
|
|
201
|
+
- build:
|
|
202
|
+
name: build_on_ruby_3.1
|
|
203
|
+
ruby_version: "3.1"
|
|
204
204
|
- rubocop
|
|
205
205
|
- yardoc
|
|
206
206
|
- integration_testing
|
|
207
207
|
- upload-coverage:
|
|
208
208
|
requires:
|
|
209
|
-
- build_on_ruby_2.6
|
|
210
209
|
- build_on_ruby_2.7
|
|
211
210
|
- build_on_ruby_3.0
|
|
211
|
+
- build_on_ruby_3.1
|
|
212
212
|
- release:
|
|
213
213
|
context: RubyGems API Key
|
|
214
214
|
requires:
|
|
215
|
-
- build_on_ruby_2.6
|
|
216
215
|
- build_on_ruby_2.7
|
|
217
216
|
- build_on_ruby_3.0
|
|
217
|
+
- build_on_ruby_3.1
|
|
218
218
|
- rubocop
|
|
219
219
|
filters:
|
|
220
220
|
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
|