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-b...@kde.org
          Reporter: mwoehlke.fl...@gmail.com
                CC: smart...@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 watching all bug changes.

Reply via email to