-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add sonar plugin and github actions file for sonar analysis #5835
Conversation
Copied from sonarcloud.io setup page with minor adjustments. Adjusted branch to 'dev' and updated versions
@TobiGr Do you have any idea why checkstyle fails on JDK 11? |
I have no idea. Maybe the checkstyle suppressions are ignored? I changed a few lines, could you try it again after rebasing on https://github.com/TobiGr/NewPipe/tree/listHelper ? |
does not work. I don't even need to rebase, just checking out your branch and running |
it looks like the |
Try this: diff --git a/app/build.gradle b/app/build.gradle
index c75bd43178f..957597ad955 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -116,6 +116,7 @@ configurations {
checkstyle {
configFile rootProject.file('checkstyle.xml')
+ suppressionsLocation rootProject.file('checkstyle-suppressions.xml')
ignoreFailures false
showViolations true
toolVersion = checkstyleVersion |
@TobiGr That fails before even running checkstyle with: I would translate it to "no method with given parameters exists" |
try also adding this: |
Screw it, Do not even try that thing above. But this looks promising. you can also try to replace the diff --git a/checkstyle.xml b/checkstyle.xml
index af8c5480f88..c1405c2ce36 100644
--- a/checkstyle.xml
+++ b/checkstyle.xml
@@ -23,7 +23,7 @@
<!-- https://checkstyle.org/config_filters.html#SuppressionFilter -->
<module name="SuppressionFilter">
<property name="file" value="${org.checkstyle.sun.suppressionfilter.config}"
- default="checkstyle-suppressions.xml" />
+ default="${config_loc}/checkstyle-suppressions.xml" />
<property name="optional" value="true"/>
</module> |
@TobiGr Checkstyle problem is solved. Are you sure, you set the secret corretly? It fails with unauthorized error |
The auth error is probably caused by you opening the PR from a fork. Please push this branch to our repo and open another PR. |
#5844 succeeded. We should work on that branch, so this pr can be closed. |
What is it?
Description of the changes in your PR
Fixes the following issue(s)
Relies on the following changes
Due diligence