WIP: allow using nff as a diagnostics source #1

Draft
NotAShelf wants to merge 26 commits from diagnostics into main

26 commits

Author SHA1 Message Date
03fe062973
diagnostic: add test for IPv6 minimum prefix 2025-06-03 08:32:43 +03:00
ee54f8f8d3
docs: update rustdoc comments 2025-06-03 08:32:42 +03:00
4803788ffa
ci: push nextest config 2025-06-03 08:32:37 +03:00
cbfa512d75
docs: improve project description and styling in README 2025-06-02 16:08:52 +03:00
13245c08fe
nff: add parsing and CST inspection commands 2025-06-02 15:24:18 +03:00
b9d8cb6d5d
cst: eliminate manual synchronization between enum variants and numeric values 2025-06-02 14:40:57 +03:00
d1cad19fea
lint: better error handling; count "faultly" files 2025-06-02 14:11:23 +03:00
8d7fcd6ef4
lint: introduce LintError; count diagnostic errors 2025-06-02 14:00:48 +03:00
0eaa21a3ff
diagnostic: update configuration options to use clap's ArgAction 2025-06-02 13:46:57 +03:00
f7f77a7e19
cst: expand SyntaxKind enum to include additional nftables syntax variants 2025-06-02 12:32:33 +03:00
92735f3eee
docs: update README with new features 2025-06-02 12:00:15 +03:00
3e1003ba94
parser: skip newline tokens during expression parsing 2025-06-02 11:31:16 +03:00
ef10784998
cst: improve from_raw method to handle invalid SyntaxKind values 2025-06-02 11:30:53 +03:00
c0002f5806
nff: LexError should include position for InvalidNumber; update diagnostics 2025-06-02 11:26:32 +03:00
728483d84f
nix: switch to cargo-nextest 2025-06-02 11:24:41 +03:00
363f9cac86
diagnostic: add check for excessive trailing empty lines in files 2025-06-02 09:58:17 +03:00
fc8e42c096
diagnostic: handle mixed indentation diagnostics with severity levels 2025-06-02 09:53:08 +03:00
0ed74c6a51
nff: handle errors and exit appropriately in linter 2025-06-02 09:48:23 +03:00
16586e9927
parser: improve handling of vmap exprs to allow further comparisons 2025-06-02 09:41:08 +03:00
6f08d27a59
cst: assign explicit values to SyntaxKind variants 2025-06-02 09:40:03 +03:00
e0f93d0307
nff: improve diagnostics and vmap expression handling in parser and formatter 2025-06-02 09:31:44 +03:00
c4a71f2e85
nff: add vmap expression support and improve diagnostics 2025-06-02 08:59:45 +03:00
6362ade5bd
nff: separate format and lint commands 2025-06-02 07:56:12 +03:00
9791296634
diagnostics: reduce complexity of redundant rule checks 2025-06-02 05:30:26 +03:00
d36120c87b
diagnostis: fix typo 2025-06-02 05:23:46 +03:00
2a45d0b983
initial diagnostics implementation 2025-06-02 05:14:21 +03:00