{"record":{"id":"69b45b6a285d3982","repo":"DioxusLabs/dioxus","slug":"1-issue-found","errorCode":null,"errorMessage":"1 issue found.","messagePattern":"1 issue found\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"packages/cli/src/cli/check.rs","lineNumber":121,"sourceCode":"        .into_iter()\n        .flatten()\n        .flatten()\n        .collect::<Vec<_>>();\n\n    let total_issues = issue_reports.iter().map(|r| r.issues.len()).sum::<usize>();\n\n    for report in issue_reports.into_iter() {\n        if !report.issues.is_empty() {\n            tracing::info!(\"{}\", report);\n        }\n    }\n\n    match total_issues {\n        0 => {\n            tracing::info!(\"No issues found.\");\n            Ok(())\n        }\n        1 => Err(anyhow!(\"1 issue found.\")),\n        _ => Err(anyhow!(\"{total_issues} issues found.\")),\n    }\n}\n\npub(crate) fn collect_rs_files(folder: &Path, files: &mut Vec<PathBuf>) {\n    for entry in ignore::Walk::new(folder).flatten() {\n        if entry.path().extension() == Some(\"rs\".as_ref()) {\n            files.push(entry.path().to_path_buf());\n        }\n    }\n}\n","sourceCodeStart":103,"sourceCodeEnd":133,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/393d190a801ccb441d41923e232289b4f8a5c669/packages/cli/src/cli/check.rs#L103-L133","documentation":"dx check lints every .rs file of the crate (respecting .gitignore, skipping target/) for RSX issues and prints each non-empty issue report via tracing::info before summarizing. If the summed issue count is exactly one, the command returns Err(anyhow!(\"1 issue found.\")), so the process exits non-zero while the concrete details were already printed above this line.","triggerScenarios":"Running dx check (whole project) or dx check --file path.rs on code whose RSX contains exactly one lint issue; the aggregate '1 issue found.' error is returned after the per-file reports are printed.","commonSituations":"Adding dx check to CI and hitting a single legacy-RSX warning; converting a project where only one file still uses an outdated RSX idiom.","solutions":["Scroll up in the output: the specific file, span, and issue are printed before the summary","Re-run on a single file with dx check --file src/foo.rs to isolate the one issue","Fix the reported RSX issue and re-run until 'No issues found.' appears"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"# Isolate the file before the project-wide run\ndx check --file src/recently_edited.rs","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run dx check locally before pushing so CI never sees the aggregate failure","Read the printed per-file reports above the '1 issue found.' line — the summary carries no details","Check recently edited files first with --file to keep signal high"],"tags":["cli","lint","check","rsx"],"backgroundTag":null,"analyzedSha":"393d190a801ccb441d41923e232289b4f8a5c669","analyzedAt":"2026-08-16T11:27:45.815Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}