-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
104 lines (82 loc) · 1.93 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
require:
- rubocop-capybara
- rubocop-factory_bot
- rubocop-performance
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails
inherit_from:
- .rubocop_todo.yml
inherit_mode:
merge:
- Exclude
AllCops:
NewCops: enable
TargetRubyVersion: 3.2
Exclude:
- "spec/internal/db/schema.rb"
- "node_modules/**/*"
- "vendor/**/*"
Metrics/AbcSize:
Exclude:
- "db/migrate/*"
- "lib/rails/generators/**/*_generator.rb"
Metrics/BlockLength:
Exclude:
- "*.gemspec"
- "**/*_spec.rb"
- "**/*.builder"
- "db/migrate/**/*"
- "config/routes.rb"
- "lib/tasks/**/*.rake"
- "spec/factories/**/*.rb"
- "spec/rails_helper.rb"
Metrics/ClassLength:
Exclude:
- "db/migrate/*"
Metrics/MethodLength:
Exclude:
- "app/models/concerns/pages_core/page_model/dated_page.rb"
- "db/migrate/*"
- "lib/rails/generators/**/*_generator.rb"
Metrics/ParameterLists:
Exclude:
- "app/helpers/pages_core/labelled_form_builder.rb"
Style/AsciiComments:
Enabled: false
Style/Documentation:
Enabled: false
Style/FormatStringToken:
Exclude:
- "config/routes.rb"
Style/StringLiterals:
EnforcedStyle: double_quotes
Layout/LineLength:
AutoCorrect: true
Max: 80
Layout/MultilineOperationIndentation:
EnforcedStyle: aligned
Lint/MissingSuper:
Exclude:
- "lib/pages_core/templates/configuration_handler.rb"
- "lib/pages_core/templates/configuration_proxy.rb"
Rails:
Enabled: true
Rails/DynamicFindBy:
AllowedMethods:
- find_by_email
Rails/ApplicationController:
Exclude:
- "app/controllers/pages_core/base_controller.rb"
Rails/CreateTableWithTimestamps:
Exclude:
- "db/migrate/20111219033112_create_pages_tables.rb"
Rails/HelperInstanceVariable:
Exclude:
- "app/helpers/pages_core/admin/form_builder.rb"
Rails/OutputSafety:
Exclude:
- "app/formatters/pages_core/html_formatter.rb"
Rails/SkipsModelValidations:
Exclude:
- "db/migrate/**/*"