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

fix linter issues to be more in line with java rules #180

Merged
merged 4 commits into from
Nov 29, 2024

Conversation

feddevanderlist
Copy link
Contributor

Fixing some linter issues based on the java-sonarcube-default rule set.

@feddevanderlist
Copy link
Contributor Author

@jarlah I was wondering if for the tests we could put the comments in the code in java doc. That way code gets a little cleaner and more readable. :)

@jarlah
Copy link
Owner

jarlah commented Nov 28, 2024

You can move comments thats ok. But can you add automated code linting in workflow? If it possible to come to a state when where it breaks it dont show a list of 100 problems ?

@feddevanderlist
Copy link
Contributor Author

You can move comments thats ok. But can you add automated code linting in workflow? If it possible to come to a state when where it breaks it dont show a list of 100 problems ?

I don't know about a way in github to do that. But I'll take a look to find out if it's possible :)

@feddevanderlist
Copy link
Contributor Author

https://www.freecodecamp.org/news/github-super-linter/ this might be an option :)

@jarlah
Copy link
Owner

jarlah commented Nov 28, 2024

maybe you can test it out on your own fork. I see it requires a bit of a setup with secrets and stuff

@feddevanderlist
Copy link
Contributor Author

I'll take a look I've never used github actions before. I'm a gitlab person.

@jarlah
Copy link
Owner

jarlah commented Nov 28, 2024

Chatgpt or perplexity ftw 🙈

@jarlah
Copy link
Owner

jarlah commented Nov 28, 2024

you can do that in different PR if you want. Just mark it ready when you have fixed the linting stuff you seem fitting

@jarlah
Copy link
Owner

jarlah commented Nov 28, 2024

might also be overly overkill with github action for linting java code when there is literally almost no code

@jarlah jarlah self-requested a review November 28, 2024 16:38
@feddevanderlist feddevanderlist marked this pull request as ready for review November 29, 2024 09:43
Copy link
Owner

@jarlah jarlah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good :)

i would recommend removing the silly one word "comment blocks" though

@jarlah jarlah merged commit f691fcf into jarlah:main Nov 29, 2024
3 checks passed
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.

2 participants