scalafmt: code style for scala #184
No reviewers
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
RDGraph
RSAC
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: D-Net/dnet-hadoop#184
Loading…
Reference in New Issue
No description provided.
Delete Branch "scalafmt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR introduces a maven plugin to reformat automatically the scala classes available in the project. https://scalameta.org/scalafmt
In order to support the automatic formatting across the different modules, the type definitions are stored in the
dhp-code-stype
submodule:As a reference: in order to make the plugin work while compiling the project from the root, as well as on the individual module level (e.g. while oozie-packaging, deploying, running an oozie workflow) the reference to the scalafmt configuration file needed to be expressed as a remote location. I currently set it statically to
https://code-repo.d4science.org/D-Net/dnet-hadoop/raw/branch/beta/dhp-build/dhp-code-style/src/main/resources/scalafmt/scalafmt.conf
A better and more stable location will be updated later on.