rubocop_todo_corrector 0.6.0 → 0.7.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 +1 -1
- data/lib/rubocop_todo_corrector/rubocop_todo_section_parser.rb +7 -5
- data/lib/rubocop_todo_corrector/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f837600adefd9711b9b73eca485464781dcf9ba2bbf14bc2aec2f899c92c8ee5
|
4
|
+
data.tar.gz: cafef555598fc0f848bc739317fb3f9d507b227520f86f9fa4ffa1cc5d631b17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f0a064fa54502df60aba17ed32103b55f741704336a4fe2040c9478f5925b5bb2116bbf684fb3f2e8d64e9124408302185a1070f50fadc619a864010b2d45d6
|
7
|
+
data.tar.gz: 42479c0a9828bfed5899f1cfb3e1f5dbb847330f09aeda1a12126f62af3b8634879fca8177e955ba098c73d56702ec4d52cb983348892217fdc5907dc567f6cd
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -29,7 +29,7 @@ module RubocopTodoCorrector
|
|
29
29
|
|
30
30
|
# @return [Boolean]
|
31
31
|
def auto_correctable
|
32
|
-
safe_auto_correctable ||
|
32
|
+
safe_auto_correctable || unsafe_auto_correctable
|
33
33
|
end
|
34
34
|
|
35
35
|
# @return [String, nil]
|
@@ -46,13 +46,15 @@ module RubocopTodoCorrector
|
|
46
46
|
end
|
47
47
|
|
48
48
|
def safe_auto_correctable
|
49
|
-
@content.include?('# Cop supports --auto-correct.') ||
|
50
|
-
@content.include?('# This cop supports safe auto-correction')
|
49
|
+
@content.include?('# Cop supports --auto-correct.') || # Before rubocop 1.26
|
50
|
+
@content.include?('# This cop supports safe auto-correction') || # Before rubocop 1.30
|
51
|
+
@content.include?('# This cop supports safe autocorrection')
|
51
52
|
end
|
52
53
|
|
53
|
-
def
|
54
|
+
def unsafe_auto_correctable
|
54
55
|
@content.include?('# Cop supports --auto-correct-all') ||
|
55
|
-
@content.include?('# This cop supports unsafe auto-correction')
|
56
|
+
@content.include?('# This cop supports unsafe auto-correction') ||
|
57
|
+
@content.include?('# This cop supports unsafe autocorrection')
|
56
58
|
end
|
57
59
|
end
|
58
60
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop_todo_corrector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-05-
|
11
|
+
date: 2022-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|