rubocop_todo_corrector 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +2 -1
- data/README.md +1 -1
- data/lib/rubocop_todo_corrector/cli.rb +2 -2
- data/lib/rubocop_todo_corrector/commands/pick.rb +2 -2
- data/lib/rubocop_todo_corrector/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c85c8d566f2b49425a572f879680331084e81e9d3ef8de784f01d76a02405ea2
|
4
|
+
data.tar.gz: b42c06c055c914dd5ec4c26147c9de35f77361b08b621d3dd415d9bbbe498408
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30fe5e842703e0f9416d15fa5a11a36c8caf66481266381fcad1fcf422bb6b21632276119e3c442710e45a9728ca8c87c035883adb19d59a8a1c966f15d7f989
|
7
|
+
data.tar.gz: c8bbb8075412c6f784e39f73455371fabd593e2c3ca9409eb68abd683f54b4170aa46e94375c6f3c6db2cd5a4a72808cc7b8c6acd999e3131f7ba8efb36b155b
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -86,7 +86,7 @@ Usage:
|
|
86
86
|
Options:
|
87
87
|
[--mode=MODE]
|
88
88
|
# Default: random
|
89
|
-
# Possible values: first, last,
|
89
|
+
# Possible values: first, last, least_occurred, most_occurred, random
|
90
90
|
|
91
91
|
Output an auto-correctable Cop from .rubocop_todo.yml.
|
92
92
|
```
|
@@ -57,11 +57,11 @@ module RubocopTodoCorrector
|
|
57
57
|
auto_correctable_cops.first
|
58
58
|
when 'last'
|
59
59
|
auto_correctable_cops.last
|
60
|
-
when '
|
60
|
+
when 'least_occurred'
|
61
61
|
auto_correctable_cops.min_by do |cop|
|
62
62
|
cop[:offenses_count]
|
63
63
|
end
|
64
|
-
when '
|
64
|
+
when 'most_occurred'
|
65
65
|
auto_correctable_cops.max_by do |cop|
|
66
66
|
cop[:offenses_count]
|
67
67
|
end
|