feat(natu): support inline suppressions
This commit was merged in pull request #105.
This commit is contained in:
@@ -66,10 +66,10 @@ fn natu_reports_out_of_order_let_bindings() -> googletest::Result<()> {
|
||||
}
|
||||
|
||||
#[gtest]
|
||||
fn natu_preserves_nixos_cfg_bindings() -> googletest::Result<()> {
|
||||
fn natu_preserves_suppressed_bindings() -> googletest::Result<()> {
|
||||
let report = natu::future_sight(vec![SourceFile {
|
||||
path: PathBuf::from("configs/nixos/test.nix"),
|
||||
source: "{ config, ... }: let\n cfg = config.example;\n value = cfg;\nin value\n".into(),
|
||||
path: PathBuf::from("testdata/nolint.nix"),
|
||||
source: "{ config, ... }: let\n cfg = config.example; # NOLINT(let_order)\n value = cfg;\nin value\n".into(),
|
||||
}])
|
||||
.or_fail()?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user