Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Neff <benjamin@coding4coffee.ch>2017-03-03 05:25:11 +0300
committerBenjamin Neff <benjamin@coding4coffee.ch>2017-03-05 00:09:54 +0300
commit13f549b2ba46e25da156854efa660f21945e3403 (patch)
tree8a58b90cbaea0476c433cd181aae7086005bd963 /.rubocop.yml
parent8330e5ef727635f0c8eb95891852495b112b7de9 (diff)
Bump rubocop
And update config for new/updated cops.
Diffstat (limited to '.rubocop.yml')
-rw-r--r--.rubocop.yml24
1 files changed, 23 insertions, 1 deletions
diff --git a/.rubocop.yml b/.rubocop.yml
index 2ee483e70..fae72b1a6 100644
--- a/.rubocop.yml
+++ b/.rubocop.yml
@@ -25,6 +25,15 @@ Metrics/ModuleLength:
Metrics/AbcSize:
Max: 20
+# Some blocks are longer.
+Metrics/BlockLength:
+ ExcludedMethods:
+ - "namespace"
+ - "create_table"
+ Exclude:
+ - "config/**/*.rb"
+ - "spec/**/*.rb"
+
# No space makes the method definition shorter and differentiates
# from a regular assignment.
Style/SpaceAroundEqualsInParameterDefault:
@@ -51,7 +60,7 @@ Style/HashSyntax:
EnforcedStyle: ruby19_no_mixed_keys
# has_key? and has_value? are far more readable than key? and value?
-Style/DeprecatedHashMethods:
+Style/PreferredHashMethods:
Enabled: false
# String#% is by far the least verbose and only object oriented variant.
@@ -147,7 +156,20 @@ Style/OpMethod:
Lint/Debugger:
Enabled: false
+# We used comparison everywhere.
+Style/NumericPredicate:
+ EnforcedStyle: comparison
# Reset some HoundCI changes back to Rubocop defaults
Style/DotPosition:
EnforcedStyle: leading
+
+### backward compatibility
+
+# only with ruby >= 2.3
+Style/FrozenStringLiteralComment:
+ Enabled: false
+
+# only with ruby >= 2.4
+Performance/RegexpMatch:
+ Enabled: false