File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -261,6 +261,12 @@ Example:
261
261
* Details 2
262
262
* Details 3
263
263
264
+ ## Applying code style to the project
265
+
266
+ The project uses [ scalafmt] ( https://scalameta.org/scalafmt/ ) to ensure code quality which is automatically checked on
267
+ every PR. If you would like to check for any potential code style problems locally you can run ` sbt checkCodeStyle `
268
+ and if you want to apply the code style then you can run ` sbt applyCodeStyle ` .
269
+
264
270
### Ignoring formatting commits in git blame
265
271
266
272
Throughout the history of the codebase various formatting commits have been applied as the scalafmt style has evolved over time, if desired
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ commands := commands.value.filterNot { command =>
31
31
ThisBuild / reproducibleBuildsCheckResolver :=
32
32
" Apache Pekko Staging" .at(" https://repository.apache.org/content/groups/staging/" )
33
33
34
+ addCommandAlias(" verifyCodeStyle" , " scalafmtCheckAll; scalafmtSbtCheck; headerCheckAll; javafmtCheckAll" )
35
+ addCommandAlias(" applyCodeStyle" , " headerCreateAll; scalafmtAll; scalafmtSbt; javafmtAll" )
36
+
34
37
inThisBuild(Def .settings(
35
38
apiURL := {
36
39
val apiVersion = if (isSnapshot.value) " current" else version.value
You can’t perform that action at this time.
0 commit comments