From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,13bec1d6e8f0eeee X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!t-online.de!inka.de!peernews!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Stefan Soos Newsgroups: comp.lang.ada Subject: Re: gnatcheck Followup-To: comp.lang.ada Date: Tue, 23 Dec 2008 17:22:57 +0100 Organization: 1&1 Internet AG Message-ID: References: NNTP-Posting-Host: ulmg-5f71d216.pool.einsundeins.de Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit X-Trace: online.de 1230049378 24523 95.113.210.22 (23 Dec 2008 16:22:58 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Tue, 23 Dec 2008 16:22:58 +0000 (UTC) User-Agent: KNode/0.99.01 Xref: g2news2.google.com comp.lang.ada:4048 Date: 2008-12-23T17:22:57+01:00 List-Id: John B. Matthews wrote: > In article , Stefan Soos > wrote: > > [...] >> when I use gnatcheck on my project, I get a bunch of error messages >> for coding standard violations. Where can I find more infos what the >> different rules mean? For example, I get "declaration of >> discriminanted record". Now I'd like to know why this is a violation >> and where in the RM I can read more about it. Can I make gnatcheck to >> be more verbose or specific? > > I'd start with the GNAT User's Guide section on gnatcheck: > > > Hi, Thanks but I've already checked this source, but it's no help to me. It describes what gnatcheck does when using the Discriminated_Record rule. But I don't know why its a violation. Whats wrong with discriminated records? Another example. Predefined_Numeric_Types. I know I shouldn't used them. But I know it because a long time ago I read it in the ARM. Theres no reference in gnatcheck to the specific chapter in the ARM. I'd like to improve my code and evolve a good programming habit, but it's really hard to google all the rules with no results. I hope someone can enlighten me. I wish you all a merry christmas, Stefan