[clazy] [Bug 400452] New: disabling checks doesn't work

Matthew Woehlke bugzilla_noreply at kde.org
Mon Oct 29 18:10:14 GMT 2018


https://bugs.kde.org/show_bug.cgi?id=400452

            Bug ID: 400452
           Summary: disabling checks doesn't work
           Product: clazy
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: unassigned-bugs at kde.org
          Reporter: mwoehlke.floss at gmail.com
                CC: smartins at kde.org
  Target Milestone: ---

SUMMARY
The documentation ("Selecting which checks to enable") gives this example to
exclude a check:

  export CLAZY_CHECKS="level0,no-qenums" # Enables all checks from level0,
except for qenums

However, this does not work, at least for the range-loop check.

STEPS TO REPRODUCE
1. Write some code that makes the range-loop check unhappy.
2. Run clazy: CLAZY_CHECKS="level0,no-range-loop" clazy -p=build/dir
sources/*.cxx

OBSERVED RESULT
Clazy issues range-loop reports.

EXPECTED RESULT
Clazy should not issue any range-loop reports.

SOFTWARE VERSIONS
Clazy: 534aa592b4a074206eb4e89dd096363dc8040b5f
Clang: clang-6.0.1-2.fc28.x86_64

ADDITIONAL INFORMATION
Omitting a level (CLAZY_CHECKS="no-range-loop") suppresses the check as
expected. The problem seems to be that specifying levels sometimes (maybe only
for level0 checks?) takes precedence over suppressing individual checks, which
is both annoying and is contrary to the documentation. However, for other
checks (e.g. old-style-connect), suppression is working as expected.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list