Summary: | disabling checks doesn't work | ||
---|---|---|---|
Product: | [Developer tools] clazy | Reporter: | Matthew Woehlke <mwoehlke.floss> |
Component: | general | Assignee: | Sergio Martins <smartins> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | smartins |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Matthew Woehlke
2018-10-29 18:10:14 UTC
Wow... fiddling with this some more (and also looking at the clazy sources), it seems that clazy is doing the right thing *if* run on a single source file. Actually, what may be happening is that the list of suppressions is not applied past the first source file. (This works for checks that wouldn't be enabled by default because enabling a level is first expanded to all checks for that level, then any suppressions are removed, so the suppressed check is never propagated.) FYI: possible fix at https://phabricator.kde.org/D16517. done, thanks commit fbc245d3ddedf648b21b94194a6227c0492f1fa2 (HEAD -> 1.4, origin/1.4) Author: Matthew Woehlke <mwoehlke.floss@gmail.com> Date: Sun Nov 11 17:02:30 2018 +0000 Fix disabling checks Modify CheckManager::requestedChecksThroughEnv to also cache the list of user disabled checks. This is required to be able to correctly disable checks that would be enabled by default. REVIEW: D16517 |