Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
Add haml-lint and generated todo list
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroPointEnergy committed Aug 27, 2018
1 parent 9fc3ebe commit 281ecdd
Show file tree
Hide file tree
Showing 5 changed files with 129 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .haml-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
inherits_from: .haml-lint_todo.yml
exclude:
- 'vendor/**/*'
115 changes: 115 additions & 0 deletions .haml-lint_todo.yml
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"
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ before_script:
script:
- bundle exec rails spec
- bundle exec rubocop
- bundle exec haml-lint
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ group :development, :test do
gem 'listen'
gem 'simplecov'
gem 'simplecov-console'
gem "rubocop-rails_config"
gem 'rubocop-rails_config'
gem 'haml_lint', require: false
end

group :postgresql do
Expand Down
8 changes: 8 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@ GEM
haml (>= 4.0.6, < 6.0)
html2haml (>= 1.0.1)
railties (>= 4.0.1)
haml_lint (0.28.0)
haml (>= 4.0, < 5.1)
rainbow
rake (>= 10, < 13)
rubocop (>= 0.50.0)
sysexits (~> 1.1)
has_scope (0.7.2)
actionpack (>= 4.1)
activesupport (>= 4.1)
Expand Down Expand Up @@ -249,6 +255,7 @@ GEM
activesupport (>= 4.0)
sprockets (>= 3.0.0)
sqlite3 (1.3.13)
sysexits (1.2.0)
temple (0.8.0)
therubyracer (0.12.3)
libv8 (~> 3.16.14.15)
Expand Down Expand Up @@ -288,6 +295,7 @@ DEPENDENCIES
factory_bot_rails
haml
haml-rails
haml_lint
i18n
inherited_resources
jquery-rails
Expand Down

0 comments on commit 281ecdd

Please sign in to comment.