-
Type: Task
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Component/s: CI/CD
-
Release Notes Summary:The Nuxeo code formatting is now checked as part of our validation tests
-
Epic Link:
-
Tags:
-
Team:PLATFORM
-
Sprint:nxplatform #120, nxplatform #121
-
Story Points:5
The Spotless Maven Plugin could help us to maintain code formatting within Nuxeo code.
The plugin has many configuration options to deal with code formatting, cleanup, etc...
For this task, we're only interested in the eclipse formatting and the import order.
The plugin should not be enabled by default, we don't want to break the customer code depending on the nuxeo-parent module.
A new CI step will be added to check that formatting has been performed on the modified files only. A PR status check will also be added.