Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Java: Add query to detect special characters in string literals #19875

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

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

Conversation

tamasvajk
Copy link
Contributor

@tamasvajk tamasvajk commented Jun 25, 2025

This pull request introduces a new query to detect non-explicit control and whitespace characters in Java literals, improving code readability and reducing potential bugs caused by invisible or hard-to-recognize characters.

@@ -0,0 +1 @@
Violations of Best Practice/SpecialCharactersInLiterals/NonExplicitControlAndWhitespaceCharsInLiterals.ql

Check warning

Code scanning / CodeQL

Query test without inline test expectations Warning test

Query test does not use inline test expectations.
@tamasvajk tamasvajk force-pushed the quality/spec_chars branch 2 times, most recently from e87b1ae to e1b966e Compare June 25, 2025 11:48
@tamasvajk tamasvajk force-pushed the quality/spec_chars branch from e1b966e to 9db9200 Compare June 25, 2025 12:15
@tamasvajk tamasvajk added the no-change-note-required This PR does not need a change note label Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Java 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