Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add linter check for scala #199

Closed
wants to merge 3 commits into from
Closed

Conversation

ljubon
Copy link
Contributor

@ljubon ljubon commented Oct 9, 2023

The goal of this PR is to enable CI to have linter enabled and basic rules defined in .github/workflows/linter.yml

@github-actions
Copy link

Test Results

0 files   -      573  0 suites   - 573   0s ⏱️ - 2h 47m 57s
0 tests  -      525  0 ✔️  -      505  0 💤 ±0  0 ±0 
0 runs   - 16 268  0 ✔️  - 16 246  0 💤  - 2  0 ±0 

Results for commit d26497c. ± Comparison against base commit 47b901b.

.github/workflows/ci.yml Show resolved Hide resolved
.github/workflows/linter.yml Outdated Show resolved Hide resolved
.scalafmt.conf Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
@EnricoMi EnricoMi changed the title add linter check for scala CI: Add linter check for scala Oct 10, 2023
@ljubon ljubon requested a review from EnricoMi October 20, 2023 22:15
@pavlovic-ivan
Copy link

Hi @EnricoMi! Hope you are doing good. Can you please take another look at this PR, as changes have been made as requested

.github/workflows/ci.yml Show resolved Hide resolved
.scalafmt.conf Outdated Show resolved Hide resolved
@EnricoMi
Copy link
Contributor

How can we run scalafmt from command line / mvn so that developer can auto-format the code?

@EnricoMi
Copy link
Contributor

We can make scalafmt part of mvn compile so that this is checked during development:

No need to add this specifically to CI then.

@ljubon
Copy link
Contributor Author

ljubon commented Nov 30, 2023

How can we run scalafmt from command line / mvn so that developer can auto-format the code?

locally from CLI you can run scalafmt --test

@ljubon
Copy link
Contributor Author

ljubon commented Nov 30, 2023

We can make scalafmt part of mvn compile so that this is checked during development:

No need to add this specifically to CI then.

How would you like to proceed with this PR? Should I adopt this PR and use mvn compile or is this current implementation already part of it?

@EnricoMi
Copy link
Contributor

EnricoMi commented Dec 1, 2023

I'd prefer #201 and #212 over this.

@ljubon
Copy link
Contributor Author

ljubon commented Dec 26, 2023

I'd prefer #201 and #212 over this.

That's ok from my side, @pavlovic-ivan your thoughts?
I would propose to keep this PR as monitoring until #201 #212 are merged as we would like to bring these changes as part of the maturity matrix for all OSS projects
Also if you need any help/support for open PRs I'm available to support

@pavlovic-ivan
Copy link

I am good with suggested as well

@EnricoMi
Copy link
Contributor

All merged.

@ljubon
Copy link
Contributor Author

ljubon commented Jan 8, 2024

Thank you @EnricoMi! will close this PR as issue is resolved with PR mentioned

@ljubon ljubon closed this Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants