Uh oh!
There was an error while loading. Please reload this page.
C#: Fix some LGTM alerts on the extractor - #755
Merged
Conversation
pavgust
commented
Jan 11, 2019
Contributor
This pull request fixes 5 alerts when merging de4f592 into b0dd3df - view on LGTM.com fixed alerts:
Comment posted by LGTM.com |
hvitved
reviewed
Jan 11, 2019
| { | ||
| var other = obj as CachedEntity<Initializer>; | ||
| return obj != null && obj.GetType() == GetType() && Equals(other.symbol, symbol); | ||
| return other != null && other.GetType() == GetType() && Equals(other.symbol, symbol); |
Contributor
There was a problem hiding this comment.
Could replace other != null && other.GetType() == GetType() with other?.GetType() == GetType()
| } | ||
| } | ||
| catch (Exception ex) | ||
| catch (Exception ex) // lgtm[cs/catch-of-all-exceptions] |
Contributor
There was a problem hiding this comment.
Perhaps we should disable this query in the .lgtm.yml file instead?
ContributorAuthor
There was a problem hiding this comment.
I think leave this, because it would be in principle a good idea to receive new alerts for cs/catch-of-all-exceptions if we introduce new ones.
pavgust
commented
Jan 11, 2019
Contributor
This pull request fixes 4 alerts when merging e76eb16 into dcdbc00 - view on LGTM.com fixed alerts:
Comment posted by LGTM.com |
hvitved
approved these changes
Jan 14, 2019
nodeselector added a commit
to nodeselector/codeql
that referenced
this pull request
Aug 31, 2026
Adds the seam for making actions/unpinned-tag aware of a repository's Actions lockfile (.github/workflows/actions.lock), so that a tag ref bound to a verified commit in the lockfile is not reported as unpinned (Option A from the github#755 spike). Introduces the extensible predicate pinnedByLockfileDataModel(workflow_path, nwo, ref) in ConfigExtensions.qll, re-exported through Config.qll, with a data-extension stub in ext/config/pinned_by_lockfile.yml documenting the intended row shape. The query gains a "not pinnedByLockfile(...)" clause keyed on the workflow file's relative path. The predicate is meant to be populated by the CodeQL Actions extractor, which must parse actions.lock at database-creation time using the canonical parser github.com/github/actions-lockfile/go. That extractor work is a separate change and is not implemented here; until it ships the predicate is empty and the new clause is a no-op. A test-scoped data extension exercises the clause end to end. Part of github/actions-dispatch#755.
nodeselector added a commit
to nodeselector/codeql
that referenced
this pull request
Sep 2, 2026
Adds the seam for making actions/unpinned-tag aware of a repository's Actions lockfile (.github/workflows/actions.lock), so that a tag ref bound to a verified commit in the lockfile is not reported as unpinned (Option A from the github#755 spike). Introduces the extensible predicate pinnedByLockfileDataModel(workflow_path, nwo, ref) in ConfigExtensions.qll, re-exported through Config.qll, with a data-extension stub in ext/config/pinned_by_lockfile.yml documenting the intended row shape. The query gains a "not pinnedByLockfile(...)" clause keyed on the workflow file's relative path. The predicate is meant to be populated by the CodeQL Actions extractor, which must parse actions.lock at database-creation time using the canonical parser github.com/github/actions-lockfile/go. That extractor work is a separate change and is not implemented here; until it ships the predicate is empty and the new clause is a no-op. A test-scoped data extension exercises the clause end to end. Part of github/actions-dispatch#755.
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
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.