Skip to content
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

set rubocop settings to our standard style #58

Merged
merged 1 commit into from
Dec 18, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
################################################################################
Expand Down Expand Up @@ -92,7 +108,3 @@ Style/ClassAndModuleChildren:
Style/BlockDelimiters:
Exclude:
- spec/**/*

Style/Blocks:
Exclude:
- spec/**/*