Skip to main content

Lint clippy::too_many_lines

warning clippy::too_many_lines §

this function has too many lines (110/100)

src/render/highlight.rs:84:1

Clippy · Category: pedantic · cargo-clippy-html

Official Clippy documentation

Targets (1)
  • cargo-clippy-html (bin)

Primary: src/render/highlight.rs:84:1

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)]`

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 §

this function has too many lines (103/100)

src/render/pages.rs:172:1

Clippy · Category: pedantic · cargo-clippy-html

Official Clippy documentation

Targets (1)
  • cargo-clippy-html (bin)

Primary: src/render/pages.rs:172:1

fn source_rows(
    source: &SourceFile,
    key: &Path,
    path: &Path,
    findings: &[&Finding],
    pages: &PageMap,
    validate: &impl Fn(&SourceFile, &Span) -> bool,
) -> Vec<SourceRow> {

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 §

this function has too many lines (166/100)

src/render/pages.rs:354:1

Clippy · Category: pedantic · cargo-clippy-html

Official Clippy documentation

Targets (1)
  • cargo-clippy-html (bin)

Primary: src/render/pages.rs:354:1

fn views(
    findings: &[&Finding],
    from: &Path,
    sources: &BTreeMap<PathBuf, SourceFile>,
    pages: &PageMap,
    packages: &[PackageInfo],
    workspace_root: &Path,
) -> Vec<FindingView> {

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 §

this function has too many lines (342/100)

src/render/pages.rs:529:1

Clippy · Category: pedantic · cargo-clippy-html

Official Clippy documentation

Targets (1)
  • cargo-clippy-html (bin)

Primary: src/render/pages.rs:529:1

pub fn render_report(
    report: &Report,
    sources: &BTreeMap<PathBuf, SourceFile>,
    pages: &PageMap,
    destination: &Path,
) -> Result<(), String> {

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 §

this function has too many lines (106/100)

src/render/search.rs:37:1

Clippy · Category: pedantic · cargo-clippy-html

Official Clippy documentation

Targets (1)
  • cargo-clippy-html (bin)

Primary: src/render/search.rs:37:1

pub(super) fn write_index(
    report: &Report,
    sources: &BTreeMap<PathBuf, SourceFile>,
    pages: &PageMap,
    destination: &Path,
) -> Result<(), String> {

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 §

this function has too many lines (116/100)

tests/integration.rs:470:1

Clippy · Category: pedantic · cargo-clippy-html

Official Clippy documentation

Targets (1)
  • integration (test)

Primary: tests/integration.rs:470:1

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)]`

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)]`