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
* feat(diagnostics): Add kube-linter
Adding https://github.com/stackrox/kube-linter which supports
diagnostics for Helm and Kubernetes YAML files.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: doc/BUILTINS.md
+34-1Lines changed: 34 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -473,10 +473,12 @@ 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
+
476
477
```bash
477
478
#!/usr/bin/env bash
478
479
java -jar path/to/checkstyle.jar "$@"
479
480
```
481
+
480
482
- Checkstyle needs a mandatory `-c` argument. Use `extra_args` to add yours. `extra_args` can also be a
481
483
function to build more sophisticated logic.
482
484
@@ -501,14 +503,16 @@ local sources = { null_ls.builtins.diagnostics.clazy }
501
503
502
504
-`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.
503
505
- 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
+
504
507
```lua
505
508
localsources= {
506
509
null_ls.builtins.diagnostics.clazy.with({
507
510
extra_args= { "-p=$ROOT/build" },
508
511
}),
509
512
}
510
513
```
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
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>
512
516
-`clazy` will be run only when files are saved to disk, so that `compile_commands.json` can be used.
- PMD only offers parameterized wrapper scripts as download. It is recommended to put an executable wrapper
1166
1170
script in your path.
1167
1171
Example wrapper script:
1172
+
1168
1173
```bash
1169
1174
#!/usr/bin/env bash
1170
1175
path/to/pmd/bin/run.sh pmd "$@"
1171
1176
```
1177
+
1172
1178
- PMD needs a mandatory `--rulesets`/`-rulesets`/`-R` argument. Use `extra_args` to add yours. `extra_args`
1173
1179
can also be a function to build more sophisticated logic.
1174
1180
@@ -2093,27 +2099,35 @@ local sources = { null_ls.builtins.formatting.blackd }
2093
2099
##### `hostname` (string)
2094
2100
2095
2101
Address to bind the server to. Defaults to localhost.
2102
+
2096
2103
##### `port` (string)
2097
2104
2098
2105
Port to listen on. Defaults to 45484.
2106
+
2099
2107
##### `line_length` (number)
2100
2108
2101
2109
Set how many characters per line to allow. Defaults to 88.
2110
+
2102
2111
##### `skip_source_first_line` (boolean)
2103
2112
2104
2113
If set to true, the first line of the source code will be ignored. Defaults to false.
2114
+
2105
2115
##### `skip_string_normalization` (boolean)
2106
2116
2107
2117
If set to true, no string normalization will be performed. Defaults to false.
2118
+
2108
2119
##### `skip_magic_trailing_comma` (boolean)
2109
2120
2110
2121
If set to true, trailing commas will not be used as a reason to split lines. Defaults to false.
2122
+
2111
2123
##### `preview` (boolean)
2112
2124
2113
2125
If set to true, experimental and potentially disruptive style changes will be used. Defaults to false.
2126
+
2114
2127
##### `fast` (boolean)
2115
2128
2116
2129
If set to true, Black will not perform an AST safety check after formatting. Defaults to false.
2130
+
2117
2131
##### `python_variant` (string)
2118
2132
2119
2133
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.
@@ -2964,6 +2978,7 @@ local sources = { null_ls.builtins.formatting.isortd }
2964
2978
##### `hostname` (string)
2965
2979
2966
2980
Address that the isortd server listens on. Defaults to localhost.
2981
+
2967
2982
##### `port` (string)
2968
2983
2969
2984
Port that the isortd server listens on. Defaults to 47393.
@@ -3002,6 +3017,24 @@ local sources = { null_ls.builtins.formatting.just }
description="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.",
0 commit comments