We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See typelevel/cats#4116
Configuration:
version=3.3.3 align.openParenCallSite = true align.openParenDefnSite = true maxColumn = 120 continuationIndent.defnSite = 2 assumeStandardLibraryStripMargin = true danglingParentheses.preset = true rewrite.rules = [AvoidInfix, SortImports, RedundantParens, SortModifiers] docstrings = JavaDoc newlines.afterCurlyLambda = preserve docstrings.style = keep docstrings.oneline = unfold runner.dialect = scala213source3 fileOverride { "glob:**/*.sbt" { runner.dialect = sbt1 } "glob:**/src/{main,test}/scala-2.12/**" { runner.dialect = scala212source3 } "glob:**/src/{main,test}/scala-3.x/**" { runner.dialect = scala3 } } project.excludeFilters = [ "scalafix/*" ]
Scalafmt formats code in boilerplate blocks which is not expected to happen. Furthermore, the formatted results look pretty ugly: the formatting breaks block margins: https://github.com/typelevel/cats/pull/4116/files?diff=unified&w=0#diff-dedd06aeff4542c5b99c68ad8ee7fecde2588c7adba68944521cda08e709aa83L153-R154
The boilerplate code blocks should not be formatted by default since the result code can be very different from the source template.
Or at least there should be an option to disable it in configs.
The text was updated successfully, but these errors were encountered:
what is boilerplate code?
Sorry, something went wrong.
@kitbellew I mean code templates for sbt-boilerplate plug-in
Сергей, я понятия не имею, что это такое. с точки зрения scala, что это за конструкция?
Successfully merging a pull request may close this issue.
See typelevel/cats#4116
Configuration:
Problem
Scalafmt formats code in boilerplate blocks which is not expected to happen.
Furthermore, the formatted results look pretty ugly: the formatting breaks block margins:
https://github.com/typelevel/cats/pull/4116/files?diff=unified&w=0#diff-dedd06aeff4542c5b99c68ad8ee7fecde2588c7adba68944521cda08e709aa83L153-R154
Expectation
The boilerplate code blocks should not be formatted by default since the result code can be very different from the source template.
Or at least there should be an option to disable it in configs.
The text was updated successfully, but these errors were encountered: