Bug 368068

Summary: Add global option to exclude a particular check from a level
Product: [Developer tools] clazy Reporter: Csaba Kertész <csaba.kertesz>
Component: generalAssignee: 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 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