Skip to content

Conversation

@skyflow-himanshu
Copy link
Collaborator

Why:
Following the Node SDK linting audit and refactor, this ticket focuses on applying the same linting standards and best practices across Java SDK v2.
The goal is to ensure consistent use of constants over hardcoded values across Java SDK v2, improving maintainability and readability.

Goal:
Update linting rules to discourage hardcoded literals where constants should be used.
Refactor existing code to replace hardcoded values with well-defined constants.

@github-actions
Copy link

Gitleaks Findings: No secrets detected. Safe to proceed!

@github-actions
Copy link

Semgrep Findings: Issues with Error level severity are found (Error is Highest severity in Semgrep), Please resolve the issues before merging.

@skyflow-himanshu skyflow-himanshu changed the base branch from main to release/26.1.5 January 30, 2026 07:15

import com.skyflow.utils.Constants;

@SuppressWarnings("checkstyle:MultipleStringLiterals")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why did we add SuppressWarnings annotation here ? What warnings are we suppressing ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

as the file constains strings, and checkstyle linter will catch them, so added SuppressWarnings to avoid it catching

<consoleOutput>true</consoleOutput>

<excludes>**/generated/**</excludes>
<excludes>**/generated/**,**/logs/**</excludes>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are we excluding logs ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

as log constains strings, and checkstyle linter will catch them, so excluded logs to avoid it catching

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.

4 participants