Lint clippy::too_many_lines
warning clippy::too_many_lines §
warning clippy::too_many_lines §
Targets (1)
cargo-clippy-html (bin)
Primary: src/render/highlight.rs:84:1
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#too_many_lines
note: `-W clippy::too-many-lines` implied by `-W clippy::pedantic`
help: to override `-W clippy::pedantic` add `#[allow(clippy::too_many_lines)]`
Rendered diagnostic (text)
warning: this function has too many lines (110/100)
--> src/render/highlight.rs:84:1
|
84 | fn classify(tokens: &[Token<'_>]) -> Vec<Option<&'static str>> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#too_many_lines
= note: `-W clippy::too-many-lines` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::too_many_lines)]`
warning clippy::too_many_lines §
warning clippy::too_many_lines §
Targets (1)
cargo-clippy-html (bin)
Primary: src/render/pages.rs:172:1
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#too_many_lines
Rendered diagnostic (text)
warning: this function has too many lines (103/100)
--> src/render/pages.rs:172:1
|
172 | / fn source_rows(
173 | | source: &SourceFile,
174 | | key: &Path,
175 | | path: &Path,
... |
178 | | validate: &impl Fn(&SourceFile, &Span) -> bool,
179 | | ) -> Vec<SourceRow> {
| |___________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#too_many_lines
warning clippy::too_many_lines §
warning clippy::too_many_lines §
Targets (1)
cargo-clippy-html (bin)
Primary: src/render/pages.rs:354:1
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#too_many_lines
Rendered diagnostic (text)
warning: this function has too many lines (166/100)
--> src/render/pages.rs:354:1
|
354 | / fn views(
355 | | findings: &[&Finding],
356 | | from: &Path,
357 | | sources: &BTreeMap<PathBuf, SourceFile>,
... |
360 | | workspace_root: &Path,
361 | | ) -> Vec<FindingView> {
| |_____________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#too_many_lines
warning clippy::too_many_lines §
warning clippy::too_many_lines §
Targets (1)
cargo-clippy-html (bin)
Primary: src/render/pages.rs:529:1
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#too_many_lines
Rendered diagnostic (text)
warning: this function has too many lines (342/100)
--> src/render/pages.rs:529:1
|
529 | / pub fn render_report(
530 | | report: &Report,
531 | | sources: &BTreeMap<PathBuf, SourceFile>,
532 | | pages: &PageMap,
533 | | destination: &Path,
534 | | ) -> Result<(), String> {
| |_______________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#too_many_lines
warning clippy::too_many_lines §
warning clippy::too_many_lines §
Targets (1)
cargo-clippy-html (bin)
Primary: src/render/search.rs:37:1
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#too_many_lines
Rendered diagnostic (text)
warning: this function has too many lines (106/100)
--> src/render/search.rs:37:1
|
37 | / pub(super) fn write_index(
38 | | report: &Report,
39 | | sources: &BTreeMap<PathBuf, SourceFile>,
40 | | pages: &PageMap,
41 | | destination: &Path,
42 | | ) -> Result<(), String> {
| |_______________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#too_many_lines
warning clippy::too_many_lines §
warning clippy::too_many_lines §
Targets (1)
integration (test)
Primary: tests/integration.rs:470:1
help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#too_many_lines
note: `-W clippy::too-many-lines` implied by `-W clippy::pedantic`
help: to override `-W clippy::pedantic` add `#[allow(clippy::too_many_lines)]`
Rendered diagnostic (text)
warning: this function has too many lines (116/100)
--> tests/integration.rs:470:1
|
470 | fn warning_source_and_suggestion_are_escaped() {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/rust-1.100.0/index.html#too_many_lines
= note: `-W clippy::too-many-lines` implied by `-W clippy::pedantic`
= help: to override `-W clippy::pedantic` add `#[allow(clippy::too_many_lines)]`