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

feat: add KtlintModule object #3961

Merged
merged 4 commits into from
Nov 14, 2024
Merged

feat: add KtlintModule object #3961

merged 4 commits into from
Nov 14, 2024

Conversation

myyk
Copy link
Contributor

@myyk myyk commented Nov 14, 2024

Add functionality to be able to run:

./mill mill.kotlinlib.ktlint.KtlintModule/

The edits to add ktlint into the runtime deps, wasn't necessary to make it work, I was just following what was there for ktfmt. Should I keep that or remove it?

@myyk myyk mentioned this pull request Nov 14, 2024
3 tasks
@lihaoyi
Copy link
Member

lihaoyi commented Nov 14, 2024

Looks good to me, just need to run ./mill __.fix to autofix it and I'll merge it

@lihaoyi
Copy link
Member

lihaoyi commented Nov 14, 2024

@myyk pushed a commit for the autofix, will merge if green

@lihaoyi lihaoyi merged commit 4a07b2c into com-lihaoyi:main Nov 14, 2024
25 checks passed
@lefou lefou added this to the 0.12.3 milestone Nov 14, 2024
@lihaoyi lihaoyi mentioned this pull request Nov 14, 2024
lihaoyi added a commit that referenced this pull request Nov 14, 2024
Rebootstraps on top of #3961
which we need for #3923
@myyk myyk deleted the ktlintmodule branch November 14, 2024 15:09
lihaoyi added a commit that referenced this pull request Nov 15, 2024
* [x] Needs #3919 as this builds on it
* [x] Update this to use #3961, switching to `KtlintModule`
* [x] Needs #3966 to disable ktlint for some files

Last change I think needed for #3829

Overview:
* Changes `KtfmtModule` to set the error code when there's changes like
is true of the other formatters.
* Some simplifications were made to the `example/package.mill` based on
similarities with Java/Kotlin.
* Files were formatted
* CI was updated

---------

Co-authored-by: Li Haoyi <haoyi.sg@gmail.com>
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