Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jul 19, 2025. It is now read-only.

Commit 4ff7ea2

Browse files
committed
Merge pull request #58 from codeclimate/will/rubocop-config
set rubocop settings to our standard style
2 parents 71a96db + 6e252af commit 4ff7ea2

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

‎.rubocop.yml‎

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ Style/GlobalVars:
5151
- "$mongo"
5252
- "$rollout"
5353

54+
# Allow $! in config/initializers
55+
Style/SpecialGlobalVars:
56+
Exclude:
57+
- config/initializers/**/*
58+
5459
# We have common cases where has_ and have_ make sense
5560
Style/PredicateName:
5661
Enabled: true
@@ -63,6 +68,17 @@ Style/PercentLiteralDelimiters:
6368
"%w": []
6469
"%W": []
6570

71+
# Allow "trivial" accessors when defined as a predicate? method
72+
Style/TrivialAccessors:
73+
AllowPredicates: true
74+
75+
Style/Next:
76+
Enabled: false
77+
78+
# We think it's OK to use the "extend self" module pattern
79+
Style/ModuleFunction:
80+
Enabled: false
81+
6682
################################################################################
6783
# Rails - disable things because we're primarily non-rails
6884
################################################################################
@@ -92,7 +108,3 @@ Style/ClassAndModuleChildren:
92108
Style/BlockDelimiters:
93109
Exclude:
94110
- spec/**/*
95-
96-
Style/Blocks:
97-
Exclude:
98-
- spec/**/*

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /