diff --git a/.rubocop.yml b/.rubocop.yml index 0bf0dc6c..7d6a6c26 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -51,6 +51,11 @@ Style/GlobalVars: - "$mongo" - "$rollout" +# Allow $! in config/initializers +Style/SpecialGlobalVars: + Exclude: + - config/initializers/**/* + # We have common cases where has_ and have_ make sense Style/PredicateName: Enabled: true @@ -63,6 +68,17 @@ Style/PercentLiteralDelimiters: "%w": [] "%W": [] +# Allow "trivial" accessors when defined as a predicate? method +Style/TrivialAccessors: + AllowPredicates: true + +Style/Next: + Enabled: false + +# We think it's OK to use the "extend self" module pattern +Style/ModuleFunction: + Enabled: false + ################################################################################ # Rails - disable things because we're primarily non-rails ################################################################################ @@ -92,7 +108,3 @@ Style/ClassAndModuleChildren: Style/BlockDelimiters: Exclude: - spec/**/* - -Style/Blocks: - Exclude: - - spec/**/* \ No newline at end of file