HAML-Lint

Web Sitehttps://github.com/brigade/haml-lint
LanguageHAML / Ruby
Supported Version0.26.0

Getting Started

To start using HAML-Lint, enable it in repository setting.

If you need additional configuration, write sideci.yml and add to your repository.

Configuration via sideci.yml

Example settings for HAML-Lint under haml_lint:

linter:
  haml_lint:
    options:
      include_linter:
        - EmptyScript
        - LineLength
        - MultilinePipe
      exclude_linter:
        - TagName
      config: 'my-haml-lint-conf.yml'
      file: '**/*haml'
      exclude:
        - 'app/views/layouts/application.html.haml'

options

This option controls command line options given to haml_lint.

include_linter

This option controls which linters you include to analysis object. You should put it as an Array. The specified Array will be passed to the parameter as a comma separated string.

exclude_linter

This option controls which linters you exclude from analysis object. You should put it as an Array. The specified Array will be passed to the parameter as a comma separated string.

config

This option controls configuration file of HAML-Lint in analyzing. You should put it as a String. Use this when you use your own configuration file of HAML-Lint.

file

This option controls which files SideCI analyzes. You should put it as a String. It passes as a parameter when HAML-Lint is executed. If you don't write it in sideci.yml, SideCI passes . as a parameter.

exclude

This option controls which files SideCI excludes in analyzing. You should put it as an Array. You are able to declare files or directories.

Please check the following for more details on the execution parameters.
HAML-Lint#Command Line Flags