treefmt-check
checks.aarch64-darwin.formatting
· build #89
· raw
1treefmt v2.5.0ERRO formatter | ast-grep: failed to apply with options '[scan]': exit status 123error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path4 ┌─ crates/tincd/src/hostdirs.rs:73:285 │673 │ pub fn names(&self) -> std::io::Result<Vec<String>> {7 │ ^^^^^^^^^^^^^^^89error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path10 ┌─ crates/tincd/src/hostdirs.rs:83:5611 │1283 │ fn collect(dir: &Path, into: &mut BTreeSet<String>) -> std::io::Result<()> {13 │ ^^^^^^^^^^^^^^^1415error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path16 ┌─ crates/tincd/tests/two_daemons/reload.rs:57:4117 │1857 │ fn invite_bob(alice: &Node) -> (String, std::path::PathBuf) {19 │ ^^^^^^^^^^^^^^^^^^2021error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path22 ┌─ crates/tincd/tests/two_daemons/reload.rs:85:2423 │2485 │ fn cli_paths(confbase: std::path::PathBuf) -> tinc_tools::names::Paths {25 │ ^^^^^^^^^^^^^^^^^^2627error[no-comment-essays]: comment block of 8+ lines; condense it to the WHY28 ┌─ crates/tincd/src/invitation_serve.rs:200:129 │ 30193 │ ╭ /// Writes the host file, into the overlay when one is configured. The31194 │ │ ╭ /// addrcache update, script, unlink and type-2 reply are daemon-side.32 │ ╰────────────'33195 │ │ ╭ ///34 │ ╰──────────'35196 │ │ ╭ /// # Errors36 │ ╰────────'37197 │ │ ╭ /// - `BadPubkey`: newline = config-injection (**security**).38 │ ╰──────'39198 │ │ ╭ /// - `HostFileExists`: the name exists in either directory. Overwriting40 │ ╰────'41199 │ │ ╭ /// or shadowing it would let an invitee replace a known key. The write42 │ ╰──'43200 │ ╭ │ /// itself is `O_CREAT|O_EXCL`, so there is no TOCTOU in the write dir.44 │ │ ╰'45201 │ │ ╭ pub(crate) fn finalize(46 │ ╰────────────────^47 · │ 48246 │ │ }49 │ ╰───────────────'5051Error: 5 error(s) found in code.52Help: Scan succeeded and found error level diagnostics in the codebase.535455traversed 719 files56emitted 298 files for processing57formatted 26 files (0 changed) in 461ms58Error: failed to finalise formatting: formatting failures detected