Bug 368068 - Add global option to exclude a particular check from a level
Summary: Add global option to exclude a particular check from a level
Status: RESOLVED FIXED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Sergio Martins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-31 18:34 UTC by Csaba Kertész
Modified: 2016-09-02 20:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Csaba Kertész 2016-08-31 18:34:46 UTC
It would be nice to have the option to exclude certain checks from the levels. E.g having all check from level0 and level1 excluding non-pod-global-static:

export CLAZY_CHECKS="level0,level1,-non-pod-global-static"
Comment 1 Sergio Martins 2016-09-01 08:39:04 UTC
I agree
Comment 2 Sergio Martins 2016-09-02 20:05:54 UTC
Git commit 99de674a597182a31bfb98ff1392d0b29abd864d by Sergio Martins.
Committed on 02/09/2016 at 20:03.
Pushed by smartins into branch 'master'.

Allow to disable checks by prefixing with "no-"

For example, level0,no-qenums will execute all checks from level0
except qenums

M  +5    -2    Clazy.cpp
M  +3    -1    README.md
M  +34   -5    checkmanager.cpp
M  +6    -2    checkmanager.h
M  +26   -0    tests/clazy/test_requested_checks.sh
M  +77   -0    tests/clazy/test_requested_checks.sh.expected

http://commits.kde.org/clazy/99de674a597182a31bfb98ff1392d0b29abd864d