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

Fix/disable auto checks #2853

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Fix/disable auto checks #2853

merged 1 commit into from
Nov 26, 2024

Conversation

rmoreliovlabs
Copy link
Contributor

Description

This PR addresses an issue where Checkstyle and Spotless were running automatically during the build process, causing interference and errors. Specifically, Checkstyle was running before the processResources task, which meant it was analyzing resources that hadn’t been processed yet. The tasks have now been disabled from running during clean build, while still being available to run manually.

Changes:

  • Disabled automatic execution of Checkstyle and Spotless during clean build.
  • Ensured Checkstyle tasks run after the processResources task.
  • Tasks are now triggered manually when needed.

Commands:

  • To check all Checkstyle violations: ./gradlew clean rskj-core:checkstyleAll
  • To check Checkstyle violations: ./gradlew clean rskj-core:checkstyleMain, ./gradlew clean rskj-core:checkstyleTest
  • To check formatting violations: ./gradlew clean rskj-core:spotlessCheck
  • To apply formatting fixes: ./gradlew clean rskj-core:spotlessApply
  • To run a clean build: ./gradlew clean build -x test

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • Tests for the changes have been added (for bug fixes / features)
  • Requires Activation Code (Hard Fork)
  • Other information:

Copy link

github-actions bot commented Nov 20, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

Copy link
Contributor

Choose a reason for hiding this comment

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

Is this file generated? What is the purpose of it? Sonar is complaining because of it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's the file after running spotlessApply. I removed this change to keep the focus on the fix in this PR

nathanieliov
nathanieliov previously approved these changes Nov 21, 2024
fmacleal
fmacleal previously approved these changes Nov 21, 2024
Copy link
Contributor

@fmacleal fmacleal left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

sonarcloud bot commented Nov 22, 2024

Copy link
Contributor

@fmacleal fmacleal left a comment

Choose a reason for hiding this comment

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

LGTM

@Vovchyk Vovchyk merged commit 14d8c9b into master Nov 26, 2024
12 checks passed
@Vovchyk Vovchyk deleted the fix/disable-auto-checks branch November 26, 2024 13:25
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.

5 participants