Skip to content

chore(tooling): Update editor-config key for Stylua as accepted upstream #849

chore(tooling): Update editor-config key for Stylua as accepted upstream

chore(tooling): Update editor-config key for Stylua as accepted upstream #849

Triggered via push October 26, 2024 21:34
Status Success
Total duration 13s
Artifacts

luacheck.yml

on: push
luacheck
4s
luacheck
Fit to window
Zoom out
Zoom in

Annotations

1 error
you seem to be trying to use `match` for an equality check. Consider using `if`: src/setup/mod.rs#L190
error: you seem to be trying to use `match` for an equality check. Consider using `if` --> src/setup/mod.rs:190:5 | 190 | / match CONF.get_bool("verbose")? { 191 | | true => { 192 | | for file in files.iter() { 193 | | let path = file.clone().into_os_string().into_string().unwrap(); ... | 200 | | false => {} 201 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match = note: `-D clippy::single-match` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::single_match)]` help: try | 190 ~ if CONF.get_bool("verbose")? == true { 191 + for file in files.iter() { 192 + let path = file.clone().into_os_string().into_string().unwrap(); 193 + let text = LocalText::new("setup-warp-time-file") 194 + .arg("path", style(path).white().bold()) 195 + .fmt(); 196 ~ eprintln!("{} {}", style("┠┄").cyan(), text); 197 + } 198 + } |