GNATCHECK(1)
β¨ NAME β¨
gnatcheck β the GNAT rule checking tool. she checks your Ada against rules and she has OPINIONS. π
π¦ SYNOPSIS π¦
gnatcheck [OPTION]... filename [-cargs gcc_switches] [-rules rule_switches]
gnatcheck [OPTION]... -files=filename [-cargs gcc_switches] [-rules rule_switches]
π DESCRIPTION π
okay so bestie, here's the vibe: gnatcheck checks the conformance of Ada source text with rules, and it produces a report file for later analysis plus stuff on standard output. two deliverables, one queen. periodt. β¨
In the first form, gnatcheck examines the Ada source files you specified (wildcards are allowed, yes you can be chaotic about it π
).
In the second form, gnatcheck examines the Ada source files listed in the file you specified. so organized of her.
gnatcheck is an ASIS application developed on top of the ASIS implementation for GNAT. As such, it reads tree files (*.adt) produced by the compiler to accomplish its goals, and it invokes gnatgcc for this. she's built different, no cap. π₯
π OPTIONS π
-aβ Process RTL units. go off.-cargs gcc_switchesβ Passgcc_switchesto GCC when producing the tree files. delivering your messages, main character courier energy π«Ά-dβ Debug mode. for when you need to see the drama behind the drama.-ddβ Progress indicator mode, for use in the GNAT Programming Studio. little loading bar moment πΈ-hβ Print the list of built-in rules. the menu, if you will. π-lβ Full source location chains in report file. receipts, with the full lineage.-qβ Quiet mode: do not report detections on standard output. she's keeping it on the low, only the report file gets the tea.-rules rule_switchesβrule_switchescan be any combination of the following:-from=fileβ Read rule options fromfile. outsourcing the decisions, valid.+ALLβ Turn all rules on. every rule. all at once. slay. π-ALLβ Turn all rules off. silence. peace. nothing but vibes.+Rrule_id[:param[,param...]]β Turn the specified rule on, passing it optional parameters.-Rrule_idβ Turn the specified rule off.+Rrule_id[:param[,param...]]β Turn off some of the checks for the specified rule.rule_idis any of the rules listed with the-hoption. iykyk π
-sβ Short form of the report file. the tl;dr version.-snβ Include only section n (n in1 .. 3) in the report file. pick a lane, pick a number.-vβ Verbose mode. she will tell you EVERYTHING and honestly? good for her. π
π SEE ALSO π
gnat(1), asistant(1), gnat2xml(1), gnatelim(1), gnatmetric(1), gnatpp(1), gnatstub(1), gnattest(1) β the whole friend group, all iconic, all worth a follow.
Documentation about the ASIS tools may be found in /usr/share/doc/asis-doc/ if the asis-doc package is installed. The reference documentation about ASIS is excluded due to license problems π, but may be found in various formats at http://libre.adacore.com/developers/documentation.
and that's the whole page bestie, mwah π this one came from the ASIS Tools crew, dated 2014-08-09, and it's living under the Debian GNU/Linux banner as GNATCHECK(1). go check some rules, you got this π«Άβ¨
π¦ where this page comes from
- ubuntu jammy: asis-programs 2019-5 Β· GPL-3.0-or-later
- Copyright (C) 2004-2007 AdaCore
- Copyright (C) 2008 Ludovic Brenta <ludovic@ludovic-brenta.org>
- Copyright (C) 2014 Nicolas Boulenguez <nicolas@debian.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms