Skip to content

integrade pmd and fix level 1 of errors#29

Open
IvanKulik-sm wants to merge 3 commits into
mainfrom
integrate-pmd
Open

integrade pmd and fix level 1 of errors#29
IvanKulik-sm wants to merge 3 commits into
mainfrom
integrate-pmd

Conversation

@IvanKulik-sm

@IvanKulik-sm IvanKulik-sm commented Jul 22, 2025

Copy link
Copy Markdown
Contributor

Pull Request type

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • WHOSUSING.md
  • Other (please describe):

NOTE: Please remember to run ./gradlew spotlessApply to fix any format violations.

Changes in this PR

Describe the new behavior from this PR, and why it's needed
Issue #

Alternatives considered

Describe alternative implementation you have considered

Comment thread build.gradle
pmd {
consoleOutput = true
ruleSetFiles = files("$rootDir/config/pmd/custom-ruleset.xml")
rulesMinimumPriority = 1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I hope later to increase it to at least 3

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I also plan to add it to PR pipelines later. Together with spotlessCheck

@codecov

codecov Bot commented Jul 22, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...tflix/conductor/client/config/PropertyFactory.java 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ Complexity Δ
.../netflix/conductor/common/metadata/tasks/Task.java 90.14% <100.00%> (-0.14%) 66.00 <2.00> (ø)
...om/netflix/conductor/common/utils/SummaryUtil.java 0.00% <ø> (ø) 0.00 <0.00> (ø)
...tflix/conductor/client/config/PropertyFactory.java 82.60% <0.00%> (ø) 14.00 <0.00> (ø)

... and 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

private boolean isJsonSerializationEnabled;

@Deprecated(forRemoval = true)
public void init() {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I’m having trouble understanding the purpose of this class — most of its code seems to be unreachable, and all the booleans are private and unused.

Does anyone happen to remember what the original intention behind this class was, or where it might have been copied from? f4d77a5#diff-cece0d808b9662b571949c1de8b7f123b0f6da6dcea16ac0c46e95a2868cb744

@KonstantinVoytovich-sm KonstantinVoytovich-sm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Left minor comments

Comment thread config/pmd/custom-ruleset.xml
Comment thread config/spotbugs/exclude.xml

@KonstantinVoytovich-sm KonstantinVoytovich-sm left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

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