-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #273 from mdedetrich/add-contributing-md-and-code-…
…style-tasks Add CONTRIBUTING.md along with code style tasks
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Contributing to Sbt Reproducible Builds | ||
|
||
## Applying code style to the project | ||
|
||
The project uses both [scalafix](https://scalacenter.github.io/scalafix/) and | ||
[scalafmt](https://scalameta.org/scalafmt/) to ensure code quality which is automatically checked on every | ||
PR. If you would like to check for any potential code style problems locally you can run `sbt checkCodeStyle` and if | ||
you want to apply the code style then you can run `sbt applyCodeStyle`. | ||
|
||
## Ignoring formatting commits in git blame | ||
|
||
Throughout the history of the codebase various formatting commits have been applied as the scalafmt style has evolved over time, if desired | ||
one can setup git blame to ignore these commits. The hashes for these specific are stored in [this file](.git-blame-ignore-revs) so to configure | ||
git blame to ignore these commits you can execute the following. | ||
|
||
```shell | ||
git config blame.ignoreRevsFile .git-blame-ignore-revs | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters