Ciprian Khlud
bd486b50b0
Code updates
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
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
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
Simon Lindgren
b7f65011fa
[CodeIssues] Improve ParameterCanBeDemotedIssue.
14 years ago
Simon Lindgren
79b4c25ccc
[CodeIssues] ParameterCanBeDemotedIssue: Add Criterions for suitable indexer members and for array types. Also start resolving the method with the new type to check for errors.
14 years ago
Simon Lindgren
53d9b6e7ee
[CodeIssues] Fix some false positives in ParameterCanBeDemotedIssue.
14 years ago
Simon Lindgren
1133382741
[CodeIssues] Add missing class IsTypeCriterion.
14 years ago
Simon Lindgren
2307bcb184
[CodeIssues] ParameterCanBeDemotedTests: Add checks for what types variables are used as.
14 years ago
Simon Lindgren
6f2aed19b4
[CodeIssues] ParamaterCanBeDemotedIssue: Don't crash on parameters that aren't used.
14 years ago
Simon Lindgren
be0d89c486
[CodeIssues] Improve ParameterCouldBeDemotedIssue.
14 years ago
Simon Lindgren
61044a86f4
[CodeIssues] Add initial version of ParameterCanBeDemotedIssue.
14 years ago
Simon Lindgren
d01a360f32
[CodeIssues] Don't suggest demoting parameters of program entry points.
14 years ago
Simon Lindgren
93fce4f8a6
[CodeIssues] Don't suggest demotion to a non-array type for params parameters.
14 years ago