Skip to content

Commit

Permalink
enable rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Kulp committed Oct 10, 2023
1 parent 2452fc2 commit 4f7a805
Show file tree
Hide file tree
Showing 2 changed files with 100 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ jobs:
- name: Use sample application.yml file
run: mv config/application-sample.yml config/application.yml

# - name: Rubocop Check
# run: bundle exec rubocop
- name: Rubocop Check
run: bundle exec rubocop

- name: Run tests
env:
Expand Down
98 changes: 98 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
inherit_mode:
merge:
- Exclude

AllCops:
TargetRubyVersion: 3.2
DisplayCopNames: true
Exclude:
- bin/*
- tmp/**/*
- db/schema.rb
- vendor/*/**
SuggestExtensions:
rubocop-capybara: true
rubocop-factory_bot: true
rubocop-rails: true
rubocop-rspec: true


Layout/EmptyLinesAroundClassBody:
Enabled: false

Layout/HashAlignment:
Enabled: true

Lint/ConstantDefinitionInBlock:
Enabled: false

Metrics/ClassLength:
Enabled: false

Naming/VariableNumber:
Enabled: false

Naming/MemoizedInstanceVariableName:
Enabled: false

Style/ClassAndModuleChildren:
Enabled: false

Style/Documentation:
Enabled: false

Style/GuardClause:
Enabled: false

Style/HashSyntax:
Enabled: false

Style/IfUnlessModifier:
Enabled: false

Style/NumericLiterals:
Enabled: false

Style/RedundantFreeze:
Enabled: false

Style/RedundantSelf:
Enabled: false

Style/StringLiterals:
Enabled: false

Style/SymbolArray:
Enabled: false

Style/WordArray:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: false

Metrics/CyclomaticComplexity:
Max: 20

Metrics/MethodLength:
Max: 60

Metrics/BlockLength:
Enabled: false

Metrics/AbcSize:
Max: 50

Metrics/PerceivedComplexity:
Max: 20

Layout/LineLength:
Severity: warning
Max: 250

Layout/FirstHashElementIndentation:
EnforcedStyle: consistent

# Global variable is the only way to subscribe for more tickers in the websocket connection between Rails <-> Polygon
Style/GlobalVars:
Enabled: false

0 comments on commit 4f7a805

Please sign in to comment.