This is a migrated thread and some comments may be shown as answers.

Naming Conventions and abbreviations

3 Answers 124 Views
Code Analysis
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ken
Top achievements
Rank 1
Ken asked on 12 Apr 2012, 08:52 PM
Our namespaces have abreviations in them that are well understood such as our company name and BLL/DAL.
How do I tell the checker that these abreviations fit into its conventions.
I have for instance..
ALC.Web.BLL or
ALC.Web.DAL

where ALC would be our companies abbreviation.

3 Answers, 1 is accepted

Sort by
0
Accepted
Ivan
Telerik team
answered on 13 Apr 2012, 12:04 PM
Hi,

Thank you for your feedback. JustCode wants that every acronym longer than 2 characters to be pascal-cased. Currently, you cannot set acronyms that are allowed to be upper-cased in JustCode.
This, however, is something that we intend to implement. Here is a link for a PITS item where you can vote for it: http://www.telerik.com/support/pits.aspx#/public/justcode/9473.
As a temporary workaround you could add a secondary naming rule for namespaces that has PascalCase as a rule and "ALC" as a prefix. If some of you namespaces end with BLL or DAL you could add a naming rule with ALC as a prefix and BLL or DAL as a suffix.
If you have any more questions or remarks, please do not hesitate to contact us again!

Greetings,
Ivan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Ken
Top achievements
Rank 1
answered on 13 Apr 2012, 08:56 PM
Thanks for the prompt reply!
0
Christopher Blickley
Top achievements
Rank 2
answered on 31 Jul 2012, 09:31 PM
I've voted for it in PITS.  This would be a huge addition, I've had to turn off the naming convention code analsysis checks because I have so many acronyms. Even ones like URL and HTTP, which are pretty standard, not to mention my own that make sense in my code.

-Chris
Tags
Code Analysis
Asked by
Ken
Top achievements
Rank 1
Answers by
Ivan
Telerik team
Ken
Top achievements
Rank 1
Christopher Blickley
Top achievements
Rank 2
Share this question
or