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

Remove Checkstyle suppressions file and fix too-long links #843

Merged
merged 1 commit into from
May 2, 2022

Conversation

AudricV
Copy link
Member

@AudricV AudricV commented May 2, 2022

In 24e8399 and 8c1041d, violations of the Checkstyle line length rule have been added (because the lines were not matching the lines in the Checkstyle suppressions file). These changes causes right now a compile error.

This PR fixes these errors by splitting or reducing the corresponding lines in the character limit per line.

It also removes the usage of Checkstyle suppressions file and allows now usage of // CHECKSTYLE:OFF and // CHECKSTYLE:ON comments to suppress remaining Checkstyle false errors when usage of @SuppressWarnings("checkstyle:CheckstyleRule") is not possible (like in #833).

…ced in 24e8399 and 8c1041d

The Checkstyle suppressions file is now replaced by // CHECKSTYLE:OFF and // CHECKSTYLE:ON comments.
Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

Also, if you need to readd it in delivery-methods-v2, why bother removing it?

@AudricV
Copy link
Member Author

AudricV commented May 2, 2022

Also, if you need to readd it in delivery-methods-v2, why bother removing it?

I can use the // CHECKSTYLE:OFF and // CHECKSTYLE:ON so it can be safely removed (and it will allow us to not have to update the suppressions file directly each time we made changes on code or documentation with false positives).

Copy link
Member

@Stypox Stypox left a comment

Choose a reason for hiding this comment

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

Ok then ;-)

@Stypox Stypox merged commit 23fa31a into TeamNewPipe:dev May 2, 2022
@Stypox Stypox changed the title Remove Checkstyle suppressions file and fix Checkstyle issues Remove Checkstyle suppressions file and fix too-long links May 2, 2022
@AudricV AudricV deleted the fix-checkstyle-issues branch May 2, 2022 20:10
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