Skip to content

Commit a922035

Browse files
committed
Update RuboCop to 1.0 (#32530).
git-svn-id: http://svn.redmine.org/redmine/trunk@20171 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent b354566 commit a922035

File tree

3 files changed

+184
-60
lines changed

3 files changed

+184
-60
lines changed

.rubocop.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ AllCops:
44
TargetRubyVersion: 2.4
55
TargetRailsVersion: 5.2
66

7+
NewCops: enable
8+
79
Exclude:
810
- '**/vendor/**/*'
911
- '**/tmp/**/*'
@@ -33,20 +35,20 @@ Layout/CaseIndentation:
3335
Layout/EmptyLineBetweenDefs:
3436
AllowAdjacentOneLineDefs: true
3537

38+
Layout/SpaceAroundEqualsInParameterDefault:
39+
Enabled: false
40+
3641
Layout/SpaceBeforeBlockBraces:
3742
# "space" is used more than "no_space".
3843
# But "no_space" is more natural in one liner.
3944
# str = path.to_s.split(%r{[/\\]}).select{|p| !p.blank?}.join("/")
4045
Enabled: false
4146

42-
# You can see results by "rubocop --only Layout/SpaceInsideBlockBraces"
4347
Layout/SpaceInsideBlockBraces:
44-
EnforcedStyle: no_space
45-
SpaceBeforeBlockParameters: false
48+
Enabled: false
4649

47-
# You can see results by "rubocop --only Layout/SpaceInsideHashLiteralBraces"
4850
Layout/SpaceInsideHashLiteralBraces:
49-
EnforcedStyle: no_space
51+
Enabled: false
5052

5153
Lint/RaiseException:
5254
Enabled: true
@@ -123,6 +125,9 @@ Style/IdenticalConditionalBranches:
123125
- 'config/initializers/10-patches.rb'
124126
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
125127

128+
Style/RaiseArgs:
129+
Enabled: false
130+
126131
Style/TrailingCommaInArrayLiteral:
127132
Enabled: false
128133

0 commit comments

Comments
 (0)