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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5ca4cd33814f9816ee3df2ac47653bf60ee0755
4
- data.tar.gz: 29cc517dfaedc79d0afa0fd3d3c473c3fc9716b4
3
+ metadata.gz: fedea0a3cbe0420166911850c2e9d70660a59551
4
+ data.tar.gz: 520a70310b18b364c8730d59a954eb9c3e43d0ee
5
5
  SHA512:
6
- metadata.gz: 2e50b1b2667ca9b3b72e4d044158e8bfe3dff3df7e2907e256770f1df4520fe203f038907e1d90f56fbdc4223b31f29b56d3c92187adbd8bd8bf73ea323b6308
7
- data.tar.gz: 04c35e3d8853464192bb76606f8c4d56af98620abad37a69965bffdb5eb2876136cb878f520e48a6bb256491cbf17bf2f60aed3a4d01f607fd1399882188f0e6
6
+ metadata.gz: d6ed59da5bca3e457b14f0491b58c505af780be139cb847e7f346ccd4f87771783647ffee0c5dc4560cea0b4acdbc3c4de59b7f50a30e09053b757f7ab9f5553
7
+ data.tar.gz: 1c5d738bc763e715385b7d322680218226b13e4a54ffc1fdc7887145906e04b58f1df6d7f690a8ba9cb76c4f300f4b4c2ee6ffeb51002c38de7a249ea4fa30b3
data/.travis.yml CHANGED
@@ -1,5 +1,9 @@
1
+ sudo: false
2
+ dist: trusty
1
3
  language: ruby
2
4
  rvm:
3
- - 2.3.0
4
- - 2.2.4
5
- - 2.1.8
5
+ - 2.0
6
+ - 2.1
7
+ - 2.2
8
+ - 2.3
9
+ - 2.4
data/Gemfile CHANGED
@@ -2,5 +2,3 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in reevoocop.gemspec
4
4
  gemspec
5
-
6
- gem "pry"
data/Rakefile CHANGED
@@ -9,5 +9,5 @@ task :reevoocop_cli do
9
9
  sh "bin/reevoocop"
10
10
  end
11
11
 
12
- task default: [:reevoocop, :reevoocop_cli]
13
- task build: [:reevoocop, :reevoocop_cli]
12
+ task default: %i[reevoocop reevoocop_cli]
13
+ task build: %i[reevoocop reevoocop_cli]
@@ -0,0 +1,3 @@
1
+ def foo(&block)
2
+ block.call "hello" if block_given?
3
+ end
@@ -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)
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module ReevooCop
4
- VERSION = "0.0.9"
4
+ VERSION = "0.0.10".freeze
5
5
  end
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
- Style/AlignParameters:
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
- Style/EmptyLinesAroundBlockBody:
35
+ Layout/EmptyLinesAroundBlockBody:
36
36
  Enabled: true
37
- Style/EmptyLinesAroundClassBody:
37
+ Layout/EmptyLinesAroundClassBody:
38
38
  Enabled: false
39
- Style/EmptyLinesAroundMethodBody:
39
+ Layout/EmptyLinesAroundMethodBody:
40
40
  Enabled: true
41
- Style/EmptyLinesAroundModuleBody:
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
- TrailingComma:
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.28.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.9
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-01-10 00:00:00.000000000 Z
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.28.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.28.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.4.5.1
96
+ rubygems_version: 2.6.8
96
97
  signing_key:
97
98
  specification_version: 4
98
99
  summary: Like RuboCop only for Reevoo