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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8b756d9a0afb052a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!news2.volia.net!news.newsland.it!proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Message-ID: <43F7915B.3090000@obry.net> Date: Sat, 18 Feb 2006 22:27:55 +0100 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 Newsgroups: comp.lang.ada To: "Peter C. Chapin" Subject: Re: Quick question about Ada code formatting. References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 18 Feb 2006 22:27:56 CET NNTP-Posting-Host: 82.124.243.72 X-Trace: 1140298076 news.wanadoo.fr 29210 82.124.243.72:3604 X-Complaints-To: abuse@wanadoo.fr Xref: g2news1.google.com comp.lang.ada:2966 Date: 2006-02-18T22:27:56+01:00 List-Id: Peter C. Chapin a �crit : > Thanks for your comments and to all the others who have responded. Thanks > also for drawing my attention to -gnaty. That seems handy. I'm sure there > must be other style checkers out there too. Yes AdaControl from J.P. Rosen and gnatcheck from AdaCore. But -gnaty (when using GNAT) is the enforcement at the compilation level before anything is checked-in. I always use it with -gnatw (warnings) and most importantly with -gnatwe (warnings are error) so GNAT will refuse to compile code. A nice way to force people to use the right style ;) Of course I have seen some developers editing the project file to remove options like -gnaty, -gnatwe :( ... that's why I'm going to enforce the rules at the repository level where I have full control. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595