aboutsummaryrefslogtreecommitdiff
path: root/mingling_cli/src/lints/unnecessary_render_result_creation.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat(mlint): support multiple suggestions per report魏曹先生8 hours1-1/+220
| | | | | | | | | Replace the single optional `suggestion` field with a `Vec<LintSuggestion>` to allow multiple automatic fix suggestions per lint report BREAKING CHANGE: The `suggestion` field has been replaced by `suggestions`
* feat(lints): add quote dependency and improve variable name detection魏曹先生13 hours1-2/+14
| | | | | | Use `quote` token stream matching instead of debug formatting to detect variable references in `unnecessary_render_result_creation`, fixing false positives from string-based matching.
* feat: add testing macros and unit tests for linters魏曹先生13 hours1-0/+85
| | | | | | Add `assert_detected!` and `assert_not_detected!` macros to simplify writing lint tests, along with initial test coverage for the unnecessary render result creation linter.
* feat(mlint): support RenderResult::default and ::from detection魏曹先生13 hours1-17/+34
| | | | | | | | | Extend the `unnecessary_render_result_creation` lint to also flag uses of `RenderResult::default()` and `RenderResult::from(...)`, and add `#[derive(Default)]` to `MlintReport` and `MlintLevel` to simplify struct instantiation
* feat(mling): add linter framework with async support and registry魏曹先生14 hours1-0/+157
generation