Skip to main content

Slim-Lint

note

This is BETA. The behavior of this tool might change.

VersionLanguageWebsite
0.20.2+ (default: 0.21.1)Slim (Ruby)https://github.com/sds/slim-lint

Slim-Lint is a static analysis tool to help keep your Slim files clean and readable. In addition to Slim-specific style and lint checks, it can check them by integrated RuboCop rules.

Getting Started#

To start using Slim-Lint, enable it in your repository settings.

Default Configuration#

You can configure Slim-Lint via a file named .slim-lint.yml. But, if this file does not exist in your repository, Sider uses the default configuration instead.

Similarly, if a .rubocop.yml file does not exist, Sider uses the default configuration for RuboCop.

See also the Slim-Lint configuration for details.

Configuration#

Here is an example configuration via sider.yml:

linter:  slim_lint:    target: src    config: my-slim-lint.yml

You can use several options to fine-tune HAML-Lint to your project.

NameTypeDefault
root_dirstring-
dependenciesstring[], map[]-
targetstring, string[].
configstring-

target#

This option allows you to specify files or directories you want to analyze. Glob is also available.

config#

This option allows you to specify your config file path for Slim-Lint. See also "Default Configuration".