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
Move FlowSummaryImpl.qll to dataflow pack
#14573
base: main
Are you sure you want to change the base?
Conversation
|
|
||
| class Node = DataFlowPublic::Node; | ||
|
|
||
| class TypeTrackingNode = DataFlowPublic::LocalSourceNode; | ||
|
|
||
| class TypeTrackerContent = DataFlowPublic::ContentSet; | ||
|
|
||
| private module SCS = SummaryComponentStack; | ||
| private module SCS = FlowSummaryImpl::Private::SummaryComponentStack; |
Check warning
Code scanning / CodeQL
Dead code Warning
| /** | ||
| * A query predicate for outputting flow summaries in semi-colon separated format in QL tests. | ||
| * The syntax is: "namespace;type;overrides;name;signature;ext;inputspec;outputspec;kind;provenance", | ||
| * ext is hardcoded to empty. | ||
| */ |
Check warning
Code scanning / CodeQL
Predicate QLDoc style. Warning
| sinkElement(_, spec, _, _) | ||
| } | ||
|
|
||
| private module AccessPath = AccessPathSyntax::AccessPath<sourceSinkSpec/1>; |
Check warning
Code scanning / CodeQL
Dead code Warning
741725b
to
45b59c1
Compare
45b59c1
to
6185feb
Compare
| /** | ||
| * Provides the predicate `summaryNodeType` for associating types with summary nodes. | ||
| * | ||
| * Only relevent for typed languages. | ||
| */ |
Check warning
Code scanning / CodeQL
Misspelling Warning
| module SourceSinkInterpretationInput implements | ||
| Impl::Private::External::SourceSinkInterpretationInputSig | ||
| { | ||
| private import csharp as Cs |
Check warning
Code scanning / CodeQL
Names only differing by case Warning
6185feb
to
a047beb
Compare
| ) | ||
| } | ||
|
|
||
| private predicate sdfs(string input, string output) { |
Check warning
Code scanning / CodeQL
Dead code Warning
| @@ -4,6 +4,22 @@ | |||
|
|
|||
| private class IncludeAllSummarizedCallable extends IncludeSummarizedCallable { | |||
| IncludeAllSummarizedCallable() { exists(this) } | |||
|
|
|||
| private predicate sdfs( | |||
Check warning
Code scanning / CodeQL
Dead code Warning
| this.propagatesFlow(input, output, preservesValue) | ||
| } | ||
|
|
||
| private predicate sdfs2(string s) { |
Check warning
Code scanning / CodeQL
Dead code Warning
| @@ -7,6 +7,17 @@ | |||
| [this.(Modifiable), this.(Accessor).getDeclaration()].isEffectivelyPublic() | |||
| } | |||
|
|
|||
| private predicate sdfs() { | |||
Check warning
Code scanning / CodeQL
Dead code Warning
| @@ -418,18 +418,33 @@ | |||
| ) | |||
| } | |||
|
|
|||
| /** Gets the source/sink/summary/neutral element corresponding to the supplied parameters. */ | |||
| private Method testinterpretElement( | |||
Check warning
Code scanning / CodeQL
Dead code Warning
| outputState(c, out) and | ||
| out.head() = TContentSummaryComponent(_) and | ||
| s = out.tail() | ||
| private string testencodeContent(ContentSet c, string arg) { |
Check warning
Code scanning / CodeQL
Dead code Warning
| /** Gets a string representing the callable in semi-colon separated format for use in flow summaries. */ | ||
| final override string getCallableCsv() { result = Csv::asPartialModel(this) } | ||
| } | ||
|
|
||
| private class Cd extends Callable { |
Check warning
Code scanning / CodeQL
Dead code Warning
| string fqn | ||
| ) { | ||
| result.getQualifiedName() = "Microsoft.AspNetCore.Connections.ConnectionItems.Add" and | ||
| fqn = result.(Method).getQualifiedName() and |
Check warning
Code scanning / CodeQL
Redundant cast Warning
No description provided.