Files
docuseal/.rubocop.yml
T

109 lines
1.5 KiB
YAML
Raw Normal View History

2026-01-26 18:18:07 +02:00
plugins:
2023-05-21 17:59:36 +03:00
- rubocop-performance
- rubocop-rails
- rubocop-rspec
AllCops:
NewCops: enable
Exclude:
- db/schema.rb
- node_modules/**/*
- bin/*
2023-07-04 00:25:57 +03:00
- vendor/**/*
2026-01-26 18:18:07 +02:00
TargetRubyVersion: '4.0'
2024-07-21 15:10:26 +03:00
SuggestExtensions: false
2023-05-21 17:59:36 +03:00
Metrics/BlockLength:
Exclude:
- Rakefile
- '**/*.rake'
- spec/**/*
- config/environments/**/*
- config/routes.rb
Style/Documentation:
Enabled: false
Lint/MissingSuper:
Enabled: false
2023-09-10 02:10:01 +03:00
Metrics/ParameterLists:
Max: 10
2023-05-21 17:59:36 +03:00
Metrics/MethodLength:
2024-02-10 19:38:03 +02:00
Max: 30
2023-05-21 17:59:36 +03:00
Exclude:
- 'db/migrate/**'
2024-08-25 23:24:59 +03:00
- 'spec/**/*'
2023-05-21 17:59:36 +03:00
Metrics/CyclomaticComplexity:
2023-07-01 13:16:07 +03:00
Max: 15
2023-05-21 17:59:36 +03:00
Metrics/PerceivedComplexity:
2023-07-01 13:16:07 +03:00
Max: 15
2025-10-04 18:33:37 +03:00
Style/MultipleComparison:
Enabled: false
2025-11-15 19:48:42 +02:00
Style/NumericPredicate:
Enabled: false
2026-01-07 11:24:02 +02:00
Style/MinMaxComparison:
Enabled: false
2025-10-04 18:33:37 +03:00
Naming/PredicateMethod:
Enabled: false
2023-07-01 13:16:07 +03:00
Layout/LineLength:
AllowedPatterns: ['\A\s*#']
2023-05-21 17:59:36 +03:00
Metrics/AbcSize:
2024-03-30 19:37:48 +02:00
Max: 45
2024-08-25 23:24:59 +03:00
Exclude:
- spec/**/*
2023-05-21 17:59:36 +03:00
2023-06-13 00:29:07 +03:00
Metrics/ModuleLength:
2024-11-10 13:11:25 +02:00
Max: 1000
2023-06-13 00:29:07 +03:00
Metrics/ClassLength:
2024-11-10 13:11:25 +02:00
Max: 1000
2023-06-13 00:29:07 +03:00
2023-05-21 17:59:36 +03:00
RSpec/NestedGroups:
Max: 6
RSpec/MultipleExpectations:
2024-11-17 15:57:10 +02:00
Max: 25
2023-05-21 17:59:36 +03:00
RSpec/ExampleLength:
2025-07-11 09:02:18 +03:00
Max: 500
2023-08-20 12:42:47 +03:00
2023-08-21 20:09:56 +03:00
RSpec/MultipleMemoizedHelpers:
2025-06-28 10:17:50 +03:00
Max: 15
2023-05-21 17:59:36 +03:00
2025-09-16 13:03:02 +03:00
RSpec/AnyInstance:
Enabled: false
2024-09-12 17:31:37 +03:00
Metrics/BlockNesting:
2024-12-19 17:17:34 +02:00
Max: 5
2024-09-12 17:31:37 +03:00
2023-05-21 17:59:36 +03:00
Rails/I18nLocaleTexts:
Enabled: false
2023-10-22 01:54:20 +03:00
Rails/FindEach:
Enabled: false
2023-07-26 09:58:50 +03:00
Rails/SkipsModelValidations:
Enabled: false
2023-05-21 17:59:36 +03:00
Rails/ApplicationController:
Enabled: false
2023-10-28 23:07:18 +03:00
2024-06-18 16:51:42 +03:00
Rails/Output:
Enabled: false
2026-01-26 18:18:07 +02:00
Rails/StrongParametersExpect:
Enabled: false
Rails/RedirectBackOrTo:
Enabled: false