-
Notifications
You must be signed in to change notification settings - Fork 31
fix(linting): fixed linting to now handle for XML and JAVA #73
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
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughThe Changes
Poem
π Recent review detailsConfiguration used: CodeRabbit UI π Files selected for processing (1)
π§ Files skipped from review as they are similar to previous changes (1)
β° Context from checks skipped due to timeout of 90000ms (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. πͺ§ TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. 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 using PR comments)
Other keywords and placeholders
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
π§Ή Nitpick comments (1)
package.json (1)
15-17: Review the updated lint-staged file pattern.The pattern
src/**/*.{ts,js}now only includes.tsand.jsfiles.
- Have CSS and HTML files been intentionally removed from linting?
- Should we also support
.tsxand.jsx(and perhaps other extensions) to avoid unlinted code?
π Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
β Files ignored due to path filters (1)
checkstyle.jaris excluded by!**/*.jar
π Files selected for processing (1)
package.json(1 hunks)
β° Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: Analyze (java)
π Additional comments (2)
package.json (2)
18-20: Validate the Checkstyle command and placeholder syntax.The entry
"*.java": [ "java -jar checkstyle.jar -c checkstyle.xml {{files}}" ],may not resolve
{{files}}correctly under lint-staged. Lint-staged normally appends file paths automatically. Please confirm:
- If you need explicit placeholders, use
{}instead of{{files}}, or- Remove the placeholder and let lint-staged pass the paths by default.
Also verify that
checkstyle.jarandcheckstyle.xmlare correctly located relative to the repo root.
21-23: Ensure correctxmllintinvocation for XML files.The command
"*.xml": [ "xmllint --noout {{files}}" ]uses
{{files}}, which lint-staged may not recognize. You can rely on lint-staged to append file paths automatically by using:"xmllint --noout"Additionally, confirm that
xmllintis installed on all target environments (local and CI).
| * along with this program. If not, see https://www.gnu.org/licenses/. | ||
| */ | ||
| package com.wipro.fhir.controller.generateresource; | ||
| package com.wipro.fhir.controller.generateresource; |
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.
@Zapper9982 what is this change about?
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.
Oh! I was just checking if the linting was working Java files. I guess I forgot to uncommit that change , lemme fix it
checkstyle.jar
Outdated
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.
@Zapper9982 let's not commit binary files.
|



π Description
JIRA ID:
Updated the linting to handle .java and .xml files
Checkstyle.jarwhich allows linting for .java filesxmllintfor linting xml filesβ Type of Change
Screenshots
Summary by CodeRabbit