doc::krazyrc(3)
π doc::krazyrc(3) π
okay bestie, so this is the manual page for doc::krazyrc β the krazy control directives thing. it's filed under section 3 of the perl docs (User Contributed Perl Documentation, if we're being fancy about it). grab a snack, we're doing config files π
β¨ NAME β¨
.krazy β the krazy control directives. yes, that's literally the whole name. short king.
πΈ DESCRIPTION πΈ
so .krazy files are these lil directive files that tell the Krazy Code Checking tools how to behave inside a KDE source directory. think of it like setting the vibe for your whole repo, no cap π
each line in the file can be one of three things:
- a control directive (the actual instructions)
- a blank line (breathe, bestie)
- a comment β comment lines start with the
#character
and here's the slay part: if you specify the same directive more than once, multiple instances get merged together in a logical way. no fighting, they just combine. periodt β¨
π DIRECTIVES π
these are the directives the Krazy Code Checking tools actually understand:
EXCLUDE plugin1[,plugin2,...]β removes the listed plugins from the default set of checkers. like uninviting people from the group chat, but for checkers π«ΆCHECK plugin1[,plugin2,...]β runs only the specified list of plugins from the default set of checkers. and bestie, listen: you may not combine this with theCHECKSETdirective, and you may not combine it with the--check-setscommand line option.
Note: theCHECKdirective takes precedence over theEXCLUDEdirective; i.e, plugins specified by theCHECKdirective are always run, even if they are also specified in anEXCLUDEdirective. soCHECKwins the argument, every time. main character energy fr π
CHECKSETS set1[,set2,...]β runs the checker programs belonging to the specified set(s) only. you may not combine this with theCHECKdirective, and you may not combine it with the--checkcommand line option.EXTRA plugin1[,plugin2,...]β adds the listed "extra" plugins to the default set of checkers. lil bonus round πTYPES type1[,type2,...]β checks the specified file type(s) only.EXCLUDETYPES type1[,type2,...]β does NOT check the specified file type(s). bye bye, we're not looking at those πSKIP regexpβ do not process any file that matches the specified perl regular expression. need help writing one? go peek at theperlreref(1)man page for a description of how to write a perl regular expression π¦PRIORITY priorityβ sets the priority value. must be one of"low","normal","high","important","all".STRICT strictβ sets the strict value. must be one of"normal","super","all".OUTPUT outputβ sets the output level. must be one of"quiet","brief","all"."quiet"means no output is printed, even if--verboseis passed on the command line. like, silence. absolutely nothing."brief"will only print checker summaries if the check has at least 1 issue."all"is the normal mode and prints all checker summaries.
EXPORT export-typeβ sets the default export-type value. must be one of the following:"text"(default)"textlist"prints 1 offending file-per-line"textedit"prints text formatted for IDEs, 1 issue-per-line"xml"prints XML formatted intended for follow-on processing
STYLE_CPPSTYLE C++-styleβ tells the"style"checker to follow the guidelines of the specified C++-style.
C++-style must be one of the following:
"kde"(default), seehttp://techbase.kde.org/Policies/Kdelibs_Coding_Style"pim"kdepim style, seehttp://pim.kde.org/development/coding-korganizer.php
Note: Krazy uses a heuristic to decide what type of C++-style to check against. that heuristic isn't very smart; so use this setting to enforce the C++-style. ngl, the heuristic is lowkey giving nothing π
overrides the KRAZY_STYLE_CPPSTYLE environment variable, see krazy2(1).
STYLE_OFFSET indentβ tells the"style"checker to check for a basic indentation level, usually a small integer like2or4. this value overrides the offset provided as part of the C++-style (seeSTYLE_CPPSTYLE).
overrides the KRAZY_STYLE_OFFSET environment variable, see krazy2(1).
STYLE_LINEMAX lengthβ tells the"style"checker to check for lines longer than this number of characters. the default is unlimited line length. go off, write that 400-character line, nobody's stopping you π§
overrides the KRAZY_STYLE_LINEMAX environment variable, see krazy2(1).
π ADMIN DIRECTIVES π
okay so this next batch is the admin-only zone. these are administrator directives used only by the krazy2xml(1) program, and they're typically not interesting to the average user. iykyk π
IGNORESUBS subdir1[,subdir2,...]β do not run Krazy on the specified list of subdirectories. these must be KDE "project" subdirectories that reside at the top level of a KDE module.EXTRASUBS subdir1[,subdir2,...]β run Krazy on the specified list of subdirectories. these must be KDE "project" subdirectories that reside at the top level of a KDE module.IGNOREMODS module1[,module2,...]β do not run Krazy on the specified list of KDE modules. these must be KDE "module" subdirectories that reside at the top level of a KDE component.
π COPYRIGHT π
Copyright 2005-2010 by Allen Winter <winter@kde.org>
β SEE ALSO β
krazy2(1), krazy2all(1), krazy2xml(1), perlreftut(1)
go read those too, bestie, they're all connected. it's giving a whole ecosystem πΈ
π¦ AUTHORS π¦
Allen Winter, <winter@kde.org>
and that's the whole page, bestie!! π«Ά this was perl v5.42.0, dated 2025-07-24, and it's the doc::krazyrc(3) manual β so go forth, write your .krazy file, and make your repo iconic πβ¨π
π¦ where this page comes from
- fedora 43: krazy2 2.97-0.36.20140114git35d9080f1870d.fc43 Β· GPL-2.0-or-later
- fedora 43: krazy2 2.97-0.36.20140114git35d9080f1870d.fc43 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms