Skip to content

Commit

Permalink
[webui][ci] Fix haml lint complains
Browse files Browse the repository at this point in the history
  • Loading branch information
Moises Deniz Aleman committed May 10, 2017
1 parent e15edf7 commit ab20c2a
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 99 deletions.
5 changes: 5 additions & 0 deletions src/api/.haml-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ inherits_from: .haml-lint_todo.yml

exclude:
- 'vendor/bundle/**/*'

linters:
InstanceVariables:
exclude:
- "app/views/**/*"
169 changes: 72 additions & 97 deletions src/api/.haml-lint_todo.yml
Original file line number Diff line number Diff line change
@@ -1,82 +1,12 @@
# This configuration was generated by
# `haml-lint --auto-gen-config`
# on 2017-04-05 10:46:21 +0200 using Haml-Lint version 0.24.0.
# on 2017-05-10 11:26:32 +0200 using Haml-Lint version 0.24.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: 93
RuboCop:
exclude:
- "app/views/webui/attribute/new.html.haml"
- "app/views/webui/comment/_links.html.haml"
- "app/views/webui/configuration/interconnect.html.haml"
- "app/views/webui/download_on_demand/_index.html.haml"
- "app/views/webui/groups/edit.html.haml"
- "app/views/webui/groups/index.html.haml"
- "app/views/webui/groups/show.html.haml"
- "app/views/webui/main/_latest_updates.haml"
- "app/views/webui/main/_news.html.haml"
- "app/views/webui/main/_sponsors.html.haml"
- "app/views/webui/main/index.html.haml"
- "app/views/webui/main/sitemap.haml"
- "app/views/webui/main/sitemap_packages.haml"
- "app/views/webui/main/sitemap_projects_subpage.haml"
- "app/views/webui/monitor/_building_table.html.haml"
- "app/views/webui/monitor/_idle.html.haml"
- "app/views/webui/monitor/_lights.html.haml"
- "app/views/webui/monitor/_stats.html.haml"
- "app/views/webui/monitor/_workers_table.html.haml"
- "app/views/webui/patchinfo/_form.html.haml"
- "app/views/webui/repositories/_edit_repository.html.haml"
- "app/views/webui/repositories/_repository_entry.html.haml"
- "app/views/webui/repositories/new.html.haml"
- "app/views/webui/repositories/state.html.haml"
- "app/views/webui/search/_owners.html.haml"
- "app/views/webui/search/owner.html.haml"
- "app/views/webui/theme/bento/layouts/webui/_header.html.haml"
- "app/views/webui/theme/bratwurst/layouts/webui/_footer.html.haml"
- "app/views/webui/theme/bratwurst/layouts/webui/webui.html.haml"
- "app/views/webui/theme/bratwurst/webui/package/_commit.html.haml"
- "app/views/webui/theme/bratwurst/webui/package/_files.html.haml"
- "app/views/webui/theme/bratwurst/webui/package/show.html.haml"
- "app/views/webui/user/_dropdown_menu.html.haml"
- "app/views/webui/user/_login_form.html.haml"
- "app/views/webui/user/_password_dialog.html.haml"
- "app/views/webui/user/_save_dialog.html.haml"
- "app/views/webui/user/index.html.haml"
- "app/views/webui/user/login.html.haml"
- "app/views/webui/user/show.html.haml"

# Offense count: 155
SpaceInsideHashAttributes:
exclude:
- "app/views/shared/_requests.html.haml"
- "app/views/webui/comment/_reply.html.haml"
- "app/views/webui/comment/_show.html.haml"
- "app/views/webui/download_on_demand/_edit.html.haml"
- "app/views/webui/main/about.html.haml"
- "app/views/webui/monitor/_lights.html.haml"
- "app/views/webui/monitor/_workers_table.html.haml"
- "app/views/webui/patchinfo/_form.html.haml"
- "app/views/webui/patchinfo/show.html.haml"
- "app/views/webui/repositories/state.html.haml"
- "app/views/webui/request/_requests_small.html.haml"
- "app/views/webui/search/index.html.haml"
- "app/views/webui/theme/bento/layouts/webui/_header.html.haml"
- "app/views/webui/theme/bratwurst/layouts/webui/_alert.html.haml"
- "app/views/webui/theme/bratwurst/layouts/webui/_navbar.html.haml"
- "app/views/webui/theme/bratwurst/layouts/webui/webui.html.haml"
- "app/views/webui/theme/bratwurst/webui/package/_files.html.haml"
- "app/views/webui/theme/bratwurst/webui/package/show.html.haml"
- "app/views/webui/user/_login_form.html.haml"
- "app/views/webui/user/_requests.html.haml"
- "app/views/webui/user/_save_dialog.html.haml"
- "app/views/webui/user/login.html.haml"
- "app/views/webui/user/request_ichain.html.haml"
- "app/views/webui/user/show.html.haml"

# Offense count: 37
ConsecutiveSilentScripts:
Expand Down Expand Up @@ -105,31 +35,7 @@ linters:
- "app/views/webui/user/index.html.haml"
- "app/views/webui/user/show.html.haml"

# Offense count: 76
InstanceVariables:
exclude:
- "app/views/webui/attribute/_attributes.html.haml"
- "app/views/webui/attribute/_form.html.haml"
- "app/views/webui/attribute/_value_fields.html.haml"
- "app/views/webui/main/_systemstatus.html.haml"
- "app/views/webui/monitor/_building.html.haml"
- "app/views/webui/monitor/_building_table.html.haml"
- "app/views/webui/monitor/_events.html.haml"
- "app/views/webui/monitor/_idle.html.haml"
- "app/views/webui/monitor/_lights.html.haml"
- "app/views/webui/notifications/_roles.html.haml"
- "app/views/webui/package/_submit_request_dialog.html.haml"
- "app/views/webui/patchinfo/_delete_dialog.html.haml"
- "app/views/webui/patchinfo/_form.html.haml"
- "app/views/webui/repositories/_repository_entry.html.haml"
- "app/views/webui/search/_results.html.haml"
- "app/views/webui/theme/bento/webui/package/_extra_actions.html.haml"
- "app/views/webui/theme/bratwurst/webui/package/_commit.html.haml"
- "app/views/webui/theme/bratwurst/webui/package/_files.html.haml"
- "app/views/webui/user/_login_form.html.haml"
- "app/views/webui/user/_requests.html.haml"

# Offense count: 320
# Offense count: 323
LineLength:
exclude:
- "app/views/webui/attribute/_attributes.html.haml"
Expand Down Expand Up @@ -175,6 +81,7 @@ linters:
- "app/views/webui/patchinfo/_form.html.haml"
- "app/views/webui/patchinfo/show.html.haml"
- "app/views/webui/project/subprojects.html.haml"
- "app/views/webui/projects/public_key/_key_dialog.html.haml"
- "app/views/webui/repositories/_dod_repository_form.html.haml"
- "app/views/webui/repositories/_edit_repository.html.haml"
- "app/views/webui/repositories/_repository_entry.html.haml"
Expand All @@ -198,14 +105,82 @@ linters:
- "app/views/webui/user/_dropdown_menu.html.haml"
- "app/views/webui/user/_login_form.html.haml"
- "app/views/webui/user/_password_dialog.html.haml"
- "app/views/webui/user/_requests.html.haml"
- "app/views/webui/user/_save_dialog.html.haml"
- "app/views/webui/user/edit.html.haml"
- "app/views/webui/user/index.html.haml"
- "app/views/webui/user/login.html.haml"
- "app/views/webui/user/request_ichain.html.haml"
- "app/views/webui/user/show.html.haml"

# Offense count: 93
RuboCop:
exclude:
- "app/views/webui/attribute/new.html.haml"
- "app/views/webui/comment/_links.html.haml"
- "app/views/webui/configuration/interconnect.html.haml"
- "app/views/webui/download_on_demand/_index.html.haml"
- "app/views/webui/groups/edit.html.haml"
- "app/views/webui/groups/index.html.haml"
- "app/views/webui/groups/show.html.haml"
- "app/views/webui/main/_latest_updates.haml"
- "app/views/webui/main/_news.html.haml"
- "app/views/webui/main/_sponsors.html.haml"
- "app/views/webui/main/index.html.haml"
- "app/views/webui/main/sitemap.haml"
- "app/views/webui/main/sitemap_packages.haml"
- "app/views/webui/main/sitemap_projects_subpage.haml"
- "app/views/webui/monitor/_building_table.html.haml"
- "app/views/webui/monitor/_idle.html.haml"
- "app/views/webui/monitor/_lights.html.haml"
- "app/views/webui/monitor/_stats.html.haml"
- "app/views/webui/monitor/_workers_table.html.haml"
- "app/views/webui/patchinfo/_form.html.haml"
- "app/views/webui/repositories/_edit_repository.html.haml"
- "app/views/webui/repositories/_repository_entry.html.haml"
- "app/views/webui/repositories/new.html.haml"
- "app/views/webui/repositories/state.html.haml"
- "app/views/webui/search/_owners.html.haml"
- "app/views/webui/search/owner.html.haml"
- "app/views/webui/theme/bento/layouts/webui/_header.html.haml"
- "app/views/webui/theme/bratwurst/layouts/webui/_footer.html.haml"
- "app/views/webui/theme/bratwurst/layouts/webui/webui.html.haml"
- "app/views/webui/theme/bratwurst/webui/package/_commit.html.haml"
- "app/views/webui/theme/bratwurst/webui/package/_files.html.haml"
- "app/views/webui/theme/bratwurst/webui/package/show.html.haml"
- "app/views/webui/user/_dropdown_menu.html.haml"
- "app/views/webui/user/_login_form.html.haml"
- "app/views/webui/user/_password_dialog.html.haml"
- "app/views/webui/user/_save_dialog.html.haml"
- "app/views/webui/user/index.html.haml"
- "app/views/webui/user/login.html.haml"
- "app/views/webui/user/show.html.haml"

# Offense count: 152
SpaceInsideHashAttributes:
exclude:
- "app/views/webui/comment/_reply.html.haml"
- "app/views/webui/comment/_show.html.haml"
- "app/views/webui/download_on_demand/_edit.html.haml"
- "app/views/webui/main/about.html.haml"
- "app/views/webui/monitor/_lights.html.haml"
- "app/views/webui/monitor/_workers_table.html.haml"
- "app/views/webui/patchinfo/_form.html.haml"
- "app/views/webui/patchinfo/show.html.haml"
- "app/views/webui/repositories/state.html.haml"
- "app/views/webui/request/_requests_small.html.haml"
- "app/views/webui/search/index.html.haml"
- "app/views/webui/theme/bento/layouts/webui/_header.html.haml"
- "app/views/webui/theme/bratwurst/layouts/webui/_alert.html.haml"
- "app/views/webui/theme/bratwurst/layouts/webui/_navbar.html.haml"
- "app/views/webui/theme/bratwurst/layouts/webui/webui.html.haml"
- "app/views/webui/theme/bratwurst/webui/package/_files.html.haml"
- "app/views/webui/theme/bratwurst/webui/package/show.html.haml"
- "app/views/webui/user/_login_form.html.haml"
- "app/views/webui/user/_save_dialog.html.haml"
- "app/views/webui/user/login.html.haml"
- "app/views/webui/user/request_ichain.html.haml"
- "app/views/webui/user/show.html.haml"

# Offense count: 2
FinalNewline:
exclude:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
= @project.name
keys
.dialog-content
%table{style: "text-align: center;", width: "95%"}
%table{ style: "text-align: center;", width: "95%" }
%tr
%th Size
%th Algorithm
Expand All @@ -20,7 +20,7 @@
%td
= @project.key_info.keyid
%td
= DateTime.strptime(@project.key_info.expires ,'%s').strftime('%F')
= DateTime.strptime(@project.key_info.expires, '%s').strftime('%F')
- if @project.key_info.origin.present?
%td= @project.key_info.origin
%p
Expand Down

0 comments on commit ab20c2a

Please sign in to comment.