Skip to content
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

Update go libraries to 55e052a #11002

Draft
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

owen-mc
Copy link
Contributor

@owen-mc owen-mc commented Oct 26, 2022

This PR updates the go libraries to 55e052a. Note that I haven't ported #8898 because I'm unsure if it will work with the go library.

@github-actions github-actions bot added the Go label Oct 26, 2022
* For more information, see
* [Locations](https://codeql.github.com/docs/writing-codeql-queries/providing-locations-in-codeql-queries/).
*/
predicate hasLocationInfo(string path, int sl, int sc, int el, int ec) {

Check warning

Code scanning / CodeQL

Missing QLDoc for parameter Warning

The QLDoc has no documentation for ec, or el, or path, or sc, or sl, but the QLDoc mentions endcolumn, and endline, and filepath, and startcolumn, and startline
@@ -139,14 +146,14 @@ predicate sourceModel(
row.splitAt(";", 4) = signature and
row.splitAt(";", 5) = ext and
row.splitAt(";", 6) = output and
row.splitAt(";", 7) = kind
exists(string k | row.splitAt(";", 7) = k and getKind(k, kind, generated))
Copy link
Contributor

@smowton smowton Oct 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
exists(string k | row.splitAt(";", 7) = k and getKind(k, kind, generated))
getKind(row.splitAt(";", 7), kind, generated)

Copy link
Contributor Author

@owen-mc owen-mc Oct 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to leave it like this so that it's the same as the other copies of ExternalFlow.qll. That will make it easier to update to the other copies when we get around to it.

@@ -158,22 +165,22 @@ predicate sinkModel(
row.splitAt(";", 4) = signature and
row.splitAt(";", 5) = ext and
row.splitAt(";", 6) = input and
row.splitAt(";", 7) = kind
exists(string k | row.splitAt(";", 7) = k and getKind(k, kind, generated))
Copy link
Contributor

@smowton smowton Oct 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
exists(string k | row.splitAt(";", 7) = k and getKind(k, kind, generated))
getKind(row.splitAt(";", 7), kind, generated)

@@ -185,14 +192,14 @@ predicate summaryModel(
row.splitAt(";", 5) = ext and
row.splitAt(";", 6) = input and
row.splitAt(";", 7) = output and
row.splitAt(";", 8) = kind
exists(string k | row.splitAt(";", 8) = k and getKind(k, kind, generated))
Copy link
Contributor

@smowton smowton Oct 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
exists(string k | row.splitAt(";", 8) = k and getKind(k, kind, generated))
getKind(row.splitAt(";", 8), kind, generated)

@@ -14,6 +14,10 @@ private module FlowSummaries {
private import semmle.go.dataflow.FlowSummary as F
}

class SummarizedCallableBase = Callable;

DataFlowCallable inject(SummarizedCallable c) { result.asCallable() = c }
Copy link
Contributor

@smowton smowton Oct 27, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused?

Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants