SublimeLinter / SublimeLinter-haml-lint

SublimeLinter 3 plugin for Haml, using haml-lint.
MIT License
4 stars 8 forks source link

.rubocop.yml is not respected #4

Closed LeEnno closed 8 years ago

LeEnno commented 8 years ago

This is my .rubocop.yml, located in /Users/Enno/Sites/pictrs/master/pictrs/.rubocop.yml:

Style/HashSyntax:
  Enabled: false

This is my haml file:

%div{ :id => 'container' }

This is the console output:

/Users/Enno/Sites/pictrs/master/pictrs/.rubocop.yml
SublimeLinter: hamllint: test.haml ['/Users/Enno/.rvm/bin/rvm-auto-ruby', '-S', 'haml-lint'] 
SublimeLinter: hamllint output:
/var/folders/l2/j37t2cjs5ssgcgsrk1xyt1x40000gn/T/SublimeLinter3-Enno/test.haml:1 [W] RuboCop: Style/HashSyntax: Use the new Ruby 1.9 hash syntax.

SublimeLinter-rubocop detecs the config file just fine.

Any ideas?

jeroenj commented 8 years ago

Is it detected correctly when linting without this SublimeLinter plugin? If so the problem should be in the plugin. I am no longer using (nor using Sublime Text) so it's a bit hard to debug this for me. But I'd be happy to accept a merge request if you find a fix for it.

LeEnno commented 8 years ago

Unfortunately I have no clue of python, but maybe someone else will help.

jeroenj commented 8 years ago

Discussed in #3 and described in #5.

TL;DR haml_lint (not haml-lint) v0.13.0 or higher is required.