rubocopfmt 0.1.0.beta10 → 0.1.0.beta11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/lib/rubocopfmt/auto_corrector.rb +9 -7
- data/lib/rubocopfmt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c5015e60fee2aa44311bf6bf5a790bdd4bad487
|
4
|
+
data.tar.gz: 6f15b7204a1b291ed9459d787286e0af377d9ae5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b22f24fce7ed4fdd38ba3537a378e25e3c42c1197dc514d0020a4823c8a6e7a413d85c5f3444ed6c7b20512b1d6d0cfe65c7959da874546c16a8c0078685385f
|
7
|
+
data.tar.gz: bee6d29a580a2bc50e4864204ee7d19552929c2098069b673f768f24bb019473cadfb7234a660058b06a8305831c806c47dd9ada08374107c148f645eeb72092
|
data/.travis.yml
CHANGED
@@ -4,12 +4,6 @@ require 'rubocopfmt/rubocop_formatter'
|
|
4
4
|
|
5
5
|
module RuboCopFMT
|
6
6
|
class AutoCorrector
|
7
|
-
BAD_INTERACTIVE_COPS = [
|
8
|
-
'Lint/Debugger',
|
9
|
-
'Lint/UnusedBlockArgument',
|
10
|
-
'Lint/UnusedMethodArgument'
|
11
|
-
].freeze
|
12
|
-
|
13
7
|
attr_reader :input
|
14
8
|
attr_reader :runner
|
15
9
|
|
@@ -22,7 +16,7 @@ module RuboCopFMT
|
|
22
16
|
Rainbow.enabled = false if defined?(Rainbow)
|
23
17
|
|
24
18
|
options = default_options.clone
|
25
|
-
options[:except] =
|
19
|
+
options[:except] = bad_interactive_cops if interactive
|
26
20
|
|
27
21
|
@runner = ::RuboCop::Runner.new(options, ::RuboCop::ConfigStore.new)
|
28
22
|
@runner.run(paths)
|
@@ -44,5 +38,13 @@ module RuboCopFMT
|
|
44
38
|
formatters: [['RuboCopFMT::RubocopFormatter']]
|
45
39
|
}
|
46
40
|
end
|
41
|
+
|
42
|
+
def bad_interactive_cops
|
43
|
+
[
|
44
|
+
'Lint/Debugger',
|
45
|
+
'Lint/UnusedBlockArgument',
|
46
|
+
'Lint/UnusedMethodArgument'
|
47
|
+
]
|
48
|
+
end
|
47
49
|
end
|
48
50
|
end
|
data/lib/rubocopfmt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocopfmt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.beta11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jim Myhrberg
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|