Skip to content

Commit

Permalink
Merge pull request #302 from ie3-institute/df/#301-Spotless-automatic…
Browse files Browse the repository at this point in the history
…ally-add-trailing-commas

Spotless automatically add trailing commas
  • Loading branch information
sebastian-peter authored Dec 2, 2024
2 parents 3fe33fc + 57721b6 commit 21df118
Show file tree
Hide file tree
Showing 67 changed files with 677 additions and 677 deletions.
5 changes: 4 additions & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
version = 2.7.5
version = 3.7.3
runner.dialect = scala213

rewrite.trailingCommas.style = multiple
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Change from quantities to squants [#257](https://github.com/ie3-institute/MobilitySimulator/issues/257)
- MobSim informs EVCS in SIMONA about estimated next arrivals [#254](https://github.com/ie3-institute/MobilitySimulator/issues/254)
- Updated `Gradle` to version V8.10 [#282](https://github.com/ie3-institute/MobilitySimulator/issues/282)
- Changed Spotless to format with trailing commas [#301](https://github.com/ie3-institute/MobilitySimulator/issues/301)

### Fixed
- Adapting to SIMONA-API changes introduced by [PR#37](https://github.com/ie3-institute/simonaAPI/pull/37) [[#7](https://github.com/ie3-institute/MobilitySimulator/issues/7)]
Expand Down
6 changes: 1 addition & 5 deletions gradle/scripts/spotless.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,18 @@ spotless {
licenseHeader "#!groovy\n\n" + ie3LicHead, "////////////////////////////////"
// the Groovy Eclipse formatter extends the Java Eclipse formatter,
// so it formats Java files by default (unless `excludeJava` is used).
// FIXME rolled back greclipse version https://github.com/diffplug/spotless/issues/1860
greclipse('4.27')
indentWithSpaces 2
}

groovyGradle {
// same as groovy, but for .gradle (defaults to '*.gradle')
target '*.gradle', 'gradle/scripts/*.gradle'
// FIXME rolled back greclipse version https://github.com/diffplug/spotless/issues/1860
greclipse('4.27')
indentWithSpaces 2
}

//sets a license header, removes unused imports and formats conforming to the scala fmt formatter
scala {
scalafmt()
scalafmt().configFile(".scalafmt.conf")
licenseHeader ie3LicHead, "package.*\\n"
}

Expand Down
Loading

0 comments on commit 21df118

Please sign in to comment.