Board index » delphi » QA Audits and Delphi naming conventions

QA Audits and Delphi naming conventions


2006-08-05 04:47:17 AM
delphi55
Hi, all,
I was using QA Audit trails from BDS for the first time, discovered some
problems that I'plan to put in QC reports, but this one confused me. AFAIK,
Delphi naming conventions states that we always should use pascal casing and
never camel casing, e.g., MyVar. BDS templates like forb seem to follow
this, introducing an "I" loop variable. But running QA Audit I have got some
NC warnings, which description, to my surprise, at one point says:
"Camel casing should be used in local variable, formal parameter, and
non-public instance field names"
So, runing QA Audits I got NCs even in events generated by the IDE ('Sender'
should be 'sender' acording to the audit). I would like to know, which one is
not following Delphi naming conventions? The IDE or the QA Audits?
Regards,
Marco
 
 

Re:QA Audits and Delphi naming conventions

Quote
So, runing QA Audits I got NCs even in events generated by the IDE
('Sender' should be 'sender' acording to the audit). I would like to know,
which one is not following Delphi naming conventions? The IDE or the QA
Audits?
For everything you've described, the QA audits are not following convention.
community.borland.com/article/0,1410,10280,00.html
--Jacob
 

Re:QA Audits and Delphi naming conventions

"Marco Sangali" wrote
Quote

"Camel casing should be used in local variable, formal parameter, and
non-public instance field names"
[..]
not following Delphi naming conventions? The IDE or the QA Audits?
Those are conventions of C#, however.
bobD
 

Re:QA Audits and Delphi naming conventions

Bob Dawson writes:
Quote
"Marco Sangali" wrote
>"Camel casing should be used in local variable, formal parameter, and
>non-public instance field names"
[..]
>not following Delphi naming conventions? The IDE or the QA Audits?

Those are conventions of C#, however.

Or more precisely of the .NET framework.
msdn.microsoft.com/library/default.asp
These message comes from FxCop.
www.gotdotnet.com/team/FxCop/
--
Regards
Jens