fix(xatu): preserve bindings with unsupported values
This commit is contained in:
@@ -54,6 +54,7 @@ pub struct Ident {
|
|||||||
pub enum Expr {
|
pub enum Expr {
|
||||||
Ident(Ident),
|
Ident(Ident),
|
||||||
Select(Select),
|
Select(Select),
|
||||||
|
Other,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ impl TryFrom<rnix::ast::Expr> for ast::Expr {
|
|||||||
match expr {
|
match expr {
|
||||||
rnix::ast::Expr::Ident(ident) => Ok(Self::Ident(ident.into())),
|
rnix::ast::Expr::Ident(ident) => Ok(Self::Ident(ident.into())),
|
||||||
rnix::ast::Expr::Select(select) => Ok(Self::Select(select.try_into()?)),
|
rnix::ast::Expr::Select(select) => Ok(Self::Select(select.try_into()?)),
|
||||||
_ => Err(()),
|
_ => Ok(Self::Other),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
src/xatu/testdata/lint_findings.nix
vendored
2
src/xatu/testdata/lint_findings.nix
vendored
@@ -1,5 +1,5 @@
|
|||||||
let
|
let
|
||||||
support = dependency;
|
support = "support";
|
||||||
primary = support;
|
primary = support;
|
||||||
in {
|
in {
|
||||||
package = package;
|
package = package;
|
||||||
|
|||||||
Reference in New Issue
Block a user