-
Notifications
You must be signed in to change notification settings - Fork 55
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
Update scalafmt #252
base: master
Are you sure you want to change the base?
Update scalafmt #252
Conversation
with: | ||
version: '3.4.3' | ||
version: '3.7.2' | ||
arguments: '--list --mode diff-ref=origin/master' |
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.
This change means that the scalafmt github action check will only run on files that have actually changed (according to origin/master
) rather than checking that the entire codebase is formatting.
on: | ||
pull_request: | ||
branches: ['**'] | ||
|
||
env: |
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.
No reason to have a token
jobs: | ||
build: | ||
name: Code is formatted | ||
strategy: |
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.
Matrix here is pointless, we will always run this on ubuntu-latest
docstrings.style = AsteriskSpace | ||
align.tokens."+" = [ | ||
{code = ":=", owner = "Term.ApplyInfix"} | ||
] | ||
rewrite.rules = [RedundantBraces, RedundantParens] | ||
|
||
fileOverride { |
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.
This is no longer needed because scalafmt now provides a project.layout = standardConvention
which applies the correct Scala dialects according to sbt's folder layout as long as its the standard layout (which in this projects case it is).
This PR updates scalafmt which also brings in some improvements (noted below).