-
Notifications
You must be signed in to change notification settings - Fork 521
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 #3394: Ktlint Custom RuleSet #5558
base: develop
Are you sure you want to change the base?
Conversation
@adhiamboperes PTAL, i will integrate the custom rules into scripts too. |
Hi @manas-yu, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue. |
@adhiamboperes The best solution to this issue seems to be creating a custom ruleset for KtLint. However, generating the custom rules JAR file will require running the command |
Fix: #3394
This PR introduces two key features:
Custom Ruleset Provider: A new custom ruleset provider is implemented, allowing the integration of custom Ktlint rules.
KDocFormatRule: The
KDocFormatRule
is added to enforce correct closing syntax in KDoc comments.To create the JAR file for the custom ruleset:
gradlew.bat :utility:customRulesJar
Use the custom ruleset with Ktlint by executing:
ktlint --ruleset=../oppia-android-tools/custom-ktlint-rules.jar "path/to/file"
Essential Checklist