Skip to content

beta clippy

beta clippy #289

Triggered via push September 27, 2023 18:38
Status Failure
Total duration 9m 16s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

test.yaml

on: push
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 46 warnings
windows / beta
Process completed with exit code 1.
windows / stable
Process completed with exit code 1.
docs for function which may panic missing `# Panics` section: bin/src/modules/new/license.rs#L9
warning: docs for function which may panic missing `# Panics` section --> bin/src/modules/new/license.rs:9:5 | 9 | pub fn select(author: &str) -> Option<String> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/modules/new/license.rs:21:25 | 21 | let selection = dialoguer::Select::new() | _________________________^ 22 | | .with_prompt("Select a license") 23 | | .items(&licenses) 24 | | .default(0) 25 | | .interact() 26 | | .unwrap(); | |_____________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/pbo.rs#L30
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/pbo.rs:30:1 | 30 | pub fn build(ctx: &Context, collapse: Collapse) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/hook/mod.rs#L113
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/hook/mod.rs:113:5 | 113 | pub fn run_file(ctx: &Context, name: &str) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/hook/mod.rs#L72
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/hook/mod.rs:72:5 | 72 | pub fn run_folder(self, ctx: &Context, name: &str, vfs: bool) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/modules/hook/mod.rs#L72
warning: docs for function which may panic missing `# Panics` section --> bin/src/modules/hook/mod.rs:72:5 | 72 | pub fn run_folder(self, ctx: &Context, name: &str, vfs: bool) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/modules/hook/mod.rs:103:21 | 103 | file.file_name().to_str().expect("Invalid file name") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/hook/mod.rs#L17
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/hook/mod.rs:17:1 | 17 | pub fn scope(ctx: &Context, vfs: bool) -> Result<Scope, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/archive.rs#L5
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/archive.rs:5:1 | 5 | pub fn release(ctx: &Context) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/modules/archive.rs#L5
warning: docs for function which may panic missing `# Panics` section --> bin/src/modules/archive.rs:5:1 | 5 | pub fn release(ctx: &Context) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/modules/archive.rs:24:24 | 24 | let path = path | ________________________^ 25 | | .strip_prefix(ctx.out_folder()) 26 | | .expect("We are in the HEMTT folder, the prefix should always exist") | |_____________________________________________________________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/context.rs#L24
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/context.rs:24:5 | 24 | pub fn new(root: PathBuf, folder: &str) -> Result<Self, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/context.rs#L24
warning: docs for function which may panic missing `# Panics` section --> bin/src/context.rs:24:5 | 24 | pub fn new(root: PathBuf, folder: &str) -> Result<Self, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/context.rs:41:13 | 41 | / root.components() 42 | | .skip(2) 43 | | .collect::<PathBuf>() 44 | | .to_str() 45 | | .unwrap() | |_________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/script.rs#L36
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/script.rs:36:1 | 36 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/commands/script.rs#L36
warning: docs for function which may panic missing `# Panics` section --> bin/src/commands/script.rs:36:1 | 36 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/commands/script.rs:64:16 | 64 | let name = matches | ________________^ 65 | | .get_one::<String>("name") 66 | | .expect("name to be set as required"); | |_____________________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/release.rs#L28
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/release.rs:28:1 | 28 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/new.rs#L21
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/new.rs:21:1 | 21 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/commands/new.rs#L21
warning: docs for function which may panic missing `# Panics` section --> bin/src/commands/new.rs:21:1 | 21 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/commands/new.rs:26:16 | 26 | let name = matches | ________________^ 27 | | .get_one::<String>("name") 28 | | .expect("name to be set as required"); | |_____________________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/launch.rs#L35
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/launch.rs:35:1 | 35 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/commands/launch.rs#L35
warning: docs for function which may panic missing `# Panics` section --> bin/src/commands/launch.rs:35:1 | 35 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/commands/launch.rs:43:25 | 43 | let launch_config = matches | _________________________^ 44 | | .get_one::<String>("config") 45 | | .expect("a config to be set"); | |_____________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc = note: `#[warn(clippy::missing_panics_doc)]` implied by `#[warn(clippy::pedantic)]`
docs for function returning `Result` missing `# Errors` section: bin/src/commands/dev.rs#L45
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/dev.rs:45:1 | 45 | pub fn execute(matches: &ArgMatches, launch_optionals: &[String]) -> Result<Context, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/build.rs#L36
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/build.rs:36:1 | 36 | pub fn execute(matches: &ArgMatches, executor: &mut Executor) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc note: the lint level is defined here --> bin/src/lib.rs:2:9 | 2 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::missing_errors_doc)]` implied by `#[warn(clippy::pedantic)]`
unused import: `path::Path`: bin/src/config/project/version.rs#L1
warning: unused import: `path::Path` --> bin/src/config/project/version.rs:1:29 | 1 | use std::{mem::MaybeUninit, path::Path}; | ^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
this match arm has an identical body to another arm: libs/preprocessor/src/processor/directives.rs#L94
warning: this match arm has an identical body to another arm --> libs/preprocessor/src/processor/directives.rs:94:13 | 94 | (_, false) => { | ^--------- | | | _____________help: try merging the arm patterns: `(_, false) | ("pragma", _)` | | 95 | | self.skip_to_after_newline(stream, None); 96 | | Ok(()) 97 | | } | |_____________^ | = help: or try changing either arm body note: other arm here --> libs/preprocessor/src/processor/directives.rs:86:13 | 86 | / ("pragma", _) => { 87 | | // TODO: hemtt pragma 88 | | self.skip_to_after_newline(stream, None); 89 | | Ok(()) 90 | | } | |_____________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_same_arms note: the lint level is defined here --> libs/preprocessor/src/lib.rs:2:9 | 2 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::match_same_arms)]` implied by `#[warn(clippy::pedantic)]`
this function has too many lines (101/100): libs/common/src/reporting/processed.rs#L44
warning: this function has too many lines (101/100) --> libs/common/src/reporting/processed.rs:44:5 | 44 | / pub fn new( 45 | | output: Vec<Output>, 46 | | usage: HashMap<Position, Vec<Position>>, 47 | | declarations: HashMap<Position, Position>, ... | 150 | | Ok(processed) 151 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines note: the lint level is defined here --> libs/common/src/lib.rs:2:9 | 2 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::too_many_lines)]` implied by `#[warn(clippy::pedantic)]`
fields `declarations` and `usage` are never read: libs/common/src/reporting/processed.rs#L25
warning: fields `declarations` and `usage` are never read --> libs/common/src/reporting/processed.rs:25:5 | 13 | pub struct Processed { | --------- fields in this struct ... 25 | declarations: HashMap<Position, Position>, | ^^^^^^^^^^^^ ... 29 | usage: HashMap<Position, Vec<Position>>, | ^^^^^ | = note: `Processed` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default
docs for function which may panic missing `# Panics` section: bin/src/modules/new/license.rs#L9
warning: docs for function which may panic missing `# Panics` section --> bin/src/modules/new/license.rs:9:5 | 9 | pub fn select(author: &str) -> Option<String> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/modules/new/license.rs:21:25 | 21 | let selection = dialoguer::Select::new() | _________________________^ 22 | | .with_prompt("Select a license") 23 | | .items(&licenses) 24 | | .default(0) 25 | | .interact() 26 | | .unwrap(); | |_____________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/pbo.rs#L30
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/pbo.rs:30:1 | 30 | pub fn build(ctx: &Context, collapse: Collapse) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/hook/mod.rs#L113
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/hook/mod.rs:113:5 | 113 | pub fn run_file(ctx: &Context, name: &str) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/hook/mod.rs#L72
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/hook/mod.rs:72:5 | 72 | pub fn run_folder(self, ctx: &Context, name: &str, vfs: bool) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/modules/hook/mod.rs#L72
warning: docs for function which may panic missing `# Panics` section --> bin/src/modules/hook/mod.rs:72:5 | 72 | pub fn run_folder(self, ctx: &Context, name: &str, vfs: bool) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/modules/hook/mod.rs:103:21 | 103 | file.file_name().to_str().expect("Invalid file name") | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/hook/mod.rs#L17
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/hook/mod.rs:17:1 | 17 | pub fn scope(ctx: &Context, vfs: bool) -> Result<Scope, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/modules/archive.rs#L5
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/modules/archive.rs:5:1 | 5 | pub fn release(ctx: &Context) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/modules/archive.rs#L5
warning: docs for function which may panic missing `# Panics` section --> bin/src/modules/archive.rs:5:1 | 5 | pub fn release(ctx: &Context) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/modules/archive.rs:24:24 | 24 | let path = path | ________________________^ 25 | | .strip_prefix(ctx.out_folder()) 26 | | .expect("We are in the HEMTT folder, the prefix should always exist") | |_____________________________________________________________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/context.rs#L24
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/context.rs:24:5 | 24 | pub fn new(root: PathBuf, folder: &str) -> Result<Self, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/context.rs#L24
warning: docs for function which may panic missing `# Panics` section --> bin/src/context.rs:24:5 | 24 | pub fn new(root: PathBuf, folder: &str) -> Result<Self, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/context.rs:41:13 | 41 | / root.components() 42 | | .skip(2) 43 | | .collect::<PathBuf>() 44 | | .to_str() 45 | | .unwrap() | |_________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/script.rs#L36
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/script.rs:36:1 | 36 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/commands/script.rs#L36
warning: docs for function which may panic missing `# Panics` section --> bin/src/commands/script.rs:36:1 | 36 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/commands/script.rs:64:16 | 64 | let name = matches | ________________^ 65 | | .get_one::<String>("name") 66 | | .expect("name to be set as required"); | |_____________________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/release.rs#L28
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/release.rs:28:1 | 28 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/new.rs#L21
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/new.rs:21:1 | 21 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/commands/new.rs#L21
warning: docs for function which may panic missing `# Panics` section --> bin/src/commands/new.rs:21:1 | 21 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/commands/new.rs:26:16 | 26 | let name = matches | ________________^ 27 | | .get_one::<String>("name") 28 | | .expect("name to be set as required"); | |_____________________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/launch.rs#L35
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/launch.rs:35:1 | 35 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function which may panic missing `# Panics` section: bin/src/commands/launch.rs#L35
warning: docs for function which may panic missing `# Panics` section --> bin/src/commands/launch.rs:35:1 | 35 | pub fn execute(matches: &ArgMatches) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | note: first possible panic found here --> bin/src/commands/launch.rs:43:25 | 43 | let launch_config = matches | _________________________^ 44 | | .get_one::<String>("config") 45 | | .expect("a config to be set"); | |_____________________________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc = note: `#[warn(clippy::missing_panics_doc)]` implied by `#[warn(clippy::pedantic)]`
docs for function returning `Result` missing `# Errors` section: bin/src/commands/dev.rs#L45
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/dev.rs:45:1 | 45 | pub fn execute(matches: &ArgMatches, launch_optionals: &[String]) -> Result<Context, Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
docs for function returning `Result` missing `# Errors` section: bin/src/commands/build.rs#L36
warning: docs for function returning `Result` missing `# Errors` section --> bin/src/commands/build.rs:36:1 | 36 | pub fn execute(matches: &ArgMatches, executor: &mut Executor) -> Result<(), Error> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc note: the lint level is defined here --> bin/src/lib.rs:2:9 | 2 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::missing_errors_doc)]` implied by `#[warn(clippy::pedantic)]`
unused import: `path::Path`: bin/src/config/project/version.rs#L1
warning: unused import: `path::Path` --> bin/src/config/project/version.rs:1:29 | 1 | use std::{mem::MaybeUninit, path::Path}; | ^^^^^^^^^^ | = note: `#[warn(unused_imports)]` on by default
this match arm has an identical body to another arm: libs/preprocessor/src/processor/directives.rs#L94
warning: this match arm has an identical body to another arm --> libs/preprocessor/src/processor/directives.rs:94:13 | 94 | (_, false) => { | ^--------- | | | _____________help: try merging the arm patterns: `(_, false) | ("pragma", _)` | | 95 | | self.skip_to_after_newline(stream, None); 96 | | Ok(()) 97 | | } | |_____________^ | = help: or try changing either arm body note: other arm here --> libs/preprocessor/src/processor/directives.rs:86:13 | 86 | / ("pragma", _) => { 87 | | // TODO: hemtt pragma 88 | | self.skip_to_after_newline(stream, None); 89 | | Ok(()) 90 | | } | |_____________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_same_arms note: the lint level is defined here --> libs/preprocessor/src/lib.rs:2:9 | 2 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::match_same_arms)]` implied by `#[warn(clippy::pedantic)]`
this function has too many lines (101/100): libs/common/src/reporting/processed.rs#L44
warning: this function has too many lines (101/100) --> libs/common/src/reporting/processed.rs:44:5 | 44 | / pub fn new( 45 | | output: Vec<Output>, 46 | | usage: HashMap<Position, Vec<Position>>, 47 | | declarations: HashMap<Position, Position>, ... | 150 | | Ok(processed) 151 | | } | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_lines note: the lint level is defined here --> libs/common/src/lib.rs:2:9 | 2 | #![warn(clippy::pedantic)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::too_many_lines)]` implied by `#[warn(clippy::pedantic)]`
fields `declarations` and `usage` are never read: libs/common/src/reporting/processed.rs#L25
warning: fields `declarations` and `usage` are never read --> libs/common/src/reporting/processed.rs:25:5 | 13 | pub struct Processed { | --------- fields in this struct ... 25 | declarations: HashMap<Position, Position>, | ^^^^^^^^^^^^ ... 29 | usage: HashMap<Position, Vec<Position>>, | ^^^^^ | = note: `Processed` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis = note: `#[warn(dead_code)]` on by default