You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/BUILTINS.md
+18-34Lines changed: 18 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -473,12 +473,10 @@ local sources = {
473
473
- Checkstyle only offers a jar file as download. It is recommended to put an executable wrapper script in
474
474
your path.
475
475
Example wrapper script:
476
-
477
476
```bash
478
477
#!/usr/bin/env bash
479
478
java -jar path/to/checkstyle.jar "$@"
480
479
```
481
-
482
480
- Checkstyle needs a mandatory `-c` argument. Use `extra_args` to add yours. `extra_args` can also be a
483
481
function to build more sophisticated logic.
484
482
@@ -503,16 +501,14 @@ local sources = { null_ls.builtins.diagnostics.clazy }
503
501
504
502
-`clazy` needs a compilation database (`compile_commands.json`) to work. By default `clazy` will search for a compilation database in all parent folders of the input file.
505
503
- If the compilation database is not in a parent folder, the `-p` option can be used to point to the corresponding folder (e.g. the projects build directory):
506
-
507
504
```lua
508
505
localsources= {
509
506
null_ls.builtins.diagnostics.clazy.with({
510
507
extra_args= { "-p=$ROOT/build" },
511
508
}),
512
509
}
513
510
```
514
-
515
-
- Alternatively, `compile_commands.json` can be linked into the project's root directory. For more information see <https://clang.llvm.org/docs/HowToSetupToolingForLLVM.html>
511
+
- Alternatively, `compile_commands.json` can be linked into the project's root directory. For more information see https://clang.llvm.org/docs/HowToSetupToolingForLLVM.html
516
512
-`clazy` will be run only when files are saved to disk, so that `compile_commands.json` can be used.
KubeLinter is a static analysis tool that checks Kubernetes YAML files and Helm charts to ensure the applications represented in them adhere to best practices.
LanguageTool-Rust (LTRS) is both an executable and a Rust library that aims to provide correct and safe bindings for the LanguageTool API.
@@ -1169,12 +1182,10 @@ local sources = {
1169
1182
- PMD only offers parameterized wrapper scripts as download. It is recommended to put an executable wrapper
1170
1183
script in your path.
1171
1184
Example wrapper script:
1172
-
1173
1185
```bash
1174
1186
#!/usr/bin/env bash
1175
1187
path/to/pmd/bin/run.sh pmd "$@"
1176
1188
```
1177
-
1178
1189
- PMD needs a mandatory `--rulesets`/`-rulesets`/`-R` argument. Use `extra_args` to add yours. `extra_args`
1179
1190
can also be a function to build more sophisticated logic.
1180
1191
@@ -2099,35 +2110,27 @@ local sources = { null_ls.builtins.formatting.blackd }
2099
2110
##### `hostname` (string)
2100
2111
2101
2112
Address to bind the server to. Defaults to localhost.
2102
-
2103
2113
##### `port` (string)
2104
2114
2105
2115
Port to listen on. Defaults to 45484.
2106
-
2107
2116
##### `line_length` (number)
2108
2117
2109
2118
Set how many characters per line to allow. Defaults to 88.
2110
-
2111
2119
##### `skip_source_first_line` (boolean)
2112
2120
2113
2121
If set to true, the first line of the source code will be ignored. Defaults to false.
2114
-
2115
2122
##### `skip_string_normalization` (boolean)
2116
2123
2117
2124
If set to true, no string normalization will be performed. Defaults to false.
2118
-
2119
2125
##### `skip_magic_trailing_comma` (boolean)
2120
2126
2121
2127
If set to true, trailing commas will not be used as a reason to split lines. Defaults to false.
2122
-
2123
2128
##### `preview` (boolean)
2124
2129
2125
2130
If set to true, experimental and potentially disruptive style changes will be used. Defaults to false.
2126
-
2127
2131
##### `fast` (boolean)
2128
2132
2129
2133
If set to true, Black will not perform an AST safety check after formatting. Defaults to false.
2130
-
2131
2134
##### `python_variant` (string)
2132
2135
2133
2136
If set to pyi, Black will format all input files like typing stubs regardless of the file extension. Otherwise, its value must correspond to a Python version or a set of comma-separated Python versions, optionally prefixed with py. (e.g. py3.5,py3.6). Defaults to empty string.
@@ -2978,7 +2981,6 @@ local sources = { null_ls.builtins.formatting.isortd }
2978
2981
##### `hostname` (string)
2979
2982
2980
2983
Address that the isortd server listens on. Defaults to localhost.
2981
-
2982
2984
##### `port` (string)
2983
2985
2984
2986
Port that the isortd server listens on. Defaults to 47393.
@@ -3017,24 +3019,6 @@ local sources = { null_ls.builtins.formatting.just }
0 commit comments