Skip to content

Shared: Use final aliases in ConcentsShared.qll #20172

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Aug 5, 2025

#19984 follow-up.

@hvitved hvitved force-pushed the shared/concepts-final-aliases branch from 9bb87da to 11dcd90 Compare August 5, 2025 12:54
@github-actions github-actions bot added the JS label Aug 5, 2025
@hvitved hvitved marked this pull request as ready for review August 5, 2025 19:00
@hvitved hvitved requested a review from a team as a code owner August 5, 2025 19:00
@Copilot Copilot AI review requested due to automatic review settings August 5, 2025 19:00
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR refactors CodeQL concept classes to use final type aliases instead of wrapper classes that simply extend and re-expose their base functionality. This follows up on a previous pull request (#19984) by applying the same pattern to ConceptsShared.qll.

  • Replaces verbose wrapper classes with concise final type aliases
  • Removes redundant method forwarding code
  • Maintains the same API surface while simplifying implementation

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
shared/concepts/codeql/concepts/ConceptsShared.qll Converts CryptographicOperation and Http::Client::Request from wrapper classes to final type aliases
javascript/ql/lib/semmle/javascript/Concepts.qll Converts CryptographicOperation from wrapper class to simple type alias

@hvitved hvitved added the no-change-note-required This PR does not need a change note label Aug 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JS no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant