-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adopt scalafmt for Scala code style (#3841)
Closes #3827. This PR adopts [scalafmt](https://scalameta.org/scalafmt/) for Scala code formatting. Specifically, - Both `google-java-format` and `scalafmt` are now handled by the `spotless` Maven plugin - Run `mvn spotless:check` to check formatting (or `mvn verify`) - Run `mvn spotless:apply` to auto-format all source files (or `mvn process-sources` or `mvn package`) - CI runs `mvn spotless:check` to enforce formatting Intellij has built-in support for `scalafmt`. Enable it by opening `Settings > Editor > Code Style > Scala` and setting - Formatter: `Scalafmt` - Configuration: `k/src/main/config/.scalafmt.conf` The documentation on the different configuration options can be found here: https://scalameta.org/scalafmt/docs/configuration.html. Currently, I've formatted with my preferred settings, but committed two versions: - [506616c](506616c), which does not enforce vertical alignment - [602fd2e](602fd2e), which does enforce vertical alignment I'd appreciate if everyone who works on the frontend could skim through the files and let me know your thoughts! --------- Co-authored-by: rv-jenkins <[email protected]> Co-authored-by: Bruce Collie <[email protected]> Co-authored-by: Jost Berthold <[email protected]>
- Loading branch information
1 parent
04ebf03
commit 4269d27
Showing
56 changed files
with
2,888 additions
and
1,988 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
k-distribution/src/test/scala/org/kframework/backend/kore/NoAppendIT.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.