jiller / agentsmithplugin

Automatically exported from code.google.com/p/agentsmithplugin
0 stars 0 forks source link

Constants detected in functions as variables #102

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Configure Agent Smith so that you have a different naming conventions 
for const and function variables
In my case all capitals for const and pascal for variables

2. Within a function create a const (will cause
const int FIELD_LENGTH = 255;

3. Create a const in the class (correct behavior)
private const string TABLENAME = "TABLE";

What is the expected behavior? What do you see instead?
Agent Smith with detect the const for the class correctly and not ask for 
a rename. 
But the const in the function will be detected as a variable and 
incorrectly ask it to be renamed to: 
const int fIELD_LENGTH = 255;

What version of ReSharper, Visual Studio and Windows do you use?
XP SP3
VS2008 SP1 (9.0.30729.1 SP)
Resharper 4.1 C# edition build 4.1.933.3 
Agent Smith
Agent Johnson
Ghost Doc

Please provide any additional information below.
Very easy to detect, we have a team of about 15 and all have the same 
issue. Constants are correctly detected in classes just not when they are 
imbedded in a function.

Many thanks
Lachlan

Original issue reported on code.google.com by choco_sm...@hotmail.com on 28 Jan 2009 at 8:55

GoogleCodeExporter commented 8 years ago
Fixed in 1.3.3

Original comment by forever....@gmail.com on 9 Feb 2009 at 8:41

GoogleCodeExporter commented 8 years ago
thankyou for everything :D your work is greatly appriecated.

Original comment by choco_sm...@hotmail.com on 10 Feb 2009 at 9:08