Add GitHub CI workflow for slim lint
This commit is contained in:

committed by
Dominic Sauer

parent
9a9efd5caa
commit
681e8ec444
32
.slim-lint.yml
Normal file
32
.slim-lint.yml
Normal file
@ -0,0 +1,32 @@
|
||||
linters:
|
||||
# Disabled a few linters that are not relevant to our use case
|
||||
EmptyLines:
|
||||
enabled: false
|
||||
|
||||
ConsecutiveControlStatements:
|
||||
enabled: false
|
||||
|
||||
LineLength:
|
||||
enabled: false
|
||||
|
||||
# Enable additional linters
|
||||
EmbeddedEngines:
|
||||
enabled: true
|
||||
forbidden_engines:
|
||||
# JavaScript is not allowed due to our Content Security Policy (CSP)
|
||||
- javascript
|
||||
|
||||
InstanceVariables:
|
||||
enabled: false # TODO: Enable
|
||||
include:
|
||||
# Include only Rails partial templates by default
|
||||
- app/views/**/_*.html.slim
|
||||
|
||||
StrictLocalsMissing:
|
||||
enabled: false # TODO: Enable
|
||||
include:
|
||||
# Include only Rails partial templates by default
|
||||
- app/views/**/_*.html.slim
|
||||
|
||||
Zwsp:
|
||||
enabled: true
|
Reference in New Issue
Block a user