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

Merge codeql-go repository into codeql #8631

Merged
merged 2,539 commits into from
May 23, 2022
Merged

Merge codeql-go repository into codeql #8631

merged 2,539 commits into from
May 23, 2022

Conversation

cklin
Copy link
Contributor

@cklin cklin commented Mar 31, 2022

This PR will be merged on 2022-05-23
For background, see announcement github/codeql-go#741


This PR merges the github/codeql-go repository into github/codeql under the go directory.

The repository merge involves the following steps:

  1. Push github/codeql-go:main into github/codeql as a new branch B
  2. Move everything in the branch B into the go directory
  3. Merge github/codeql:main into the branch B
  4. Consolidate and apply fixes as necessary

The cklin/merge-codeql-go-prep branch contains steps 1–3.
The cklin/merge-codeql-go branch contains steps 1–4.

The following link shows only the commits in step 4, which is the more interesting part:
cklin/merge-codeql-go-prep...cklin/merge-codeql-go

smowton and others added 30 commits December 13, 2021 10:36
Improve performance: join-order AllocationSizeOverflow's source and use `matches` not `regexpFind`
…ns-for-builtin-functions

Refactor isVariadic helper functions
Fix incorrect type name in database/sql model
Update dataflow libraries and add support for CSV summary flow
Add missing tests for DatabaseSql function models
Release preparation for version 2.7.4
…zers

Fix sanitization by strings.Replace[All] in go/unsafe-quoting and go/log-injection
In future we could try harder to find out whether you're Fprintf'ing to stdout, a file named xyz.log etc, but for now this causes Fprintf'ing to an HTTP writer to be mistaken for log-injection rather than just XSS.
Post-release preparation for codeql-cli-2.7.4
various automatic patches applied to codeql-go
Release preparation for version 2.7.5
@cklin cklin force-pushed the cklin/merge-codeql-go-prep branch from cf7a57d to 097d518 Compare May 20, 2022 17:24
@cklin cklin requested review from a team as code owners May 20, 2022 17:24
@cklin cklin force-pushed the cklin/merge-codeql-go branch from b6ff2a0 to 7f96319 Compare May 20, 2022 17:24
@cklin cklin changed the base branch from cklin/merge-codeql-go-prep to main May 20, 2022 17:27
@cklin cklin closed this May 20, 2022
@cklin cklin reopened this May 20, 2022
/**
* Gets a child node of this node.
*/
AstNode getAChild() { result = getChild(_) }

Check warning

Code scanning / CodeQL

Using implicit `this`

Use of implicit `this`.
/**
* Gets the number of child nodes of this node.
*/
int getNumChild() { result = count(getAChild()) }

Check warning

Code scanning / CodeQL

Using implicit `this`

Use of implicit `this`.
AstNode getUniquelyNumberedChild(int index) {
result =
rank[index + 1](AstNode child, string kind, int i |
child = getChildOfKind(kind, i)

Check warning

Code scanning / CodeQL

Using implicit `this`

Use of implicit `this`.

/** Gets the parent node of this AST node, but without crossing function boundaries. */
private AstNode parentInSameFunction() {
result = getParent() and

Check warning

Code scanning / CodeQL

Using implicit `this`

Use of implicit `this`.
}

/** Gets the innermost function definition to which this AST node belongs, if any. */
FuncDef getEnclosingFunction() { result = getParent().parentInSameFunction*() }

Check warning

Code scanning / CodeQL

Using implicit `this`

Use of implicit `this`.
Copy link
Collaborator

@adityasharad adityasharad left a comment

Choose a reason for hiding this comment

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

Good to go. The full diff is too large for the UI, but the partial diff looks reasonable, the contents of the go folder are what I expect, and relevant tests are passing. We can keep an eye out for follow-up cleanup.

@cklin cklin merged commit d3ebc81 into main May 23, 2022
@cklin cklin deleted the cklin/merge-codeql-go branch May 23, 2022 16:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.