Commit 9b08219
* #22 adding scalafmt with a basic config targetting Scala 2.11
* #22 adding optional scalafmt CI check
* #22 post-CQC changes in scalafmt conf we were discussing
* #22 scalafmt config - moving closer to our codebase (without these, function definition formatting was very different)
* #22 scalafmt will check only files that were changed in comparison to master branch
* #22 post-review changes in CI file
* #22 scalafmt: `origin/master` doesn't work in CI check, renaming to `master`
* #22 scalafmt: `origin/master` and `master` doesn't work in CI check, trying `remotes/origin/master`
* #22 scalafmt: downgrading scalafmt version, there might be a bug in the 2.4.6
See: scalameta/sbt-scalafmt#205
* #22 scalafmt: replicing master branch with the actual base branch
* #22 scalafmt: tmp commit (I want to see how CI check behaves and what's in the log)
* #22: checking out the branch, not the PR remote (head would be in a detached state)
This is because for scalafmt we need to find the 'base' branch - which is master in this case, and compare the list of changed files against it, in order to check the formatting against such newly changed files only. Also, 'origin/' isn't needed because the 'base' branch will be 'origin/master', not just 'master' - see file build.sbt, line starting with `scalafmtFilter.withRank` and the expression starting with `git show-branch -a`.
* #22 requested in CQC session, for preventing this to be evaluated when it's not needed
* #22 post-review changes, improving readability
Co-authored-by: Ladislav Sulak <[email protected]>
1 parent 7cb075c commit 9b08219
File tree
5 files changed
+81
-4
lines changed- .github/workflows
- project
- src/main/scala/za/co/absa/standardization
5 files changed
+81
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
50 | 63 | | |
51 | 64 | | |
52 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
0 commit comments