From 6e252afc8865b2bd13f5e6df8f4e6048c0d59470 Mon Sep 17 00:00:00 2001 From: Will Fleming Date: Fri, 18 Dec 2015 11:45:27 -0500 Subject: [PATCH] set rubocop settings to our standard style --- .rubocop.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) 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