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

justcode: set local method variables to start with underscore

1 Answer 19 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Phil H.
Top achievements
Rank 2
Phil H. asked on 11 Jul 2016, 09:03 PM

Hi:

I love the ability to turn JustCode on and off.

I would like to configure coding and variable styles.  My local method variables to start with underscore, so I can easily see that it is local.  I am getting a warning.  Can you direct me to configure my style.

Phil

1 Answer, 1 is accepted

Sort by
0
Accepted
Nikolay Valchev
Telerik team
answered on 14 Jul 2016, 08:04 AM
Hello Phil,

All naming inconsistencies warnings are reported due to conflicts with JustCode's Naming Convention Settings. We've implemented this settings because we would like to help developers/teams enforce some naming conventions in their projects. If you don't need such a settings it is perfectly fine to disable it by marking 'Naming conventions inconsistency' (located at JustCode | Options | Code Analysis | Problems | C#) with the green tick. If you would like to stick to the naming conventions but use code style different from the default one, you are able to configure them from JustCode | Options | Code Style | C# | Naming Conventions. For instance, to enforce naming convention like the one you mentioned about the local variable, you should
open the Naming Conventions settings page, find the rule for Variables and add _ as a prefix  to the current rule. For more information you could look at this blog post or at our documentation.

Best Regards,
Nikolay Valchev
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Phil H.
Top achievements
Rank 2
Answers by
Nikolay Valchev
Telerik team
Share this question
or