reevoocop 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -3
- data/Gemfile +0 -2
- data/Rakefile +2 -2
- data/examples/block_call.rb +3 -0
- data/lib/reevoocop/rake_task.rb +0 -15
- data/lib/reevoocop/version.rb +1 -1
- data/lib/reevoocop.yml +53 -9
- data/reevoocop.gemspec +1 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fedea0a3cbe0420166911850c2e9d70660a59551
|
4
|
+
data.tar.gz: 520a70310b18b364c8730d59a954eb9c3e43d0ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6ed59da5bca3e457b14f0491b58c505af780be139cb847e7f346ccd4f87771783647ffee0c5dc4560cea0b4acdbc3c4de59b7f50a30e09053b757f7ab9f5553
|
7
|
+
data.tar.gz: 1c5d738bc763e715385b7d322680218226b13e4a54ffc1fdc7887145906e04b58f1df6d7f690a8ba9cb76c4f300f4b4c2ee6ffeb51002c38de7a249ea4fa30b3
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/lib/reevoocop/rake_task.rb
CHANGED
@@ -4,21 +4,6 @@ require "rubocop/rake_task"
|
|
4
4
|
|
5
5
|
module ReevooCop
|
6
6
|
class RakeTask < RuboCop::RakeTask
|
7
|
-
def initialize(*args, &task_block) # rubocop:disable Metrics/AbcSize
|
8
|
-
setup_ivars(args)
|
9
|
-
|
10
|
-
desc "Run RuboCop" unless ::Rake.application.last_description
|
11
|
-
|
12
|
-
task(name, *args) do |_, task_args|
|
13
|
-
RakeFileUtils.send(:verbose, verbose) do
|
14
|
-
yield(*[self, task_args].slice(0, task_block.arity)) if block_given?
|
15
|
-
run_main_task(verbose)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
setup_subtasks(name, *args, &task_block)
|
20
|
-
end
|
21
|
-
|
22
7
|
def run_cli(verbose, options)
|
23
8
|
require "reevoocop"
|
24
9
|
super(verbose, options)
|
data/lib/reevoocop/version.rb
CHANGED
data/lib/reevoocop.yml
CHANGED
@@ -19,7 +19,7 @@ EmptyLines:
|
|
19
19
|
# Keeping parameters in a line makes them easier to read, but in long lines the
|
20
20
|
# parameters look ridiculous if using the "with_first_parameter" option, making
|
21
21
|
# it more difficult to read the code
|
22
|
-
|
22
|
+
Layout/AlignParameters:
|
23
23
|
EnforcedStyle: with_fixed_indentation
|
24
24
|
|
25
25
|
# Blank lines are useful in separating methods, specs, etc. from one another,
|
@@ -32,13 +32,13 @@ Style/AlignParameters:
|
|
32
32
|
# class Person
|
33
33
|
# ... etc
|
34
34
|
#
|
35
|
-
|
35
|
+
Layout/EmptyLinesAroundBlockBody:
|
36
36
|
Enabled: true
|
37
|
-
|
37
|
+
Layout/EmptyLinesAroundClassBody:
|
38
38
|
Enabled: false
|
39
|
-
|
39
|
+
Layout/EmptyLinesAroundMethodBody:
|
40
40
|
Enabled: true
|
41
|
-
|
41
|
+
Layout/EmptyLinesAroundModuleBody:
|
42
42
|
Enabled: false
|
43
43
|
|
44
44
|
|
@@ -55,12 +55,13 @@ Style/StringLiteralsInInterpolation:
|
|
55
55
|
# See https://github.com/reevoo/reevoocop/issues/1
|
56
56
|
# * For cleaner git diffs
|
57
57
|
# * Simpler :sort:
|
58
|
-
|
58
|
+
Style/TrailingCommaInLiteral:
|
59
|
+
Enabled: true
|
60
|
+
EnforcedStyleForMultiline: consistent_comma
|
61
|
+
|
62
|
+
Style/TrailingCommaInArguments:
|
59
63
|
Enabled: true
|
60
64
|
EnforcedStyleForMultiline: comma
|
61
|
-
SupportedStyles:
|
62
|
-
- comma
|
63
|
-
- no_comma
|
64
65
|
|
65
66
|
# See https://github.com/reevoo/reevoocop/issues/18
|
66
67
|
# We are fine with using double negation to to force
|
@@ -68,6 +69,49 @@ TrailingComma:
|
|
68
69
|
Style/DoubleNegation:
|
69
70
|
Enabled: false
|
70
71
|
|
72
|
+
# See examples/block_call.rb
|
73
|
+
Performance/RedundantBlockCall:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
Layout/EmptyLineAfterMagicComment:
|
77
|
+
Enabled: false
|
78
|
+
Style/SignalException:
|
79
|
+
EnforcedStyle: semantic
|
80
|
+
Style/ParallelAssignment:
|
81
|
+
Enabled: false
|
82
|
+
Metrics/BlockLength:
|
83
|
+
Enabled: false
|
84
|
+
Style/NestedParenthesizedCalls:
|
85
|
+
Enabled: false
|
86
|
+
Style/PercentLiteralDelimiters:
|
87
|
+
Enabled: false
|
88
|
+
Layout/ClosingParenthesisIndentation:
|
89
|
+
Enabled: false
|
90
|
+
Layout/FirstParameterIndentation:
|
91
|
+
Enabled: false
|
92
|
+
Style/GuardClause:
|
93
|
+
Enabled: false
|
94
|
+
Style/RegexpLiteral:
|
95
|
+
Enabled: false
|
96
|
+
Style/MethodMissing:
|
97
|
+
Enabled: false
|
98
|
+
Style/IfInsideElse:
|
99
|
+
Enabled: false
|
100
|
+
Style/NumericPredicate:
|
101
|
+
Enabled: false
|
102
|
+
Layout/IndentHeredoc:
|
103
|
+
Enabled: false
|
104
|
+
Style/StructInheritance:
|
105
|
+
Enabled: false
|
106
|
+
Style/MultipleComparison:
|
107
|
+
Enabled: false
|
108
|
+
Metrics/ModuleLength:
|
109
|
+
Enabled: false
|
110
|
+
Style/IdenticalConditionalBranches:
|
111
|
+
Enabled: false
|
112
|
+
Style/VariableName:
|
113
|
+
Enabled: false
|
114
|
+
|
71
115
|
AllCops:
|
72
116
|
Exclude:
|
73
117
|
- !ruby/regexp /node_modules/
|
data/reevoocop.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(/^(test|spec|features)\//)
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency "rubocop", "0.
|
21
|
+
spec.add_dependency "rubocop", "0.49.1"
|
22
22
|
spec.add_development_dependency "bundler", "~> 1.5"
|
23
23
|
spec.add_development_dependency "rake"
|
24
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reevoocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ed Robinson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.49.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.49.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,6 +67,7 @@ files:
|
|
67
67
|
- README.md
|
68
68
|
- Rakefile
|
69
69
|
- bin/reevoocop
|
70
|
+
- examples/block_call.rb
|
70
71
|
- lib/reevoocop.rb
|
71
72
|
- lib/reevoocop.yml
|
72
73
|
- lib/reevoocop/rake_task.rb
|
@@ -92,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
93
|
version: '0'
|
93
94
|
requirements: []
|
94
95
|
rubyforge_project:
|
95
|
-
rubygems_version: 2.
|
96
|
+
rubygems_version: 2.6.8
|
96
97
|
signing_key:
|
97
98
|
specification_version: 4
|
98
99
|
summary: Like RuboCop only for Reevoo
|