Skip to content

fix: resolve Medium SonarCloud findings - #549

Draft
arjun-rajappa wants to merge 1 commit into
masterfrom
fix/sonarcloud-medium-findings
Draft

arjun-rajappa wants to merge 1 commit into
masterfrom
fix/sonarcloud-medium-findings

Conversation

@arjun-rajappa

Copy link
Copy Markdown
Contributor

Why

Clears the open Medium-severity SonarCloud findings on master so the quality gate reports only issues that need a decision.

What

  • Unused parameters are prefixed with an underscore or made anonymous (S1172).
  • String-literal raise calls now raise explicit exception classes (S7815).
  • Empty rescue blocks in tests rescue StandardError and carry a comment (S108).
  • each with an early return is replaced by find/none?, and the nested if in span filtering is merged (S7840, S1066).
  • Duplicated method bodies are removed in action_view.rb and tracer_provider_test.rb (S4144).
  • FIXME comments in excon.rb and processor.rb are reworded as notes (S1134).
  • bin/aws-lambda/Dockerfile uses uppercase AS (S6476).
  • download.sh sends error messages to stderr (S7677).
  • The regexes in announce_release_on_slack.py are simplified (S6035, S6397, S8786).
  • The Slack release workflow pins httpx and PyGithub and installs binary wheels only (S8541, S8544).
  • Not addressed: the unpinned gem install lines in the Lambda Dockerfile (S8547), because pinning versions needs a decision.

No behavior change intended.

References

  • SonarCloud: Medium findings on instana_ruby-sensor, branch master

Prefix unused parameters, raise explicit exception classes, fill empty
rescue blocks, use find instead of each, and remove duplicated method
bodies. Also uppercase Dockerfile AS, send download.sh errors to stderr,
simplify the Slack announce regexes, and pin its pip dependencies.
No behavior change intended.

Signed-off-by: Arjun Rajappa <[email protected]>
@arjun-rajappa arjun-rajappa self-assigned this Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant