File tree Expand file tree Collapse file tree 2 files changed +32
-0
lines changed
Expand file tree Collapse file tree 2 files changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ // This is an example and explanation of a configuration file for
2+ // the DLS linting module
3+ // NOTE: This file CANNOT be used as-is, since it contains in-line comments.
4+ // If you simply want some good default parameters for your linting, it is
5+ // better to _not specify a file at all_ and instead use the defaults provided
6+ // in the server
7+ // The 'example_lint_cfg.json' file contains a configuration corresponding to
8+ // these defaults, which is a suitable place to start
9+ // your modifications
10+
11+ {
12+ // if set to 'false', will lint indirectly imported files as well
13+ "direct_only": true,
14+ // linting rules with no arguments are enabled by assigning an empty struct
15+ "sp_brace": {},
16+ // linting rules with arguments are straightforward
17+ "long_lines": { "max_length": 80 },
18+ // to disable a rule, either do not set it
19+ // "nsp_unary": {}
20+ // or assign it to null
21+ "nsp_unary": null
22+ }
Original file line number Diff line number Diff line change 1+ {
2+ "direct_only" : true ,
3+ "sp_brace" : {},
4+ "sp_punct" : {},
5+ "nsp_funpar" : {},
6+ "nsp_inparen" : {},
7+ "nsp_unary" : {},
8+ "nsp_trailing" : {},
9+ "long_lines" : { "max_length" : 80 }
10+ }
You can’t perform that action at this time.
0 commit comments