summaryrefslogtreecommitdiffstats
path: root/.rubocop.yml
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-10-23 00:47:03 +0000
committerGo MAEDA <maeda@farend.jp>2020-10-23 00:47:03 +0000
commita92203595aaa098b10a04ab14a6a2442791d5e6f (patch)
treec14b16da247a509191d2d4cc8fb277a5acebe01e /.rubocop.yml
parentb3545663678425ca7a1be170e81722e2fdba9dfd (diff)
downloadredmine-a92203595aaa098b10a04ab14a6a2442791d5e6f.tar.gz
redmine-a92203595aaa098b10a04ab14a6a2442791d5e6f.zip
Update RuboCop to 1.0 (#32530).
git-svn-id: http://svn.redmine.org/redmine/trunk@20171 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml15
1 files changed, 10 insertions, 5 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 67477acd5..62ddb4e1b 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -4,6 +4,8 @@ AllCops:
TargetRubyVersion: 2.4
TargetRailsVersion: 5.2
+ NewCops: enable
+
Exclude:
- '**/vendor/**/*'
- '**/tmp/**/*'
@@ -33,20 +35,20 @@ Layout/CaseIndentation:
Layout/EmptyLineBetweenDefs:
AllowAdjacentOneLineDefs: true
+Layout/SpaceAroundEqualsInParameterDefault:
+ Enabled: false
+
Layout/SpaceBeforeBlockBraces:
# "space" is used more than "no_space".
# But "no_space" is more natural in one liner.
# str = path.to_s.split(%r{[/\\]}).select{|p| !p.blank?}.join("/")
Enabled: false
-# You can see results by "rubocop --only Layout/SpaceInsideBlockBraces"
Layout/SpaceInsideBlockBraces:
- EnforcedStyle: no_space
- SpaceBeforeBlockParameters: false
+ Enabled: false
-# You can see results by "rubocop --only Layout/SpaceInsideHashLiteralBraces"
Layout/SpaceInsideHashLiteralBraces:
- EnforcedStyle: no_space
+ Enabled: false
Lint/RaiseException:
Enabled: true
@@ -123,6 +125,9 @@ Style/IdenticalConditionalBranches:
- 'config/initializers/10-patches.rb'
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
+Style/RaiseArgs:
+ Enabled: false
+
Style/TrailingCommaInArrayLiteral:
Enabled: false