Lint suggestion variables on non-camelCase (#6590)

* initial

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
This commit is contained in:
Jess Frazelle
2025-04-29 20:41:40 -07:00
committed by GitHub
parent a0afe9dd0e
commit 5f31f3a6b3
6 changed files with 91 additions and 39 deletions

View File

@ -312,7 +312,7 @@ impl Node<Program> {
let v = Arc::new(Mutex::new(vec![]));
crate::walk::walk(self, |node: crate::walk::Node<'a>| {
let mut findings = v.lock().map_err(|_| anyhow::anyhow!("mutex"))?;
findings.append(&mut rule.check(node)?);
findings.append(&mut rule.check(node, self)?);
Ok::<bool, anyhow::Error>(true)
})?;
let x = v.lock().unwrap();