Questions tagged [sublimelinter]

SublimeLinter is a plugin for the Sublime Text editor, which integrates a variety of existing linting tools. Full documentation is available at sublimelinter.com.

SublimeLinter is a plugin for the Sublime Text editor, which integrates a variety of existing linting tools. It has been completely rewritten for Sublime Text 3 into a more modular architecture, and to take advantage of the expanded API. Linters are no longer included in SublimeLinter3; instead they must be installed separately through Package Control along with the base SublimeLinter package.

The Sublime Text 2 version of the plugin is no longer being supported, but the final release is still available for installation. The documentation is available here.

204 questions
3
votes
1 answer

How to make Sublime Text 3 work with rubocop-rspec (`require': cannot load such file error)

I have Sublime Text 3 working with rubocop and sublimelinter. However, when I enable rubocop-rspec: # .rubocop.yml require: rubocop-rspec rubocop fails on the command line in terminal unless I run it with: bundle exec rubocop However, I'm not able…
Sean Lerner
  • 389
  • 5
  • 9
3
votes
0 answers

Ubuntu Sublime Text 3 SublimeLinter jshint not working

I just can't get jshint working on my sublime text3.. I already install SublimeLinter package and sublimelinter-jshint.. I also already install node.js and instal jshint modules with this command sudo npm install -g jshint but it's just not…
Nikolius Lau
  • 653
  • 2
  • 11
  • 21
3
votes
0 answers

SublimeLinter: How to disable linting for a given line?

Flake8 has a command # noqa, which disables any linting errors for a given line. How can I do the same in SublimeLinter? I do not want to disable any linting rules for the whole file, I'd only like to disable for a given line.
hyperknot
  • 13,454
  • 24
  • 98
  • 153
3
votes
1 answer

Unable to get scss-lint working in Sublime Text 3

I followed the directions here: https://packagecontrol.io/packages/SublimeLinter-contrib-scss-lint But getting this error in the Sublime Text 3 console: Here's what my .scss-lint.yml looks like in my home directory: # Default application…
3
votes
1 answer

Highlighting in custom SublimeLinter plugin

I started writing a plugin for SublimeLinter and so far the linting itself is working. However, I haven't managed to get highlighting to work. Since my linter (which is actually a compiler) does not output column, I'd be happy if the failing lines…
idleberg
  • 12,634
  • 7
  • 43
  • 70
3
votes
1 answer

How to select a custom .jscsrc file

We have multiple projects with various .jscsrc files. I'd like to use one that I defined, which is stricter than most projects. In my case its ~/.jscsrc. How can I configure sublime-linter to use that file for jscs? Thanks!
Ben
  • 10,020
  • 21
  • 94
  • 157
3
votes
2 answers

SublimeLinter ignore missing semicolons

I'm using a non-semicolon based coding style in one of my node apps, but the problem is SublimeLinter is logging all the missing semicolons, and eventually stops with a "Too many errors" error, and stops linting the rest of the script. I've tried…
David
  • 2,094
  • 3
  • 30
  • 47
3
votes
1 answer

How do I use xmllint in Sublime Text 3?

I recently installed SublimeLinter in Sublime Text 3 to help me write my JavaScript files correctly. I also setup xmllint to help me with XML files I work with. However I cannot get it to run in Sublime Text 3. I followed these steps to get it…
cbunn
  • 195
  • 3
  • 11
3
votes
0 answers

SublimeLinter JSHint "Missing space after 'function'" on SL3 is not enabled

I don't know why many things on my JSHint are not enabled. For instance, I do want to see the warning for missing space after 'function' warning, but I don't! My .jshintrc looks as: { "white": true, "node": true, "browser": true, …
Kousha
  • 32,871
  • 51
  • 172
  • 296
3
votes
0 answers

Sublimelinter 3 cppcheck configuration

I have installed SublimeText 2 on Ubuntu (14.01) and also Sublimelinter 3 from Package Control list(Ctrl+Shift+P). I have also installed cppcheck. Now I need help to "activate" the linker in live c++ code. I haven't found what exactly I have to type…
3
votes
2 answers

ST3 SublimeLinter with HTML tidy doesn't obey args

I want to suppress various kind of useless linter error reports, e.g. lacks "content" attribute. So I tried experimenting with setting the options in SublimeLinter.sublime-settings: "linters": { "htmltidy": { "@disable":…
pitosalas
  • 10,286
  • 12
  • 72
  • 120
3
votes
3 answers

ST2: SublimeLinter ignoring JSHint settings

I've been trying to configure SublimeLinter to use different JSHint settings, but my settings are being totally ignored. Mostly I just want to be able to use double quotes without getting a linting error. Here's what I have in my 'User'…
Godwhacker
  • 3,624
  • 3
  • 15
  • 23
3
votes
2 answers

Sublime Linter/ ReferenceError: window is not defined?

I know this is very basic question, but it's very strange that I cannot make it work, after spending hours, I really need help. OSX 10.8.4 sublime Text 2 Version 2.0.2 Build 2221 node v0.10.15 jshint v2.1.7 Actually, I clean-installed sublime…
user1028880
3
votes
1 answer

How to configure sublimelinter per folder

Is it possible to configure sublimelinter to check specific folders with specific settings. For starters I would like to use it for js files using the "javascript_linter" : "jshint" and have "jshint_options" set for different folders
GeoC
  • 101
  • 5
3
votes
2 answers

SublimeLinter for Ruby: can I disable specific warnings (ie "assigned but unused variable")?

I love SublimeLinter for Sublime Text, but I can't figure out how to disable warnings that aren't applicable. One example I keep running into is "Warning: assigned but unused variable" for a Sinatra app. Distracting to have those lines highlighted.…
Jay
  • 3,857
  • 2
  • 23
  • 25