226 Commits (17c4315974c3fe4eed56b81865f87229bf661307)

Author SHA1 Message Date
Daniel Grunwald f31aa291ae ParameterCanBeDemotedIssue: Remove 'ConstructHasLocalIndependentTyping' 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 13 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. 13 years ago
Daniel Grunwald 8e03cfeeb4 CallToVirtualFunctionFromConstructorIssue: avoid false positive when the call appears in an anonymous method 13 years ago
Mike Krüger fab565a92d [Resolver] Local resolve result no longer returns a constant value for 13 years ago
Mike Krüger 2f91ba1df8 [CodeIssues] Added failing test case for variable declared in wide 13 years ago
Mike Krüger ae24ec4713 [CodeIssues] Fixed case in redundant else issue. 13 years ago
Mike Krüger 35428a6466 * RedundantAssignmentIssue.cs: [CodeIssues] Redundant assignment 13 years ago
Mansheng Yang 9622218439 [CodeIssues]RedundantAssignmentIssue: ignore assignments in try blocks 13 years ago
Simon Lindgren f4fdb0c5a0 [CodeIssues] Don't move variable declarations into the list of initializer statements of for statements. 13 years ago
Simon Lindgren 7ad55831ac [CodeIssues] Add accessibility checking to VariableHidesMemberIssue. 13 years ago
Daniel Grunwald 536b9b0b1c Add issue provider for missing StringComparison argument to string.StartsWith/EndsWith/IndexOf/LastIndexOf calls. 13 years ago
Daniel Grunwald e6bc300e1e Don't show "expression is never of the provided type" warning if the type could not be resolved. 13 years ago
Daniel Grunwald fe815dc2a0 Fixed false positive that caused a 'is operator always returns true' warning even though it returns false. (e.g. 'intVar is double') 13 years ago
Mike Krüger a50b205d6b [CodeIssues] Fixed unused parameters for methods used as delegates and 13 years ago
Mike Krüger 28c635f11d [CodeIssues] Removed LocalVariableOnlyAssignedIssue - it's redundant 13 years ago
Mike Krüger 4d49d61ab5 [CodeIssues] Added type checking to string is null or empty issue. 13 years ago
Daniel Grunwald e62e9469a7 Simplified ExpressionIsNeverOfProvidedTypeIssue and fixed false positive when converting from System.Object to value types. 13 years ago
Daniel Grunwald e272d518b6 AssignmentMadeToSameVariableIssue: don't warn on "a += a;" 13 years ago
Daniel Grunwald 81c09524d6 Reference to static member via derived type: ignore curiously recurring template pattern 13 years ago
Daniel Grunwald 912017d123 RedundantWhereWithPredicateIssue: in addition to Any(), handle Count(),First(),FirstOrDefault(),Last(),LastOrDefault(),LongCount(),Single() and SingleOrDefault(). 13 years ago
Daniel Grunwald 3e42bc1e6a Don't show 'Method with optional parameter is hidden by overload' issue if the overloads have different type parameters. 13 years ago
Daniel Grunwald 9cdf7e71f9 Don't show 'method never returns' for iterators containing 'yield break;' 13 years ago
Daniel Grunwald 75925d5aaf Fix #119: LocalVariableOnlyAssignedIssue does not recognize usage through unary operator expression 13 years ago
Daniel Grunwald ad431543a3 Fix NullReferenceException in IncorrectExceptionParameterOrderingIssue. 13 years ago
Daniel Grunwald 03f66e700f CastExpressionOfIncompatibleTypeIssue: don't produce an issue when the source or target type is unknown. 13 years ago
Daniel Grunwald eabc6dbfae Don't warn on empty custom events. 13 years ago
Daniel Grunwald b500f468ac Fix #120: RedundantNamespaceUsageIssue bad handling of using aliases 13 years ago
Adam Connelly 20cb63aa08 [CodeIssues] Removed the baseType field from the NoDefaultConstructorIssue since it can be overwritten if there is a nested type that has an issue. The code now resolves the base type when visiting the constructor to make sure it is correct. 13 years ago
Adam Connelly fccd433299 [CodeIssues] Updating the NoDefaultConstructorIssue to ignore inaccessible constructors and to only look at the direct base type. I also updated the issue text to contain the compiler error number, and altered the way that the string was formatted so that the format string is passed into TranslateString. 13 years ago
Adam Connelly aba167fa4c [CodeIssues] Updating the NoDefaultConstructorIssue to take into account multiple constructors in the child class. If no constructors are defined in the child, the issue is put against the class identifier, whereas if constructors are defined, the issue is put against each constructor that has an issue. 13 years ago
Adam Connelly 4f3695ca03 [CodeIssues] Adding an issue that highlights when a base class does not have a parameterless constructor, and the child class does not invoke any of the base class constructors. 13 years ago
Mike Krüger f43d5df0e2 [CodeIssues] New issue to convert .Where(p).Any() to .Any(p). (from shani) 13 years ago
Mansheng Yang dc7fa56956 [CodeIssue] RedundantAssignmentIssue: fixed a bug in issue finding 13 years ago
Simon Lindgren b7f65011fa [CodeIssues] Improve ParameterCanBeDemotedIssue. 13 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. 13 years ago
Simon Lindgren 458bd90f11 [CodeIssues] Add incomplete dependency tracking to VariableDeclaredInWideScopeIssue. 13 years ago
Mansheng Yang a27b0518ce [CodeIssues] ConstantConditionIssue: check if condition is compile time constant to avoid fake warnings 13 years ago
Mansheng Yang 352dcce314 [CodeIssues] CompareBooleanWithTrueOrFalseIssue: check if the expression being compared is of boolean type 13 years ago
Mansheng Yang 588b127a42 [CodeIssues] MethodNeverReturnsIssue: handle 'throw' case 13 years ago
Mansheng Yang 6f063c60a6 [CodeIssues] RedundantFieldInitializerIssue: handle some number type initializer cases 13 years ago
Mansheng Yang f5c370a6cd [CodeIssues] MethodOverloadHidesOptionalParameterIssue: fixed namespace 13 years ago
Simon Lindgren a9e0bd901d [CodeIssues] IncorrectCallTogetHashCodeIssue: Only look at calls to members of 'base' or 'this'. 13 years ago
Simon Lindgren 821e157bf6 [CodeIssues] VariableDeclaredInWideScopeIssue: Handle nested scopes that are not BlockStatements and don't suggest moving declarations into closures 13 years ago
Simon Lindgren 713b88f963 [CodeIssues] Don't consider empty catches redundant. 13 years ago
Mansheng Yang c63f65a570 [CodeIssue] Added MethodOverloadHidesOptionalParameterIssue 13 years ago
Mansheng Yang 352b20cac6 [CodeIssue] Added RedundantObjectCreationArgumentListIssue 13 years ago
Mansheng Yang 9a8d671d07 [CodeIssue] RedundantObjectOrCollectionInitializerIssue: added some tests 13 years ago