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-7-bit Path: g2news1.google.com!news3.google.com!news4.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!nntp.abs.net!news.abs.net!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Quick question about Ada code formatting. References: <43F7915B.3090000@obry.net> From: Stephen Leake Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:jv8l+JA8iU4lkyVw7qLDgzl2yeQ= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 19 Feb 2006 10:17:15 -0500 NNTP-Posting-Host: 66.159.65.1 X-Complaints-To: abuse@toad.net X-Trace: news.abs.net 1140362241 66.159.65.1 (Sun, 19 Feb 2006 10:17:21 EST) NNTP-Posting-Date: Sun, 19 Feb 2006 10:17:21 EST Xref: g2news1.google.com comp.lang.ada:2989 Date: 2006-02-19T10:17:15-05:00 List-Id: Pascal Obry writes: > 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 ;) It helps to combine that with an intelligent editor that can automatically fix the style errors reported. AdaCore's GPS can do some of that, as can Emacs Ada mode. > 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. I guess firing the people who violate the rules isn't an option? -- -- Stephe