Skip to content

Commit

Permalink
Add rubocop configo
Browse files Browse the repository at this point in the history
  • Loading branch information
paulohenrique-gh committed Mar 24, 2024
1 parent b5ee3b6 commit e8fd2d7
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .rubocop.yml
@@ -0,0 +1,38 @@
# The behavior of RuboCop can be controlled via the .rubocop.yml
# configuration file. It makes it possible to enable/disable
# certain cops (checks) and to alter their behavior if they accept
# any parameters. The file can be placed either in your home
# directory or in some project directory.
#
# RuboCop will start looking for the configuration file in the directory
# where the inspected file is and continue its way up to the root directory.
#
# See https://docs.rubocop.org/rubocop/configuration
require:
- rubocop-rails

AllCops:
NewCops: disable
TargetRubyVersion: 3.3.0
Exclude:
- 'bin/**/*'
- 'vendor/**/*'
- 'db/**/*'
- 'config/**/*'
- 'script/**/*'
- 'spec/rails_helper.rb'
SuggestExtensions: false

Style/Documentation:
Enabled: false

Rails/I18nLocaleTexts:
Enabled: true

Style/FrozenStringLiteralComment:
Enabled: false

Metrics/BlockLength:
AllowedMethods: ['describe', 'context', 'feature', 'scenario', 'let', 'it']
Exclude:
- 'spec/factories/**/*'

0 comments on commit e8fd2d7

Please sign in to comment.