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

Update scalafmt #252

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mdedetrich
Copy link

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

on:
pull_request:
branches: ['**']

env:
Copy link
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
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

docstrings.style = AsteriskSpace
align.tokens."+" = [
{code = ":=", owner = "Term.ApplyInfix"}
]
rewrite.rules = [RedundantBraces, RedundantParens]

fileOverride {
Copy link
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

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