Skip to content

Commit

Permalink
set up rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmbrasil committed Oct 30, 2024
1 parent 0a93401 commit 703f1e6
Show file tree
Hide file tree
Showing 5 changed files with 10,254 additions and 8,540 deletions.
97 changes: 15 additions & 82 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,87 +1,20 @@
AllCops:
TargetRubyVersion: 2.3
Exclude:
- 'db/schema.rb'
- 'db/migrate/*.rb'
- 'config/**/*'
- 'script/**/*'
- 'bin/**/*'
- 'node_modules/**/*'
- 'Gemfile'

Rails:
Enabled: true

Rails/TimeZone:
Enabled: false

Rails/Date:
Enabled: false

Rails/HttpPositionalArguments:
Enabled: false

Rails/SkipsModelValidations:
Enabled: false

Documentation:
Enabled: false
inherit_from: .rubocop_todo.yml

Lint/AmbiguousBlockAssociation:
Exclude:
- 'spec/**/*.rb'

Style/Semicolon:
AllowAsExpressionSeparator: true
require:
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails
- rubocop-capybara
- rubocop-factory_bot

Style/ClassAndModuleChildren:
Enabled: false

Style/EachWithObject:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: false

Style/StructInheritance:
Enabled: false

Layout/AlignParameters:
Enabled: false

Layout/ClosingParenthesisIndentation:
Enabled: false

Metrics/LineLength:
Max: 100

Metrics/MethodLength:
CountComments: false
Max: 25

Metrics/AbcSize:
Enabled: true
Max: 25
Exclude:
- 'app/controllers/stories_controller.rb'
- 'app/controllers/projects_controller.rb'
- 'app/presenters/activity_presenter.rb'

Metrics/ClassLength:
Enabled: true
Max: 110
Exclude:
- 'app/controllers/projects_controller.rb'
- 'app/controllers/teams_controller.rb'

Metrics/PerceivedComplexity:
Enabled: true
Max: 8

Metrics/CyclomaticComplexity:
Enabled: true
AllCops:
NewCops: enable
Exclude:
- 'spec/support/integration_helpers.rb'
- 'node_modules/**/*'
- 'db/**/*'
- 'config/**/*'
- 'bin/*'
- 'vendor/**/*'

Metrics/BlockLength:
Style/Documentation:
Enabled: false
Loading

0 comments on commit 703f1e6

Please sign in to comment.