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

Adopt scalafmt for Scala code style #920

Merged
merged 9 commits into from
Dec 12, 2023
Merged

Adopt scalafmt for Scala code style #920

merged 9 commits into from
Dec 12, 2023

Conversation

Baltoli
Copy link
Contributor

@Baltoli Baltoli commented Dec 7, 2023

In runtimeverification/k#3841, we adopted the scalafmt tool to auto-format the Scala code in the K frontend. This PR adopts a precisely identical formatting setup for the LLVM backend's Scala code.

@Baltoli
Copy link
Contributor Author

Baltoli commented Dec 7, 2023

Blocked on the maven dependency update job being out of date: #921

@Baltoli Baltoli marked this pull request as ready for review December 11, 2023 09:44
Copy link
Collaborator

@Robertorosmaninho Robertorosmaninho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM! I would expect @Scott-Guest to approvals for a more precise review of the config files!

matching/pom.xml Outdated Show resolved Hide resolved
matching/pom.xml Outdated Show resolved Hide resolved
@@ -0,0 +1,27 @@
version = 3.7.17
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with duplicating the files for now, but we should consider pulling in .scalafmt.conf from the parent project in a follow up PR.

https://stackoverflow.com/questions/17492622/specify-common-resources-in-a-multi-module-maven-project

Copy link
Contributor

@Scott-Guest Scott-Guest left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall, but see my comments about the property and dependency declarations

@Baltoli
Copy link
Contributor Author

Baltoli commented Dec 12, 2023

Thanks @Scott-Guest - I didn't realise Maven worked like that!

@Baltoli
Copy link
Contributor Author

Baltoli commented Dec 12, 2023

I have addressed the duplicated configuration elements; going to merge this now.

@rv-jenkins rv-jenkins merged commit 14c372e into master Dec 12, 2023
6 checks passed
@rv-jenkins rv-jenkins deleted the scalafmt branch December 12, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants