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 Ruby 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 08:04
@michaelnebel michaelnebel requested a review from a team as a code owner September 2, 2025 08:04
@Copilot Copilot AI review requested due to automatic review settings September 2, 2025 08:04
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 several Ql4Ql violations related to code quality and consistency in the Ruby CodeQL library. The changes primarily address documentation improvements, variable scoping optimizations, and spelling corrections.

  • Fixed parameter documentation references to use correct variable names
  • Corrected spelling from "modelling" to "modeling" in API documentation
  • Optimized variable scoping by moving declarations closer to their usage

Reviewed Changes

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

Show a summary per file
File Description
ruby/ql/lib/codeql/ruby/security/ImproperMemoizationQuery.qll Updated parameter documentation to reference correct variable names
ruby/ql/lib/codeql/ruby/regexp/internal/ParseRegExp.qll Fixed parameter name reference in documentation from snake_case to camelCase
ruby/ql/lib/codeql/ruby/frameworks/http_clients/NetHttp.qll Moved connectionNode variable declaration into exists clause for better scoping
ruby/ql/lib/codeql/ruby/frameworks/http_clients/Excon.qll Moved connectionNode variable declaration into exists clause and fixed parentheses
ruby/ql/lib/codeql/ruby/frameworks/core/Kernel.qll Improved documentation to specify what the predicate holds for
ruby/ql/lib/codeql/ruby/ApiGraphs.qll Corrected spelling from "modelling" to "modeling"

@michaelnebel michaelnebel merged commit 7ae5d40 into github:main Sep 2, 2025
27 checks passed
@michaelnebel michaelnebel deleted the ruby/ql4ql branch September 2, 2025 10:04
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 Ruby
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants