Skip to content

Commit ed7303c

Browse files
committed
update RuboCop config
1 parent 7c6a077 commit ed7303c

File tree

2 files changed

+35
-5
lines changed

2 files changed

+35
-5
lines changed

.rubocop.yml

+1-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@ inherit_from:
22
- vendor/hound/config/style_guides/ruby.yml
33
- .rubocop_todo.yml
44

5-
# Rails cops
6-
AllCops:
7-
RunRailsCops: true
8-
95
# Files you want to exclude
106
AllCops:
7+
TargetRubyVersion: 2.2
118
Exclude:
129
- db/schema.rb
1310
- tmp/aruba/Guardfile

.rubocop_todo.yml

+34-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2016-05-19 21:55:11 +0200 using RuboCop version 0.40.0.
3+
# on 2016-08-06 16:49:52 +0200 using RuboCop version 0.42.0.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -18,6 +18,16 @@ Lint/NestedMethodDefinition:
1818
- 'lib/guard/commands/show.rb'
1919
- 'lib/guard/jobs/pry_wrapper.rb'
2020

21+
# Offense count: 7
22+
# Configuration parameters: Include.
23+
# Include: app/**/*.rb, config/**/*.rb, lib/**/*.rb
24+
Rails/Exit:
25+
Exclude:
26+
- 'lib/**/*.rake'
27+
- 'lib/guard.rb'
28+
- 'lib/guard/cli.rb'
29+
- 'lib/tasks/releaser.rb'
30+
2131
# Offense count: 39
2232
# Cop supports --auto-correct.
2333
Style/MutableConstant:
@@ -38,6 +48,21 @@ Style/MutableConstant:
3848
- 'lib/guard/ui/colors.rb'
3949
- 'lib/guard/version.rb'
4050

51+
# Offense count: 2
52+
# Cop supports --auto-correct.
53+
# Configuration parameters: EnforcedStyle, SupportedStyles.
54+
# SupportedStyles: predicate, comparison
55+
Style/NumericPredicate:
56+
Exclude:
57+
- 'lib/guard/dsl_describer.rb'
58+
- 'lib/guard/terminal.rb'
59+
60+
# Offense count: 1
61+
# Cop supports --auto-correct.
62+
Style/SpaceInsideArrayPercentLiteral:
63+
Exclude:
64+
- 'guard.gemspec'
65+
4166
# Offense count: 41
4267
# Cop supports --auto-correct.
4368
# Configuration parameters: EnforcedStyle, SupportedStyles.
@@ -57,3 +82,11 @@ Style/SpaceInsideStringInterpolation:
5782
- 'lib/guard/plugin_util.rb'
5883
- 'lib/guard/runner.rb'
5984
- 'lib/guard/ui.rb'
85+
86+
# Offense count: 2
87+
# Cop supports --auto-correct.
88+
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
89+
# SupportedStyles: single_quotes, double_quotes
90+
Style/StringLiterals:
91+
Exclude:
92+
- 'Rakefile'

0 commit comments

Comments
 (0)