MAY
28
2010

New Krazy Options

I added some new options to Krazy in the past few days. Hope folks find them useful.

  1. You can now control the types of files to process with the new --types and --exclude-types options.

    Use the --list-types option to see what file types are supported.

    Examples:

    # Run all checks against desktop and designer files in this directory:
    % krazy2 --types=desktop,designer *


    # Run all checks on all file types except C++ files:
    % krazy2all --exclude-types=c++

  2. Krazy now supports "check-sets" with the new --check-sets option. Check-sets are a collection of checkers with a similar high level purpose in mind.
    Check-sets currently available:
    * c++, pure C++ checks
    * qt4, Qt4 source (C++, QML, Qt Designer files)
    * kde4, everything (the default)
    * foss, checks specific to FOSS (eg. license and copyright)

    Use the --list-sets option to see what check-sets are supported.

    Examples:

    # Only check for pure C++ issues:
    % krazy2 --check-sets=c++ *


    # Only check for pure Qt4 issues:
    % krazy2all --check-sets=qt4

Wait! There's more... you can control all these new features by using TYPES, EXCLUDETYPES, and CHECKSETS directives in your .krazy file. Please see the krazy2, krazy2all and krazyrc man pages for more info.

Pick up the new Krazy in $KDESVN/trunk/quality/krazy2 and run ./install.sh from there.
Please tell me about bugs and feature requests by submitting a report to the Krazy component in bugs.kde.org