Project

General

Profile

Actions

Architecture #21741

closed

Auto-format scala code

Added by François ARMAND about 2 years ago. Updated 8 months ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Code maintenance
Target version:
Effort required:
Name check:
To do
Fix check:
Checked
Regression:
No

Description

The default code formater is scalafmt https://scalameta.org/scalafmt/docs/configuration.html

It's integrated with intellij and there is several maven plugin for it (spotless seems well maintained and documented: https://github.com/diffplug/spotless/tree/main/plugin-maven

At first, we will try to keep scalafmt configuration simple. ZIO config can be used as a base.

Change must be done in all supported branches to avoid upmerge conflict (so, 6.2 to master).

We can even make the corresponding commit be ignored with git blame: https://akrabat.com/ignoring-revisions-with-git-blame/#store-the-ignored-commits-in-a-file


Subtasks 12 (0 open12 closed)

Architecture #21995: Auto-format scala code (7.2)ReleasedAlexis MoussetActions
Architecture #21996: Add Scala format tests on pull requestsReleasedFrançois ARMANDActions
Rudder plugins - Architecture #22002: Add Scala format tests on pull requests - pluginsRejectedFrançois ARMANDActions
Architecture #21998: Auto-format scala code (master)ReleasedAlexis MoussetActions
Rudder plugins - Architecture #21999: Auto-format scala code (plugins branch 7.1)ReleasedAlexis MoussetActions
Rudder plugins - Bug #22026: Missing auto format on plugin-private-commonReleasedAlexis MoussetActions
Rudder plugins - Architecture #22000: Auto-format scala code (plugins branch 7.2)ReleasedVincent MEMBRÉActions
Rudder plugins - Architecture #22001: Auto-format scala code (plugins branch master)ReleasedVincent MEMBRÉActions
Rudder plugins - Architecture #22005: Auto-format scala code (plugins private branch 7.1)ReleasedAlexis MoussetActions
Rudder plugins - Architecture #22006: Add spotless (plugins-private)ReleasedAlexis MoussetActions
Rudder plugins - Architecture #22007: Auto-format scala code (plugins private branch 7.2)ReleasedAlexis MoussetActions
Rudder plugins - Architecture #22009: Auto-format scala code (plugins private branch master)ReleasedAlexis MoussetActions

Related issues 1 (1 open0 closed)

Related to Rudder plugins - Bug #22004: Spotless must not be exec in plugin parentPending releaseAlexis MoussetActions
Actions

Also available in: Atom PDF