v3.1.0
Pull Requests: required version and dialect
The version
and runner.dialect
fields are now required in scalafmt configuration.
- Cli: print the type of scalafmt runner for debug (#2879) @kitbellew
- ScalafmtConfig: do not read version from a preset (#2875) @kitbellew
- Cli: make sure version is explicitly specified (#2873) @kitbellew
- ScalafmtConfig: require
version
in a config file (#2843) @kitbellew - ScalafmtDynamic: use real build version as current (#2839) @kitbellew
- Scalafmt: make explicit dialect a required field (#2835) @kitbellew
- ScalafmtVersion: remove unused group from regex (#2836) @kitbellew
Pull Requests: move {File,Git}Ops into sysops package
Various file and git utilities have been moved to the new scalafmt-sysops
package.
- MicroBenchmark: use the right package for FileOps (#2876) @kitbellew
- scalafmt-sysops: add a new module (#2871) @kitbellew
- GitOps: move finding config file and files to format (#2849) @kitbellew
- GitOps: define a factory trait to construct (#2848) @kitbellew
Pull Requests: use nio.Path instead of io.File
- FileOps: read from files and URLs separately (#2872) @kitbellew
- FileOps: implement listFiles using Files.find (#2860) @kitbellew
- FileOps: split .getFile into separate methods (#2870) @kitbellew
- InputMethod: use nio.Path instead of String (#2869) @kitbellew
- AbsoluteFile: use nio.Path instead of io.File (#2867) @kitbellew
- AbsoluteFile: define isDirectory/mkdir/delete (#2866) @kitbellew
- AbsoluteFile: add apply and conditional from (#2865) @kitbellew
- AbsoluteFile: avoid using .jfile (#2864) @kitbellew
- Absolute: use .path instead of .jfile.toPath (#2863) @kitbellew
- AbsoluteFile: .path returns Path, .toString returns String (#2862) @kitbellew
- FileOps: implement listFiles to return Seq[Path] (#2861) @kitbellew
- AbsoluteFile: turn into a final class (#2853) @kitbellew
- AbsoluteFile: move some methods from FileOps (#2859) @kitbellew
- AbsoluteFile: remove fromFile (#2858) @kitbellew
- FileOps: isRegularFile takes nio.Path, not io.File (#2857) @kitbellew
- FileOps: getFile returns nio.Path, not io.File (#2856) @kitbellew
- CliOptions: use nio.Path instead of io.File (#2855) @kitbellew
- FileOps: read/write using nio.Path (#2854) @kitbellew
- Config: use nio.Path instead of io.File (#2851) @kitbellew
Pull Requests: other
- Router: fix idempotence of wrapped short comments (#2877) @kitbellew
- TokenMeta: add convenience check hasNL (#2878) @kitbellew
- RedundantBraces: insert
=
if removing{
in secondary ctor with procedure syntax (#2874) @kitbellew - Remove unused code (#2868) @kitbellew
- ScalaFile: remove, unused (#2852) @kitbellew
- ScalafmtReflect: don't pass classloader to Config (#2844) @kitbellew
- IndentOperator: rename
include
toincludeRegex
(#2841) @kitbellew - Config: remove unused path parameter to fromConf (#2838) @kitbellew
- ScalafmtDynamic: add config path to unknown errors (#2837) @kitbellew