Skip to content

Commit

Permalink
Custom haml-lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehonoshin committed Apr 7, 2018
1 parent a027f49 commit 947665f
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .hound.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
haml:
config_file: .haml-lint.yml
70 changes: 70 additions & 0 deletions haml-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Whether to ignore frontmatter at the beginning of HAML documents for
# frameworks such as Jekyll/Middleman
skip_frontmatter: false

linters:
AltText:
enabled: false

ClassAttributeWithStaticValue:
enabled: true

ClassesBeforeIds:
enabled: true

ConsecutiveComments:
enabled: true

ConsecutiveSilentScripts:
enabled: true
max_consecutive: 2

EmptyScript:
enabled: true

HtmlAttributes:
enabled: true

ImplicitDiv:
enabled: true

LeadingCommentSpace:
enabled: true

LineLength:
enabled: true
max: 120

MultilinePipe:
enabled: true

MultilineScript:
enabled: true

ObjectReferenceAttributes:
enabled: true

RuboCop:
enabled: false

RubyComments:
enabled: true

SpaceBeforeScript:
enabled: true

SpaceInsideHashAttributes:
enabled: true
style: space

TagName:
enabled: true

TrailingWhitespace:
enabled: true

UnnecessaryInterpolation:
enabled: true

UnnecessaryStringOutput:
enabled: true

0 comments on commit 947665f

Please sign in to comment.