Skip to content

Commit 75f5745

Browse files
committed
Add example files from internal repo
1 parent 495a9d3 commit 75f5745

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
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+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
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+
}

0 commit comments

Comments
 (0)