-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
chore: apply spotless precommit #35054
Conversation
WalkthroughThe recent updates refine the Changes
Assessment against linked issues
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (2)
- app/client/.husky/check-staged-files.sh (1 hunks)
- app/server/pom.xml (1 hunks)
Files skipped from review due to trivial changes (1)
- app/server/pom.xml
Additional comments not posted (6)
app/client/.husky/check-staged-files.sh (6)
12-12
: Good practice: Informing the user about the ongoing process.The echo statement enhances user feedback by indicating that Spotless is being applied to server files.
14-14
: Correct change: Applying Spotless instead of just checking.Replacing
mvn spotless:check
withmvn spotless:apply
aligns with the PR objective of automating code formatting tasks.
15-15
: Good practice: Providing clear feedback on success.The echo statement informs the user about the successful application of Spotless, enhancing the clarity of the script.
16-16
: Necessary change: Staging the changes made by Spotless.Adding
git add .
ensures that the changes made by Spotless are staged for commit.
19-19
: Improvement: Clearer failure message.The updated failure message accurately indicates that Spotless apply failed, which aids in debugging.
24-24
: Good practice: Informing the user about skipped checks.The echo statement enhances user feedback by indicating that server-side checks are being skipped.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- app/client/.husky/check-staged-files.sh (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- app/client/.husky/check-staged-files.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Files selected for processing (1)
- app/client/.husky/check-staged-files.sh (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- app/client/.husky/check-staged-files.sh
Description
This change will remove applying spotless when compiling code and instead will apply spotless in the precommit hook.
This will lead to faster build times and DX improvement as developer need not to manually run spotless anymore.
Fixes #35056
Automation
/test sanity
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/10040567648
Commit: 5872049
Cypress dashboard.
Tags:
@tag.Sanity
Spec:
Mon, 22 Jul 2024 12:41:36 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
Chores