Skip to content
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

False positive: Looks like interpolated String detects triple quote strings #554

Open
ian-welsh opened this issue Sep 10, 2021 · 0 comments

Comments

@ian-welsh
Copy link

When a triple quoted string contains "$" characters, Scapegoat produces a false positive warning for "Looks like interpolated String". The use of triple quote Strings in Scala to pass query strings or commands to other processors/applications is quite common, in our case they are forNe04j.

example:
val someVariable = s"""MATCH (n :$METRICS_COLLECTION {_id: $$metricID}) RETURN COUNT(*) AS c"""

@mccartney mccartney changed the title False positive: Looks like interpolated String detects triple quote srtings False positive: Looks like interpolated String detects triple quote strings Sep 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants