Skip to content

Conversation

@xterao
Copy link
Collaborator

@xterao xterao commented Apr 9, 2025

Add the bind variables within function parameters to the inspection that checks for bind variable definitions.

@xterao xterao requested a review from Copilot April 9, 2025 01:04
@xterao xterao self-assigned this Apr 9, 2025
@github-actions github-actions bot added the fix Bug fixes label Apr 9, 2025
@xterao xterao linked an issue Apr 9, 2025 that may be closed by this pull request
Copy link
Contributor

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.

Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.

Files not reviewed (2)
  • src/test/testData/src/main/resources/META-INF/doma/example/dao/DaoMethodVariableInspectionTestDao/noErrorWhenUsedInFunctionParameters.sql: Language not supported
  • src/test/testData/src/main/resources/META-INF/doma/example/dao/EmployeeSummaryDao/bindVariableInFunctionParameters.sql: Language not supported

@xterao xterao requested a review from Copilot April 9, 2025 01:05
Copy link
Contributor

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.

Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.

Files not reviewed (2)
  • src/test/testData/src/main/resources/META-INF/doma/example/dao/DaoMethodVariableInspectionTestDao/noErrorWhenUsedInFunctionParameters.sql: Language not supported
  • src/test/testData/src/main/resources/META-INF/doma/example/dao/EmployeeSummaryDao/bindVariableInFunctionParameters.sql: Language not supported

@xterao xterao force-pushed the fix/inspection-in-function-parameters branch from 179690d to 41b7e80 Compare April 9, 2025 01:07
@xterao xterao force-pushed the fix/inspection-in-function-parameters branch from 41b7e80 to 07b3113 Compare April 9, 2025 01:07
@xterao xterao requested a review from Copilot April 9, 2025 01:08
Copy link
Contributor

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.

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

Files not reviewed (2)
  • src/test/testData/src/main/resources/META-INF/doma/example/dao/DaoMethodVariableInspectionTestDao/noErrorWhenUsedInFunctionParameters.sql: Language not supported
  • src/test/testData/src/main/resources/META-INF/doma/example/dao/EmployeeSummaryDao/bindVariableInFunctionParameters.sql: Language not supported
Comments suppressed due to low confidence (1)

src/test/kotlin/org/domaframework/doma/intellij/inspection/sql/ParameterDefinedTest.kt:84

  • The test for bindVariableInFunctionParameters seems to be incomplete as it does not invoke myFixture.testHighlighting. Consider adding a call to myFixture.testHighlighting to validate that the inspection works correctly for bind variable definitions in function parameters.
if (sqlFile == null) return

@xterao xterao merged commit bbe3094 into main Apr 9, 2025
4 checks passed
@xterao xterao deleted the fix/inspection-in-function-parameters branch April 9, 2025 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Code Inspection in Function Parameters

2 participants