Naming Conventions and abbreviations

Thread is closed for posting
4 posts, 1 answers
  1. Ken
    Ken avatar
    2 posts
    Member since:
    Nov 2011

    Posted 12 Apr 2012 Link to this post

    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

    where ALC would be our companies abbreviation.
  2. Answer
    Ivan avatar
    106 posts

    Posted 13 Apr 2012 Link to this post


    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:
    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!

    the Telerik team

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

  3. Ken
    Ken avatar
    2 posts
    Member since:
    Nov 2011

    Posted 13 Apr 2012 Link to this post

    Thanks for the prompt reply!
  4. Christopher Blickley
    Christopher Blickley avatar
    202 posts
    Member since:
    Jan 2004

    Posted 31 Jul 2012 Link to this post

    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.

Back to Top