Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Choosing specific linters in SublimeText3 #54

Closed
MalteThodberg opened this issue Feb 20, 2015 · 1 comment
Closed

Choosing specific linters in SublimeText3 #54

MalteThodberg opened this issue Feb 20, 2015 · 1 comment

Comments

@MalteThodberg
Copy link

I just got SublimeLinter+lintr and R-Box working in ST3

I'm mainly interested in only a few selected linters - how do I modify the 'linters' settings in the following lines in the SublimeLinter user-settings file to use only, say, Syntax Error, object_usage_linter and absolute_paths_linter?

{
"user": {
"linters": {
"lintr": {
"@disable": false,
"args": [],
"cache": "TRUE",
"excludes": [],
"linters": "with_defaults(line_length_linter(120))"
}
}
}
}

Thanks for making a great package!

@jimhester
Copy link
Member

The linters line is really just a list of linters you would like to use. The with_defaults line is simply to make it easy to change only a few linters from the defaults. So if you want to only use the two linters you mentioned just make a list with only those two enabled.

"linters": "list(object_usage_linter, absolute_paths_linter)"

The syntax error lints come from the initial code parsing so they don't have a linter (and can't be turned off).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants