Skip to content

Conversation

@lventura-codacy
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings December 5, 2025 13:51
@lventura-codacy lventura-codacy requested a review from a team December 5, 2025 13:52
@lventura-codacy lventura-codacy merged commit 7b527a6 into master Dec 5, 2025
4 of 5 checks passed
@codacy-production
Copy link

Codacy's Analysis Summary

0 new issue (≤ 1 medium issue)
0 new security issue (≤ 0 issue)
0 complexity

Review Pull Request in Codacy →

AI Reviewer available: add the codacy-review label to get contextual insights without leaving GitHub.

1 similar comment
@codacy-production
Copy link

Codacy's Analysis Summary

0 new issue (≤ 1 medium issue)
0 new security issue (≤ 0 issue)
0 complexity

Review Pull Request in Codacy →

AI Reviewer available: add the codacy-review label to get contextual insights without leaving GitHub.

Copy link

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 addresses a security concern by removing sensitive API token information from log statements. The change prevents the API token from being exposed in application logs, which could lead to unauthorized access if logs are compromised.

  • Removed API token from the debug log statement in Api.kt
  • Added .DS_Store to .gitignore for better macOS compatibility

Reviewed changes

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

File Description
src/main/kotlin/com/codacy/intellij/plugin/services/api/Api.kt Removed API token from println statement while preserving the URL for debugging purposes
.gitignore Added .DS_Store to ignore macOS system files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

config.init()
val url = URL("$baseUrl/$endpointUrl")
println("URL: $url TOKEN: $apiToken")
println("Request URL: $url")
Copy link

Copilot AI Dec 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using println for logging in production code is not recommended. Consider using the Logger class (already imported in this file) instead:

Logger.info("Request URL: $url")

This ensures consistent logging throughout the application and allows better control over log levels and output.

Suggested change
println("Request URL: $url")
Logger.info("Request URL: $url")

Copilot uses AI. Check for mistakes.
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.

3 participants