@@ -25,8 +25,14 @@ Style/Documentation:
2525Style/StringLiterals :
2626 EnforcedStyle : double_quotes
2727
28+ Style/StringLiteralsInInterpolation :
29+ EnforcedStyle : double_quotes
30+ 2831# Use a trailing comma to keep diffs clean when elements are inserted or removed
29- Style/TrailingComma :
32+ Style/TrailingCommaInArguments :
33+ EnforcedStyleForMultiline : comma
34+ 35+ Style/TrailingCommaInLiteral :
3036 EnforcedStyleForMultiline : comma
3137
3238# We avoid GuardClause because it can result in "suprise return"
@@ -51,10 +57,10 @@ Style/GlobalVars:
5157 - " $mongo"
5258 - " $rollout"
5359
54- # Allow $! in config/initializers
60+ # Using english names requires loading an extra module, which is annoying, so
61+ # we prefer the perl names for consistency.
5562Style/SpecialGlobalVars :
56- Exclude :
57- - config/initializers/**/*
63+ EnforcedStyle : use_perl_names
5864
5965# We have common cases where has_ and have_ make sense
6066Style/PredicateName :
@@ -65,8 +71,10 @@ Style/PredicateName:
6571# We use %w[ ], not %w( ) because the former looks like an array
6672Style/PercentLiteralDelimiters :
6773 PreferredDelimiters :
68- " %w " : []
69- " %W " : []
74+ " %i " : " []"
75+ " %I " : " []"
76+ " %w " : " []"
77+ " %W " : " []"
7078
7179# Allow "trivial" accessors when defined as a predicate? method
7280Style/TrivialAccessors :
@@ -79,6 +87,40 @@ Style/Next:
7987Style/ModuleFunction :
8088 Enabled : false
8189
90+ # Disallow extra spacing for token alignment
91+ Style/ExtraSpacing :
92+ AllowForAlignment : false
93+ 94+ # and/or in conditionals has no meaningful difference (only gotchas), so we
95+ # disallow them there. When used for control flow, the difference in precedence
96+ # can make for a less noisy expression, as in:
97+ #
98+ # x = find_x or raise XNotFound
99+ #
100+ Style/AndOr :
101+ EnforcedStyle : conditionals
102+ 103+ Style/AlignParameters :
104+ EnforcedStyle : with_fixed_indentation
105+ 106+ Style/MultilineOperationIndentation :
107+ EnforcedStyle : indented
108+ 109+ Style/AlignHash :
110+ EnforcedLastArgumentHashStyle : ignore_implicit
111+ 112+ # This has the behavior we want, but it has a bug in it which produces a lot of false positives
113+ # https://github.com/bbatsov/rubocop/issues/3462
114+ # MultilineMethodCallBraceLayout:
115+ # EnforcedStyle: new_line
116+ 117+ # ###############################################################################
118+ # Performance
119+ # ###############################################################################
120+ 121+ Performance/RedundantMerge :
122+ Enabled : false
123+ 82124# ###############################################################################
83125# Rails - disable things because we're primarily non-rails
84126# ###############################################################################
0 commit comments