Skip to content

Conversation

michaelnebel
Copy link
Contributor

@michaelnebel michaelnebel commented Sep 1, 2025

Fix some Ql4Ql violations based on the following checks

  • ql/field-only-used-in-charpred
  • ql/could-be-cast
  • ql/counting-to-zero
  • ql/dataflow-module-naming-convention
  • ql/if-with-none
  • ql/missing-parameter-qldoc
  • ql/misspelling

DCA looks good.

@github-actions github-actions bot added the Python label Sep 1, 2025
@michaelnebel michaelnebel added the no-change-note-required This PR does not need a change note label Sep 2, 2025
@michaelnebel michaelnebel marked this pull request as ready for review September 2, 2025 07:59
@michaelnebel michaelnebel requested a review from a team as a code owner September 2, 2025 07:59
@Copilot Copilot AI review requested due to automatic review settings September 2, 2025 07:59
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 fixes various Ql4Ql violations across multiple Python CodeQL files, focusing on code quality improvements such as simplifying conditions, renaming parameters for consistency, fixing typos, and removing unused variables.

  • Simplified conditional expressions by removing unnecessary variables and if-then-else constructs
  • Fixed parameter naming inconsistencies in documentation and function signatures
  • Corrected spelling errors in comments and documentation

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
TarSlipImprov.ql Simplified exists condition by removing unused variable
FluentApiModel.qll Renamed module for naming convention compliance and added deprecated alias
FunctionObject.qll Renamed parameter for consistency and simplified function signature
ObjectInternal.qll Fixed parameter naming in documentation
Stdlib.qll Removed unused field variable and simplified condition
DataFlowPrivate.qll Fixed parameter names in documentation comments
HashlibModule.qll Fixed typo in comment
CryptographyModule.qll Simplified if-then-else conditions
CryptoArtifact.qll Fixed typo in comment

*/
deprecated module InsecureContextConfiguration = InsecureContextConfig;

private module InsecureContextFlow = DataFlow::GlobalWithState<InsecureContextConfig>;

/**
* Holds if `conectionCreation` marks the creation of a connection based on the contex
Copy link
Preview

Copilot AI Sep 2, 2025

Choose a reason for hiding this comment

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

There are spelling errors in the comment: 'conectionCreation' should be 'connectionCreation' and 'contex' should be 'context'.

Suggested change
* Holds if `conectionCreation` marks the creation of a connection based on the contex
* Holds if `connectionCreation` marks the creation of a connection based on the context

Copilot uses AI. Check for mistakes.

Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
@michaelnebel michaelnebel merged commit d3d737b into github:main Sep 2, 2025
16 checks passed
@michaelnebel michaelnebel deleted the python/ql4ql branch September 2, 2025 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-change-note-required This PR does not need a change note Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants