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 is enforced over java code to demand basic code quality #107

Closed
romani opened this issue Jul 7, 2024 · 9 comments · Fixed by #151, #159 or #182
Closed

CI is enforced over java code to demand basic code quality #107

romani opened this issue Jul 7, 2024 · 9 comments · Fixed by #151, #159 or #182

Comments

@romani
Copy link
Member

romani commented Jul 7, 2024

We need to apply checkstyle/pmd/spotbug/forbidden-api/ over all java projects of this repo.
Configs should be taken from main repo https://github.com/checkstyle/checkstyle/
We can relax Javadoc rules as we do not need it there, such projects are not a public library.

if we have time: we should try Idea Inspections validation.

relentless-pursuit pushed a commit to relentless-pursuit/test-configs that referenced this issue Jul 21, 2024
relentless-pursuit pushed a commit to relentless-pursuit/test-configs that referenced this issue Jul 21, 2024
relentless-pursuit pushed a commit to relentless-pursuit/test-configs that referenced this issue Jul 22, 2024
relentless-pursuit pushed a commit to relentless-pursuit/test-configs that referenced this issue Jul 22, 2024
relentless-pursuit pushed a commit to relentless-pursuit/test-configs that referenced this issue Jul 28, 2024
relentless-pursuit pushed a commit to relentless-pursuit/test-configs that referenced this issue Aug 1, 2024
relentless-pursuit pushed a commit to relentless-pursuit/test-configs that referenced this issue Aug 1, 2024
relentless-pursuit pushed a commit to relentless-pursuit/test-configs that referenced this issue Aug 4, 2024
relentless-pursuit pushed a commit to relentless-pursuit/test-configs that referenced this issue Aug 4, 2024
@romani romani reopened this Aug 4, 2024
@romani
Copy link
Member Author

romani commented Aug 4, 2024

We need checkstyle to be activated

@relentless-pursuit
Copy link
Collaborator

We need checkstyle to be activated

It is activated.

<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
        "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
        "https://checkstyle.org/dtds/configuration_1_3.dtd">

<module name="Checker">
    <property name="charset" value="UTF-8"/>

    <module name="TreeWalker">
        <module name="UnusedImports"/>
        <module name="AvoidStarImport"/>
    </module>
</module>

@romani
Copy link
Member Author

romani commented Aug 4, 2024

@romani
Copy link
Member Author

romani commented Aug 4, 2024

@relentless-pursuit
Copy link
Collaborator

@romani
Copy link
Member Author

romani commented Aug 4, 2024

were affecting the logic.

Yes, and we need to change logic to be more maintainable by other. Such rules will guide in right direction. Or some of them will be excluded with explanation of why we should not use the, each exclude should have explicit explanation.

romani added a commit that referenced this issue Aug 11, 2024
@romani
Copy link
Member Author

romani commented Aug 11, 2024

@relentless-pursuit

I added checkstyle to project, with all Checks as disabled, 4b55f76

please remove check from suppression and fix violation and send PR.
Please do not make big PRs, select few Checks and fix them in single PR. So we expect about ~10 PRs to fix all violations.

@romani
Copy link
Member Author

romani commented Aug 13, 2024

Reopening to double check that we are in good spot.

We need to check same over diff tool also

@romani romani reopened this Aug 13, 2024
@romani
Copy link
Member Author

romani commented Aug 13, 2024

@relentless-pursuit , please update CI to do ./gradlew build

and add build of https://github.com/checkstyle/test-configs/tree/main/diff-java-tool
and add this pack of tools in diff-java-tool.

relentless-pursuit pushed a commit to relentless-pursuit/test-configs that referenced this issue Sep 14, 2024
relentless-pursuit pushed a commit to relentless-pursuit/test-configs that referenced this issue Sep 14, 2024
relentless-pursuit pushed a commit to relentless-pursuit/test-configs that referenced this issue Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
2 participants