-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
.erb-lint.yml
57 lines (56 loc) · 1.83 KB
/
.erb-lint.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
---
exclude:
- vendor/**/*
# These files are autogenerated by maizzle
- app/views/alert_mailer/alert.html.erb
- app/views/devise/mailer/confirmation_instructions.html.erb
- app/views/devise/mailer/reset_password_instructions.html.erb
- app/views/devise/mailer/unlock_instructions.html.erb
- app/views/users/activation_mailer/notify.html.erb
# These files are overridden templates from administrate so we don't want them to change too much from the original
- app/views/admin/application/show.html.erb
- app/views/admin/application/index.html.erb
- app/views/admin/application/_index_header.html.erb
EnableDefaultLinters: true
linters:
PartialInstanceVariable:
enabled: true
ErbSafety:
# This one is just weird to me when you're just trying to include a string inside quotes in some js it fails
enabled: false
RequireScriptNonce:
enabled: false
Rubocop:
enabled: true
rubocop_config:
inherit_from:
- .rubocop.yml
Style/FrozenStringLiteralComment:
Enabled: false
Layout/TrailingEmptyLines:
Enabled: false
Layout/InitialIndentation:
Enabled: false
Layout/ExtraSpacing:
Enabled: false
Style/TrailingCommaInArguments:
Exclude:
- app/views/admin/application/*
Layout/FirstArgumentIndentation:
Exclude:
- app/views/admin/application/*
Style/MultilineIfModifier:
Exclude:
- app/views/admin/application/*
Layout/TrailingWhitespace:
Exclude:
- app/views/admin/application/*
Layout/MultilineMethodCallBraceLayout:
Exclude:
- app/views/admin/application/*
Layout/LeadingEmptyLines:
Exclude:
- app/views/admin/application/*
Layout/ArgumentAlignment:
Exclude:
- app/views/admin/application/*