Skip to content

Commit

Permalink
update rubocop and rules
Browse files Browse the repository at this point in the history
  • Loading branch information
infused committed Jun 7, 2019
1 parent aa5286f commit 1a2e6d3
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
.rubocop.yml
Gemfile.lock
*.gem
172 changes: 172 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
require:
- rubocop-performance
- rubocop-rspec

Gemspec/RequiredRubyVersion:
Enabled: false

Layout/AlignParameters:
Enabled: true
EnforcedStyle: with_fixed_indentation

Layout/CaseIndentation:
Enabled: false

Layout/ElseAlignment:
Enabled: false

Layout/EmptyLinesAroundBlockBody:
Enabled: false

Layout/EndAlignment:
Enabled: true
EnforcedStyleAlignWith: start_of_line

Layout/IndentFirstArrayElement:
EnforcedStyle: consistent

Layout/IndentFirstHashElement:
EnforcedStyle: consistent

Layout/MultilineHashBraceLayout:
Enabled: true
EnforcedStyle: symmetrical

Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented

Layout/MultilineOperationIndentation:
EnforcedStyle: indented

Layout/RescueEnsureAlignment:
Enabled: false

Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Layout/SpaceInLambdaLiteral:
EnforcedStyle: require_space

Layout/TrailingWhitespace:
Enabled: false

Lint/AmbiguousBlockAssociation:
Enabled: false

Lint/AssignmentInCondition:
Enabled: false

Lint/ShadowingOuterLocalVariable:
Enabled: false

Lint/UnneededSplatExpansion:
Enabled: false

Metrics/AbcSize:
Enabled: false

Metrics/BlockLength:
CountComments: false
Enabled: true
Exclude:
- spec/**/*_spec.rb
Max: 100

Metrics/ClassLength:
Enabled: false

Metrics/CyclomaticComplexity:
Max: 10

Metrics/LineLength:
Enabled: false

Metrics/MethodLength:
Enabled: false

Metrics/ModuleLength:
Enabled: false

Metrics/PerceivedComplexity:
Max: 10

Naming/FileName:
Enabled: false

Naming/UncommunicativeMethodParamName:
Enabled: false

Rails/TimeZone:
EnforcedStyle: strict

RSpec/AnyInstance:
Enabled: false

RSpec/DescribedClass:
Enabled: false

RSpec/ExampleLength:
Max: 25

RSpec/HookArgument:
Enabled: false

RSpec/ImplicitSubject:
Enabled: false

RSpec/LetSetup:
Enabled: false

RSpec/MessageSpies:
Enabled: false

RSpec/MultipleExpectations:
Enabled: false

RSpec/NestedGroups:
Max: 5

RSpec/NotToNot:
EnforcedStyle: to_not

Style/Alias:
Enabled: false

Style/ClassAndModuleChildren:
Enabled: false

Style/Documentation:
Enabled: false

Style/EmptyMethod:
EnforcedStyle: expanded

Style/FormatStringToken:
Enabled: false

Style/GuardClause:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: false

Style/Lambda:
Enabled: false

Style/NumericPredicate:
Enabled: false

Style/PerlBackrefs:
Enabled: false

Style/RedundantBegin:
Enabled: false

Style/RescueModifier:
Enabled: false

Style/SafeNavigation:
Enabled: false

Style/SymbolArray:
EnforcedStyle: brackets
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ group :development, :test do
gem 'guard-rspec'
gem 'irb'
gem 'rspec'
gem 'rubocop'
gem 'rubocop-rspec'
gem 'rubocop-performance'
end

0 comments on commit 1a2e6d3

Please sign in to comment.