Ciprian Khlud
bd486b50b0
Code updates
13 years ago
Ciprian Khlud
9db3f46cbc
Support non void arguments
13 years ago
Ciprian Khlud
ad0c12d1da
Sample implementation for bug #11866
...
https://bugzilla.xamarin.com/show_bug.cgi?id=11866
The test fails because EOLN issues for now, and it works just for methods that return void for now. But it does look for methods inside the classes that have same: arguments, return type and modifiers (so are duplicates)
13 years ago
Ciprian Khlud
eca73de6e4
ExpressionOfCompatibleTypeCodeIssue will not convert class types any longer.
13 years ago
Ciprian Khlud
17b26e4ce0
Added more unit tests to:
...
https://bugzilla.xamarin.com/show_bug.cgi?id=10728
There is a bug in conversion between double and float (in Convert part of the base classes)
13 years ago
Ciprian Khlud
0d391896fb
Fixes bug #10731
...
https://bugzilla.xamarin.com/show_bug.cgi?id=10731
It will look as a separate issue checker for basic interfaces and it will give the first implementation that works as base (so it will not give 5 possible conversions, even all are possible). In practice works really well. It is losely based on the ParameterCanbeDemotedIssue so I exposed the code to not duplicate it. Yet the code is much simpler this action.
13 years ago
Ciprian Khlud
dd8caea759
Fixes bug 11709 part of Xamarin's bugzilla: https://bugzilla.xamarin.com/show_bug.cgi?id=11709
...
It makes ConvertToStaticMethod as an issue.
13 years ago
Mike Krüger
62aaf41af6
Fixed failing built.
13 years ago
leoowen19
73f679e6c3
[CodeIssue] Modified PublicConstructorInAbstractClass issue to support Resharper disable comment
13 years ago
ciplogic
d1196a8ffb
Fixes bug #10728 (Auto-Fix regarding control flow: "Convert to correct type")
13 years ago
leoowen19
579d2aca48
[CodeIssue]PublicConstructorInAbstractClass
...
Convert modifiers of constructors in Abstract class from "public" to
"protected".
13 years ago
leoowen19
42921dca18
[CodeIssue] Redundant Constructor issue
...
Do not need an empty constructor
13 years ago
leoowen19
0d99a1c634
Two new code issues
...
1. Static contructor cannot take parameters.
2. Static constructor cannot take access modifier.
13 years ago
ciplogic
e5f2c0bfd6
Add the capability to remove base call if is not needed. It exposes some classes so maybe I'm not using the proper APIs. But it works good for practical the test case I wrote.
13 years ago
ciplogic
f806f635be
Auto-Fix for remove redundant assignment have issues in some cases (Part II) fixes
13 years ago
Mike Krüger
74ea8505b8
Added fix from Ciprian Khlud<ciprian.mustiata@yahoo.com>: Fix in
...
hoping to address the issues regarding some edge cases of remove
redundant variables in relation with functions.
13 years ago
Mike Krüger
ebe7045d05
Added some tests to the redundant null check.
13 years ago
Mike Krüger
01d4361350
Reformatted redundant null check.
13 years ago
leoowen19
ee3c6e89ed
[CodeIssue] Redundant Null Check
...
No need to check null where is keyword exits.
13 years ago
Mike Krüger
1d5c85f3f1
Implemented resharper disableing for redundant using directive.
13 years ago
Mike Krüger
020128ba58
CanBeDemotedIssue now respects the
...
CA1011:ConsiderPassingBaseTypesAsParameters suppression.
13 years ago
Mike Krüger
538f016c46
Implemented code issue message suppression.
13 years ago
Mike Krüger
1b99cfc3e8
Implemented new line ast node insertion.
13 years ago
Daniel Grunwald
ee5d87a0f8
Add year to license headers.
13 years ago
Mike Krüger
8be2eeef65
Fixed some false positives in parameter not used issue.
13 years ago
Mike Krüger
0c6e840997
Fixed unit test.
13 years ago
mkrueger
3b46fef92b
Fixed bug in redundant field initializer issue.
13 years ago
Mike Krüger
69d4fd1ff1
RedundantAssignment issue is now more careful when removing
...
invocations.
13 years ago
Mike Krüger
f700607114
SimplifyAnonymousMethodToDelegateIssues now doesn't touch too complex
...
expressions.
13 years ago
Daniel Grunwald
d267602fec
Fix crash when 'return 1;' occurs within a constructor declaration.
13 years ago
Mike Krüger
dc10a67ce7
[CodeIssues] Fixed naming issue.
13 years ago
Mike Krüger
d47e38efe7
[CodeIssues] Fixed bug in CS0127 issue.
13 years ago
Mike Krüger
40a2b81b43
Implemented issue provider for CS0127: A method with a void return
...
type cannot return a value.
This issue provider got requested - and I need to start somewhere to
implement semantic error issue providers.
13 years ago
Mike Krüger
f480c60aec
Added new code issue to simplify anonymous methods to delegate usages.
13 years ago
Mike Krüger
551869bd41
VariableDeclaredInWideScopeIssue no longer suggests moving method call
...
initializers.
13 years ago
Mike Krüger
24c588b70c
CheckFix is now more verbose.
13 years ago
Daniel Grunwald
3d96f7c7ff
Add fix action to ExplicitConversionInForEachIssue.
13 years ago
Daniel Grunwald
67d80c8834
CompareFloatWithEqualityOperatorIssue: don't show warning when comparing with infinities.
13 years ago
Daniel Grunwald
f31aa291ae
ParameterCanBeDemotedIssue: Remove 'ConstructHasLocalIndependentTyping'
...
This fixes false positives when the parameter is used within lambdas passed to generic methods (e.g. LINQ).
13 years ago
Mike Krüger
4e104efc65
ParameterCanBeDemotedIssue no longer tries to demote arrays to ILists.
13 years ago
Mike Krüger
ee0479e2ff
Remove redundant empty argument list is now much less intrusive.
13 years ago
Daniel Grunwald
64b8217fb0
Don't produce NegativeRelationalExpressionIssue inside operator declarations
14 years ago
Daniel Grunwald
e1471c0a8d
ParameterNotUsedIssue: add heuristic that prevents false positives for event handler methods when the event is registered in designer-generated code.
14 years ago
Daniel Grunwald
8e03cfeeb4
CallToVirtualFunctionFromConstructorIssue: avoid false positive when the call appears in an anonymous method
14 years ago
Mike Krüger
fab565a92d
[Resolver] Local resolve result no longer returns a constant value for
...
parameters.
Even if the parameters have a default value it's wrong to assume that
this is always the default value. See the unreachable code issue test.
14 years ago
Mike Krüger
2f91ba1df8
[CodeIssues] Added failing test case for variable declared in wide
...
scope issue.
14 years ago
Mike Krüger
ae24ec4713
[CodeIssues] Fixed case in redundant else issue.
14 years ago
Mike Krüger
35428a6466
* RedundantAssignmentIssue.cs: [CodeIssues] Redundant assignment
...
issue no longer warns for using statement resource acquisitions.
* ParameterCompletionTests.cs:
* RedundantAssignmentIssueTests.cs: [CodeIssues] Redundant assignment
issue no longer warns for using statements.
14 years ago
Mansheng Yang
9622218439
[CodeIssues]RedundantAssignmentIssue: ignore assignments in try blocks
14 years ago
Simon Lindgren
f4fdb0c5a0
[CodeIssues] Don't move variable declarations into the list of initializer statements of for statements.
14 years ago