iets-ast-grep
checks.x86_64-linux.ast-grep
· build #188
· raw
1error[no-function-level-use]: move this `use` to the top of the module2 ┌─ src/sys/tty.rs:26:53 │ 425 │ ╭ pub fn cursor() -> Option<(usize, usize)> {526 │ │ use rustix::termios::{LocalModes, OptionalActions, SpecialCodeIndex, tcgetattr, tcsetattr};6 │ │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^7 · │854 │ │ }9 │ ╰─'1011error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path12 ┌─ src/display.rs:41:913 │1441 │ crate::sys::tty::size()15 │ ^^^^^^^^^^^^^^^^^^^^^1617error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path18 ┌─ src/display.rs:45:919 │2045 │ crate::sys::tty::cursor()21 │ ^^^^^^^^^^^^^^^^^^^^^^^2223error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path24 ┌─ src/display.rs:49:925 │2649 │ crate::sys::tty::guard_region(top);27 │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^2829error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path30 ┌─ tests/cli.rs:16:2431 │3216 │ fn run_complete(mut c: std::process::Command, words: &[&str]) -> String {33 │ ^^^^^^^^^^^^^^^^^^^^^3435error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path36 ┌─ tests/cli.rs:130:1637 │38130 │ let conf = std::env::temp_dir().join(format!("iets-complete-{}", std::process::id()));39 │ ^^^^^^^^^^^^^^^^^^4041error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path42 ┌─ tests/cli.rs:131:543 │44131 │ std::fs::create_dir_all(conf.join("iets")).unwrap();45 │ ^^^^^^^^^^^^^^^^^^^^^^^4647error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path48 ┌─ tests/cli.rs:132:549 │50132 │ std::fs::write(conf.join("iets/iets.toml"), "this is = not [valid\n").unwrap();51 │ ^^^^^^^^^^^^^^5253error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path54 ┌─ tests/cli.rs:153:1355 │56153 │ let _ = std::fs::remove_dir_all(&conf);57 │ ^^^^^^^^^^^^^^^^^^^^^^^5859error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path60 ┌─ tests/cli.rs:158:1361 │62158 │ let d = std::env::temp_dir().join(format!("iets-complete-flake-{}", std::process::id()));63 │ ^^^^^^^^^^^^^^^^^^6465error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path66 ┌─ tests/cli.rs:159:567 │68159 │ std::fs::create_dir_all(&d).unwrap();69 │ ^^^^^^^^^^^^^^^^^^^^^^^7071error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path72 ┌─ tests/cli.rs:170:573 │74170 │ std::fs::write(75 │ ^^^^^^^^^^^^^^7677error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path78 ┌─ tests/cli.rs:195:1379 │80195 │ let _ = std::fs::remove_dir_all(&d);81 │ ^^^^^^^^^^^^^^^^^^^^^^^8283error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path84 ┌─ tests/cli.rs:200:1385 │86200 │ let d = std::env::temp_dir().join(format!("iets-complete-attr-{}", std::process::id()));87 │ ^^^^^^^^^^^^^^^^^^8889error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path90 ┌─ tests/cli.rs:201:591 │92201 │ std::fs::create_dir_all(&d).unwrap();93 │ ^^^^^^^^^^^^^^^^^^^^^^^9495error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path96 ┌─ tests/cli.rs:202:597 │98202 │ std::fs::write(99 │ ^^^^^^^^^^^^^^100101error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path102 ┌─ tests/cli.rs:227:13103 │104227 │ let _ = std::fs::remove_dir_all(&d);105 │ ^^^^^^^^^^^^^^^^^^^^^^^106107error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path108 ┌─ src/api/installable.rs:141:14109 │110141 │ let fr = super::flake_ref(loc, &super::cwd()).ok()?;111 │ ^^^^^^^^^^^^^^^^112113error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path114 ┌─ src/api/installable.rs:141:37115 │116141 │ let fr = super::flake_ref(loc, &super::cwd()).ok()?;117 │ ^^^^^^^^^^118119error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path120 ┌─ src/api/installable.rs:148:15121 │122148 │ let cwd = super::cwd();123 │ ^^^^^^^^^^124125error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path126 ┌─ src/api/installable.rs:151:41127 │128151 │ Input::File(f) => ev.eval_file(&super::abs_path(f, &cwd), Pos::NONE).ok()?,129 │ ^^^^^^^^^^^^^^^130131error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path132 ┌─ src/api/installable.rs:154:16133 │134154 │ let args = super::auto_args(ev, &[], &cwd).ok()?;135 │ ^^^^^^^^^^^^^^^^136137error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path138 ┌─ src/api/installable.rs:210:25139 │140210 │ .filter_map(|a| std::str::from_utf8(ev.interner.name(a.sym)).ok())141 │ ^^^^^^^^^^^^^^^^^^^142143error[no-inline-absolute-paths]: use a `use` import instead of an inline crate::/super::/std:: path144 ┌─ src/build/render.rs:220:20145 │146220 │ let rows = crate::sys::tty::size().map_or(24, |(_, r)| r);147 │ ^^^^^^^^^^^^^^^^^^^^^148149Error: 24 error(s) found in code.150Help: Scan succeeded and found error level diagnostics in the codebase.151