-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.erb-lint.yml
72 lines (72 loc) · 2.05 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
# Uses File.fnmatch? for comparison
exclude:
- '*vendor/*'
- '*node_modules/*'
linters:
ClosingErbTagIndent:
enabled: true
FinalNewline:
enabled: false
ExtraNewline:
enabled: true
FinalNewline:
enabled: true
HardCodedString:
enabled: true
exclude:
- '*app/components/edit_resource_button.html.erb'
- '*app/components/flash_message_component.html.erb'
- '*app/views/actor_mailer/*'
- '*app/views/catalog/_search_form.html.erb'
- '*app/views/catalog/facet.html.erb'
- '*app/views/dashboard/catalog/_index_work_version.html.erb'
- '*app/views/dashboard/form/contributors/_authorship_fields.html.erb'
- '*app/views/dashboard/form/contributors/_search.html.erb'
- '*app/views/dashboard/form/members/_work_membership_fields.html.erb'
- '*app/views/incident_mailer/acknowledgment.html.erb'
- '*app/views/incident_mailer/report.html.erb'
- '*app/views/incidents/_directions.html.erb'
- '*app/views/layouts/component_preview.html.erb'
- '*app/views/resources/_work_version.html.erb'
- '*app/views/resources/_collection.html.erb'
- '*app/views/shared/_work_version_files.html.erb'
- '*test/*'
RightTrim:
enabled: true
enforced_style: '-'
Rubocop:
enabled: true
rubocop_config:
inherit_gem:
niftany:
- niftany_rubocop_ruby.yml
- niftany_rubocop_rails.yml
Layout/InitialIndentation:
Enabled: false
Layout/TrailingEmptyLines:
Enabled: false
Layout/TrailingWhitespace:
Enabled: false
Naming/FileName:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Layout/LineLength:
Enabled: false
Lint/UselessAssignment:
Enabled: false
Rails/OutputSafety:
Enabled: false
SelfClosingTag:
enabled: true
SelfClosingTagCustom:
enabled: true
SpaceAroundErbTag:
enabled: true
SpaceInHtmlTag:
enabled: true
SpaceIndentation:
enabled: true
TrailingWhitespace:
enabled: true