-
Notifications
You must be signed in to change notification settings - Fork 1.9k
C#: Mass add quality queries to the Code Quality suite. #19783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
96b7250
C#: Mass enable quality queries and update tags.
michaelnebel 3301924
C#: Update integration test expected output.
michaelnebel 758a6b5
C#: Add change note.
michaelnebel 819ee33
C#: Do not add complexity queries that should be configurable to the …
michaelnebel d296ee7
C#: Update integration test expected output.
michaelnebel 5c575ac
C#: Address review comments.
michaelnebel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
csharp/ql/integration-tests/posix/query-suite/csharp-code-quality.qls.expected
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,73 @@ | ||
| ql/csharp/ql/src/API Abuse/CallToGCCollect.ql | ||
| ql/csharp/ql/src/API Abuse/CallToObsoleteMethod.ql | ||
| ql/csharp/ql/src/API Abuse/ClassImplementsICloneable.ql | ||
| ql/csharp/ql/src/API Abuse/FormatInvalid.ql | ||
| ql/csharp/ql/src/API Abuse/NoDisposeCallOnLocalIDisposable.ql | ||
| ql/csharp/ql/src/API Abuse/NullArgumentToEquals.ql | ||
| ql/csharp/ql/src/ASP/BlockCodeResponseWrite.ql | ||
| ql/csharp/ql/src/Architecture/Refactoring Opportunities/InappropriateIntimacy.ql | ||
| ql/csharp/ql/src/Bad Practices/CallsUnmanagedCode.ql | ||
| ql/csharp/ql/src/Bad Practices/CatchOfNullReferenceException.ql | ||
| ql/csharp/ql/src/Bad Practices/Control-Flow/ConstantCondition.ql | ||
| ql/csharp/ql/src/Bad Practices/Declarations/LocalScopeVariableShadowsMember.ql | ||
| ql/csharp/ql/src/Bad Practices/EmptyCatchBlock.ql | ||
| ql/csharp/ql/src/Bad Practices/Implementation Hiding/ExposeRepresentation.ql | ||
| ql/csharp/ql/src/Bad Practices/Naming Conventions/FieldMasksSuperField.ql | ||
| ql/csharp/ql/src/Bad Practices/Naming Conventions/SameNameAsSuper.ql | ||
| ql/csharp/ql/src/Bad Practices/PathCombine.ql | ||
| ql/csharp/ql/src/Bad Practices/UnmanagedCodeCheck.ql | ||
| ql/csharp/ql/src/CSI/CompareIdenticalValues.ql | ||
| ql/csharp/ql/src/CSI/NullAlways.ql | ||
| ql/csharp/ql/src/CSI/NullMaybe.ql | ||
| ql/csharp/ql/src/Concurrency/FutileSyncOnField.ql | ||
| ql/csharp/ql/src/Concurrency/LockOrder.ql | ||
| ql/csharp/ql/src/Concurrency/LockThis.ql | ||
| ql/csharp/ql/src/Concurrency/LockedWait.ql | ||
| ql/csharp/ql/src/Dead Code/DeadStoreOfLocal.ql | ||
| ql/csharp/ql/src/Documentation/XmldocMissingSummary.ql | ||
| ql/csharp/ql/src/Language Abuse/CastThisToTypeParameter.ql | ||
| ql/csharp/ql/src/Language Abuse/CatchOfGenericException.ql | ||
| ql/csharp/ql/src/Language Abuse/DubiousDowncastOfThis.ql | ||
| ql/csharp/ql/src/Language Abuse/DubiousTypeTestOfThis.ql | ||
| ql/csharp/ql/src/Language Abuse/MissedReadonlyOpportunity.ql | ||
| ql/csharp/ql/src/Language Abuse/MissedTernaryOpportunity.ql | ||
| ql/csharp/ql/src/Language Abuse/MissedUsingOpportunity.ql | ||
| ql/csharp/ql/src/Language Abuse/NestedIf.ql | ||
| ql/csharp/ql/src/Language Abuse/RethrowException.ql | ||
| ql/csharp/ql/src/Language Abuse/SimplifyBoolExpr.ql | ||
| ql/csharp/ql/src/Language Abuse/UnusedPropertyValue.ql | ||
| ql/csharp/ql/src/Likely Bugs/Collections/ContainerLengthCmpOffByOne.ql | ||
| ql/csharp/ql/src/Likely Bugs/Collections/ContainerSizeCmpZero.ql | ||
| ql/csharp/ql/src/Likely Bugs/Collections/ReadOnlyContainer.ql | ||
| ql/csharp/ql/src/Likely Bugs/Collections/WriteOnlyContainer.ql | ||
| ql/csharp/ql/src/Likely Bugs/ConstantComparison.ql | ||
| ql/csharp/ql/src/Likely Bugs/DangerousNonShortCircuitLogic.ql | ||
| ql/csharp/ql/src/Likely Bugs/EqualityCheckOnFloats.ql | ||
| ql/csharp/ql/src/Likely Bugs/EqualsArray.ql | ||
| ql/csharp/ql/src/Likely Bugs/HashedButNoHash.ql | ||
| ql/csharp/ql/src/Likely Bugs/ImpossibleArrayCast.ql | ||
| ql/csharp/ql/src/Likely Bugs/IncomparableEquals.ql | ||
| ql/csharp/ql/src/Likely Bugs/NestedLoopsSameVariable.ql | ||
| ql/csharp/ql/src/Likely Bugs/PossibleLossOfPrecision.ql | ||
| ql/csharp/ql/src/Likely Bugs/RecursiveEquals.ql | ||
| ql/csharp/ql/src/Likely Bugs/ReferenceEqualsOnValueTypes.ql | ||
| ql/csharp/ql/src/Likely Bugs/SelfAssignment.ql | ||
| ql/csharp/ql/src/Likely Bugs/Statements/EmptyBlock.ql | ||
| ql/csharp/ql/src/Likely Bugs/Statements/EmptyLockStatement.ql | ||
| ql/csharp/ql/src/Likely Bugs/StaticFieldWrittenByInstance.ql | ||
| ql/csharp/ql/src/Likely Bugs/StringBuilderCharInit.ql | ||
| ql/csharp/ql/src/Likely Bugs/UncheckedCastInEquals.ql | ||
| ql/csharp/ql/src/Linq/MissedAllOpportunity.ql | ||
| ql/csharp/ql/src/Linq/MissedCastOpportunity.ql | ||
| ql/csharp/ql/src/Linq/MissedOfTypeOpportunity.ql | ||
| ql/csharp/ql/src/Linq/MissedSelectOpportunity.ql | ||
| ql/csharp/ql/src/Linq/MissedWhereOpportunity.ql | ||
| ql/csharp/ql/src/Linq/RedundantSelect.ql | ||
| ql/csharp/ql/src/Performance/StringBuilderInLoop.ql | ||
| ql/csharp/ql/src/Performance/StringConcatenationInLoop.ql | ||
| ql/csharp/ql/src/Performance/UseTryGetValue.ql | ||
| ql/csharp/ql/src/Useless code/DefaultToString.ql | ||
| ql/csharp/ql/src/Useless code/FutileConditional.ql | ||
| ql/csharp/ql/src/Useless code/IntGetHashCode.ql | ||
| ql/csharp/ql/src/Useless code/RedundantToStringCall.ql | ||
| ql/csharp/ql/src/Useless code/UnusedLabel.ql | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This query also uses a hardcoded threshold. I wouldn't include it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you are right! I missed that!