Skip to content

Commit ebd05e8

Browse files
chore: autogen metadata and docs
1 parent 5225492 commit ebd05e8

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

doc/BUILTINS.md

+17
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,23 @@ local sources = { null_ls.builtins.diagnostics.cppcheck }
466466
- Command: `cppcheck`
467467
- Args: `{ "--enable=warning,style,performance,portability", "--template=gcc", "$FILENAME" }`
468468

469+
### [cpplint](https://github.com/cpplint/cpplint)
470+
471+
Cpplint is a command-line tool to check C/C++ files for style issues following Google's C++ style guide
472+
473+
#### Usage
474+
475+
```lua
476+
local sources = { null_ls.builtins.diagnostics.cpplint }
477+
```
478+
479+
#### Defaults
480+
481+
- Filetypes: `{ "cpp", "c" }`
482+
- Method: `diagnostics`
483+
- Command: `cpplint`
484+
- Args: `{ "$FILENAME" }`
485+
469486
### [credo](https://hexdocs.pm/credo)
470487

471488
Static analysis of `elixir` files for enforcing code consistency.

lua/null-ls/builtins/_meta/diagnostics.lua

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ return {
3737
cppcheck = {
3838
filetypes = { "cpp", "c" }
3939
},
40+
cpplint = {
41+
filetypes = { "cpp", "c" }
42+
},
4043
credo = {
4144
filetypes = { "elixir" }
4245
},

lua/null-ls/builtins/_meta/filetype_map.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ return {
3030
formatting = { "buildifier" }
3131
},
3232
c = {
33-
diagnostics = { "cppcheck", "gccdiag" },
33+
diagnostics = { "cppcheck", "cpplint", "gccdiag" },
3434
formatting = { "astyle", "clang_format", "uncrustify" }
3535
},
3636
cabal = {
@@ -47,7 +47,7 @@ return {
4747
formatting = { "cmake_format", "gersemi" }
4848
},
4949
cpp = {
50-
diagnostics = { "cppcheck", "gccdiag" },
50+
diagnostics = { "cppcheck", "cpplint", "gccdiag" },
5151
formatting = { "astyle", "clang_format", "uncrustify" }
5252
},
5353
crystal = {

0 commit comments

Comments
 (0)