GNATCHECK(1)

πŸ“¦ version 2019, in ubuntu jammy

✨ 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 β€” Pass gcc_switches to 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_switches can be any combination of the following:
    • -from=file β€” Read rule options from file. 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_id is any of the rules listed with the -h option. iykyk πŸ‘‘
  • -s β€” Short form of the report file. the tl;dr version.
  • -sn β€” Include only section n (n in 1 .. 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
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms