Thanks to visit codestin.com
Credit goes to github.com

Skip to content

stringbean/scalafmt-report

Repository files navigation

scalafmt-report

Takes the errors generated by scalafmt when run in diff mode and converts it into a format that can be parsed by Github Actions.

This tool is used by scalafmt-action to provide a full scalafmt solution for Github Actions.

Usage

Call scalafmt-report with the filename of the errors from scalafmt and the base path of the source code:

scalafmt-report <diff> <path-to-source>

The errors will then be outputted as Github Actions error messages:

::error file=src/main/scala/com/example/Main.scala,line=83::Incorrectly formatted line(s)
::error file=src/main/scala/com/example/service/WidgetService.scala,line=15::Incorrectly formatted line(s)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages