This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add haml-lint and generated todo list
- Loading branch information
1 parent
9fc3ebe
commit 281ecdd
Showing
5 changed files
with
129 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
inherits_from: .haml-lint_todo.yml | ||
exclude: | ||
- 'vendor/**/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
# This configuration was generated by | ||
# `haml-lint --auto-gen-config` | ||
# on 2018-08-27 17:51:09 +0200 using Haml-Lint version 0.28.0. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the lints are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of Haml-Lint, may require this file to be generated again. | ||
|
||
linters: | ||
|
||
# Offense count: 7 | ||
ImplicitDiv: | ||
exclude: | ||
- "app/views/delayed_job_failures/index.html.haml" | ||
- "app/views/layouts/application.html.haml" | ||
- "app/views/nodes/_inventory_service.html.haml" | ||
- "app/views/pages/home.html.haml" | ||
- "app/views/reports/_report.html.haml" | ||
|
||
# Offense count: 142 | ||
LineLength: | ||
enabled: false | ||
|
||
# Offense count: 35 | ||
RuboCop: | ||
enabled: false | ||
|
||
# Offense count: 323 | ||
SpaceInsideHashAttributes: | ||
enabled: false | ||
|
||
# Offense count: 54 | ||
ConsecutiveSilentScripts: | ||
enabled: false | ||
|
||
# Offense count: 12 | ||
InstanceVariables: | ||
exclude: | ||
- "app/views/layouts/_radiator.html.haml" | ||
- "app/views/node_class_memberships/_form.html.haml" | ||
- "app/views/node_group_class_memberships/_form.html.haml" | ||
- "app/views/node_groups/_form.html.haml" | ||
- "app/views/nodes/_form.html.haml" | ||
- "app/views/nodes/_nodes.html.haml" | ||
- "app/views/shared/_node_summary.html.haml" | ||
- "app/views/timeline_events/_timeline_event.html.haml" | ||
|
||
# Offense count: 27 | ||
IdNames: | ||
enabled: false | ||
|
||
# Offense count: 21 | ||
InlineStyles: | ||
enabled: false | ||
|
||
# Offense count: 5 | ||
FinalNewline: | ||
exclude: | ||
- "app/views/node_class_memberships/show.html.haml" | ||
- "app/views/node_group_class_memberships/show.html.haml" | ||
- "app/views/shared/_error.html.haml" | ||
- "app/views/shared/_parameters_part1.html.haml" | ||
- "app/views/shared/_variable_conflicts_table.html.haml" | ||
|
||
# Offense count: 4 | ||
ObjectReferenceAttributes: | ||
exclude: | ||
- "app/views/node_classes/index.html.haml" | ||
- "app/views/node_classes/show.html.haml" | ||
- "app/views/node_groups/index.html.haml" | ||
- "app/views/reports/_reports_table.html.haml" | ||
|
||
# Offense count: 8 | ||
UnnecessaryStringOutput: | ||
exclude: | ||
- "app/views/nodes/_inventory_service.html.haml" | ||
- "app/views/pages/_node_summary_row.haml" | ||
- "app/views/parameters/_parameter_input.html.haml" | ||
- "app/views/shared/_node_manager_sidebar.html.haml" | ||
- "app/views/shared/_skiplink.html.haml" | ||
|
||
# Offense count: 6 | ||
HtmlAttributes: | ||
exclude: | ||
- "app/views/nodes/_nodes.html.haml" | ||
- "app/views/pages/home.html.haml" | ||
- "app/views/reports/_report.html.haml" | ||
|
||
# Offense count: 1 | ||
MultilinePipe: | ||
exclude: | ||
- "app/views/nodes/_nodes.html.haml" | ||
|
||
# Offense count: 3 | ||
TrailingWhitespace: | ||
exclude: | ||
- "app/views/nodes/_reports.html.haml" | ||
- "app/views/reports/_report_title.html.haml" | ||
- "app/views/statuses/_run_failure.html.haml" | ||
|
||
# Offense count: 5 | ||
ClassesBeforeIds: | ||
exclude: | ||
- "app/views/pages/home.html.haml" | ||
- "app/views/parameters/_parameter_input.html.haml" | ||
- "app/views/reports/_report.html.haml" | ||
- "app/views/reports/index.html.haml" | ||
- "app/views/shared/_global_nav.html.haml" | ||
|
||
# Offense count: 5 | ||
RubyComments: | ||
exclude: | ||
- "app/views/parameters/_parameter_input.html.haml" | ||
- "app/views/shared/_parameters.html.haml" | ||
- "app/views/shared/_variables.html.haml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ before_script: | |
script: | ||
- bundle exec rails spec | ||
- bundle exec rubocop | ||
- bundle exec haml-lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters