Debian Codegraph @

fmts/testdata/haml-lint.in

raw
1 app/views/layouts/application.html.haml:33 [W] ImplicitDiv: `%div.section#flash` can be written as `.section#flash` since `%div` is implicit
2 app/views/node_classes/show.html.haml:34 [W] ObjectReferenceAttributes: Avoid using object reference syntax to assign class/id attributes for tags
3 app/views/node_group_class_memberships/_form.html.haml:8 [W] InstanceVariables: Avoid using instance variables in partials views
4 app/views/node_groups/index.html.haml:21 [W] ObjectReferenceAttributes: Avoid using object reference syntax to assign class/id attributes for tags
5 app/views/nodes/_form.html.haml:1 [W] InstanceVariables: Avoid using instance variables in partials views
6 app/views/nodes/_form.html.haml:36 [W] InstanceVariables: Avoid using instance variables in partials views
7 app/views/nodes/_nodes.html.haml:7 [W] MultilinePipe: Don't use the `|` character to split up lines. Wrap on commas or extract code into helper.
8 app/views/nodes/_reports.html.haml:14 [W] TrailingWhitespace: Line contains trailing whitespace
9 app/views/pages/home.html.haml:13 [W] HtmlAttributes: Prefer the hash attributes syntax (%tag{ lang: 'en' }) over HTML attributes syntax (%tag(lang=en))
10 app/views/pages/home.html.haml:16 [W] HtmlAttributes: Prefer the hash attributes syntax (%tag{ lang: 'en' }) over HTML attributes syntax (%tag(lang=en))
11 app/views/parameters/_parameter_input.html.haml:22 [W] UnnecessaryStringOutput: `= "..."` should be rewritten as `...`
12 app/views/parameters/_parameter_input.html.haml:37 [W] UnnecessaryStringOutput: `= "..."` should be rewritten as `...`
13 app/views/parameters/_parameter_input.html.haml:53 [W] UnnecessaryStringOutput: `= "..."` should be rewritten as `...`
14 app/views/parameters/_parameter_input.html.haml:68 [W] UnnecessaryStringOutput: `= "..."` should be rewritten as `...`
15 app/views/reports/_report.html.haml:14 [W] ClassesBeforeIds: Classes should be listed before IDs (.tabbed should precede #report-tabs)
16 app/views/reports/_report_title.html.haml:3 [W] TrailingWhitespace: Line contains trailing whitespace
17 app/views/reports/index.html.haml:14 [W] ClassesBeforeIds: Classes should be listed before IDs (.tabbed should precede #report-tabs)
18 app/views/shared/_error.html.haml:1 [W] FinalNewline: Files should end with a trailing newline
19 app/views/shared/_node_manager_sidebar.html.haml:12 [W] UnnecessaryStringOutput: `= "..."` should be rewritten as `...`
20 app/views/shared/_parameters.html.haml:3 [W] RubyComments: Use `-#` for comments instead of `- #`
21 app/views/shared/_parameters_part1.html.haml:11 [W] FinalNewline: Files should end with a trailing newline
22 app/views/shared/_variables.html.haml:3 [W] RubyComments: Use `-#` for comments instead of `- #`
23 app/views/statuses/_run_failure.html.haml:31 [W] TrailingWhitespace: Line contains trailing whitespace
24
25 82 files inspected, 23 lints detected