Skip to content

Update scalafmt#252

Open
mdedetrich wants to merge 1 commit intoiheartradio:masterfrom
mdedetrich:update-scalafmt
Open

Update scalafmt#252
mdedetrich wants to merge 1 commit intoiheartradio:masterfrom
mdedetrich:update-scalafmt

Conversation

@mdedetrich
Copy link
Copy Markdown

This PR updates scalafmt which also brings in some improvements (noted below).

with:
version: '3.4.3'
version: '3.7.2'
arguments: '--list --mode diff-ref=origin/master'
Copy link
Copy Markdown
Author

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.

pull_request:
branches: ['**']

env:
Copy link
Copy Markdown
Author

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:
Copy link
Copy Markdown
Author

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

Comment thread .scalafmt.conf
]
rewrite.rules = [RedundantBraces, RedundantParens]

fileOverride {
Copy link
Copy Markdown
Author

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).

@coveralls
Copy link
Copy Markdown

coveralls commented Mar 18, 2023

Coverage Status

Coverage: 91.975% (-2.8%) from 94.798% when pulling 381b122 on mdedetrich:update-scalafmt into 6d0e09c on iheartradio:master.

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.

2 participants