forked from SublimeLinter/SublimeLinter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SublimeLinter.sublime-settings
265 lines (227 loc) · 10.9 KB
/
SublimeLinter.sublime-settings
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
{
// Set to true to print extra information in the console.
"debug": false,
// When in the "background" lint mode, this value determines
// the minimum delay before a request is sent to the linter
"delay": 0.1,
// Available gutter themes:
// - Blueberry Cross
// - Blueberry Round
// - Circle
// - Danish Royalty
// - Default
// - Hands
// - Knob
// - Knob Symbol
// - Koloria
// - ProjectIcons
// Note that you may need to change the "icon" property in "styles"
// to an icon in the theme (they usually include "warning" and "error")
"gutter_theme": "Default",
// Demote the visibility of a class of errors while you're editing.
// The errors will re-appear after `time_to_idle` and immediately on save.
// - ws_only: erroneous regions that contain only whitespace
// - some_ws: erroneous regions that contain *some* whitespace
// - multilines: multiline errors
// - warnings: errors of the "warning" type
// - all: demote all the things
// - none: disable this feature
"highlights.demote_while_editing": "none",
// Apply a color (via scope) to the demoted errors.
// E.g. "" will hide the errors, "comment" is usually a subtle color.
"highlights.demote_scope": "",
// How long to wait before showing the demoted errors again.
// Tip: A big value like 3600 will essentially hide the regions until
// you save the buffer.
"highlights.time_to_idle": 1.5,
// Set to ["squiggles", "phantoms"] or one of them to skip these
// highlighting features initially when opening a view.
// Use the command "SublimeLinter: Toggle Highlights", to toggle the
// highlights afterwards. Usually you would define a key-binding
// to do this quickly. E.g.
// { "keys": ["ctrl+k", "ctrl+k"],
// "command": "sublime_linter_toggle_highlights",
// "args": {"what": ["phantoms"]}
// },
"highlights.start_hidden": [],
// Send a "terminate" signal to old lint processes, if their result would
// be thrown away. If false we fire-and-forget processes instead.
"kill_old_processes": true,
// Lint Mode determines when the linter is run.
// - background: asynchronously on every change
// - load_save: when a file is opened and every time it's saved
// - manual: only when calling the Lint This View command
// - save: only when a file is saved
"lint_mode": "background",
// Linter-specific settings.
// See also http://www.sublimelinter.com/en/stable/linter_settings.html
// The following settings are implemented in core and available for
// all linters. Specific linter plugins might add more settings, which are
// documented in their readme.
// Tip: Linter-specific settings except for 'styles' can also be changed
// in sublime-project settings. See how this is done:
// https://www.sublimelinter.com/en/stable/settings.html#project-settings
//
// Do not copy-paste this whole section but only the parts you want to
// change. Note that the default for a key is usually "not-set"!
"linters": {
// The name of the linter you installed
"linter_name": {
// Disables the linter. The default here is 'not set'
"disable": false,
// Additional arguments for the command line. Either a string
// or an array. If set to a string, we 'shlex.split' it*.
// E.g. '--ignore D112' or ['--config', './.config/foo.ini']
//
// * Note: Use proper quoting around paths esp. on Windows!
"args": [],
// Path to the executable to be used. Either a string or an
// array. E.g. ['nvm', 'exec', '8.6', 'eslint']
"executable": "<automatically set>",
// A modified runtime environment for the lint job. Settings here
// override the default, inherited ENV.
"env": {},
// Exclude files that match the given pattern(s).
"excludes": [],
// Suppress errors that match the given pattern(s).
// Either a 'string' or an 'array'. Each input string is handled as
// a case-insensitive regex pattern and matched against the
// error_type, code, and message. If it matches, the error will be
// thrown away.
// E.g. ["warning: ", "W3\d\d: ", "missing <!DOCTYPE> declaration"]
"filter_errors": [],
// Lint mode determines when the linter is run. The linter setting
// will take precedence over the global setting.
"lint_mode": "manual",
// Determines for which views this linter will run.
"selector": "",
// A list of additional style definition blocks.
"styles": [
{
// Instead of 'types' you can specify error 'codes' for
// a style definition block
"codes": [""]
}
],
// The current working dir the lint job will run in.
"working_dir": "",
// **Only valid for PythonLinter**
// Specify which python to use. Either a number or full path
// to a python binary. SL will then basically use 'python -m'
// to run the linter. It might use 'py.exe' on Windows.
"python": 3,
// **Only implemented for NodeLinter and PythonLinter**
// If true, will *not* search for and use a globally installed binary
"disable_if_not_dependency": false
}
},
// Determines what happens when a linter reports a problem without column.
// By default, a mark is put in the gutter and the first character is highlighted.
// If this setting is true, the entire line is also highlighted.
"no_column_highlights_line": false,
// Provide extra paths to be searched when locating system executables.
"paths": {
"linux": [],
"osx": [],
"windows": []
},
// Show a report for problems on a line by hovering over the gutter.
"show_hover_line_report": true,
// Show a report for problems on a region by hovering over it.
"show_hover_region_report": true,
// Highlight problems in the minimap.
"show_marks_in_minimap": true,
// Show the output panel on save if there are problems.
// - window: check if the window has problems.
// - view: only check the current file.
// - never: disable this feature.
"show_panel_on_save": "never",
// A list of error types to ignore when showing the output panel on save.
// E.g. ["warning"]
"show_panel_on_save.ignored_error_types": [],
// DEPRECATED: Not in use! Remove the setting from your User settings
// to avoid future warnings.
"statusbar.counters_template": "",
// Show the messages for problems at your cursor position.
// - {message} will be replaced by the actual messages.
// - {linter} will be replaced by the linter reporting the error.
// - {type} will be replaced by either warning or error.
// - {code} will be replaced by the error code.
// Set to "" to display nothing
"statusbar.messages_template": "{message}",
"statusbar.show_active_linters": true,
// Global styles for all linters.
// Note: Styles can also be specified per linter! See above.
// Only for linter-styles, there is one more setting:
// - codes:
// An array which can contain error codes provided by a linter.
// Only valid as linter style in the "linters" section
//
// The styles list form a stack evaluated top-down. We call each object
// herein a style definition. A style definition must match a specific
// linter error, either its code or its error type, to take any effect.
//
// The default styles cannot be overridden per se, you extend them
// in your user settings. The defaults can be read as "All linter problems
// are red, outline, dots, but warnings are yellow."
"styles": [
{
// Used to determine the color. E.g. region.<colorish>, with one of
// redish, orangish, yellowish, greenish, bluish, purplish, pinkish.
"scope": "region.yellowish markup.warning.sublime_linter",
// The error types this style definition will match for.
// E.g. "warning" and/or "error". If omitted will match for all
// types.
"types": ["warning"]
},
{
// Determines, for overlapping errors, which one is visualised.
"priority": 1,
// The icon displayed in the gutter area
// - "circle", "dot" or "bookmark"
// - "none" to remove the icon
// - A path to an icon file like
// "Packages/SublimeLinter/gutter-themes/Blueberry Cross/error.png"
// - One provided by a gutter theme (e.g. "warning" or "error").
// In theme Default: warning, error, cog, x,
// and diamond, heart, pointer, square, star, triangle, which all
// also have an -outline variant.
"icon": "dot",
// The highlight style:
// - "none"
// - "fill", "outline",
// - "solid_underline", "squiggly_underline", "stippled_underline"
// In ST < 4074 the underline styles are replaced with outlines when
// there is whitespace in the problem region (ST issue #137).
// In newer versions underlines are replaced with outlines when
// there are newlines in the problem region for readability.
"mark_style": "outline",
"scope": "region.redish markup.error.sublime_linter",
// The text of an annotation placed on the right side of the view.
// This is a template string, so e.g. "{msg}","{code}", "{linter}"
// are the typical values used here besides normal text.
// Override this *per* linter to reduce clutter and noise.
"annotation": "",
// The text of the phantom placed directly below the squiggle.
// This is a template string, so e.g. "{msg}","{code}", "{linter}"
// are the typical values used here besides normal text.
// Override this *per* linter to reduce clutter and noise.
"phantom": ""
}
],
// DEPRECATED: use the selector linter setting instead:
// http://www.sublimelinter.com/en/stable/linter_settings.html#selector
// Maps variant syntaxes to the syntax that you have a linter for.
// The syntax is the name of the syntax definition file, in lower case
// Run this in the console to find it: view.settings().get('syntax').lower()
"syntax_map": {
"html (django)": "html",
"html (rails)": "html",
"html 5": "html",
"javascript (babel)": "javascript",
"magicpython": "python",
"php": "html",
"python django": "python",
"pythonimproved": "python"
}
}