Chatwoot/.rubocop.yml

48 lines
1,017 B
YAML
Raw Normal View History

require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
2019-10-21 05:48:47 +00:00
inherit_from: .rubocop_todo.yml
Layout/LineLength:
2019-08-21 04:57:57 +00:00
Max: 150
Metrics/ClassLength:
Max: 125
RSpec/ExampleLength:
2019-12-24 07:57:25 +00:00
Max: 15
Style/Documentation:
2019-08-21 04:57:57 +00:00
Enabled: false
2019-09-04 04:38:21 +00:00
Style/FrozenStringLiteralComment:
Enabled: false
Style/SymbolArray:
Enabled: false
Metrics/BlockLength:
Exclude:
- spec/**/*
- '**/routes.rb'
- 'config/environments/*'
Rails/ApplicationController:
Exclude:
- 'app/controllers/api/v1/widget/messages_controller.rb'
- 'app/controllers/dashboard_controller.rb'
- 'app/controllers/widget_tests_controller.rb'
- 'app/controllers/widgets_controller.rb'
2019-10-21 05:48:47 +00:00
Style/ClassAndModuleChildren:
EnforcedStyle: compact
Exclude:
- 'config/application.rb'
RSpec/NestedGroups:
Enabled: true
Max: 4
2019-10-21 05:48:47 +00:00
AllCops:
Exclude:
- db/*
- bin/**/*
- db/**/*
- config/**/*
- public/**/*
- vendor/**/*
- node_modules/**/*
- lib/tasks/auto_annotate_models.rake
- config/environments/**/*