From 9bff11a311b098104bc6fe5470a059fbc0562af9 Mon Sep 17 00:00:00 2001 From: alperozturk96 Date: Fri, 23 Oct 2026 11:06:16 +0200 Subject: [PATCH] remove codacy Signed-off-by: alperozturk96 --- .codacy.yml | 5 ----- README.md | 2 +- Readme-AR.md | 1 - scripts/analysis/analysis-wrapper.sh | 13 +++---------- 4 files changed, 4 insertions(+), 17 deletions(-) delete mode 100644 .codacy.yml diff --git a/.codacy.yml b/.codacy.yml deleted file mode 100644 index 4c277340d882..000000000000 --- a/.codacy.yml +++ /dev/null @@ -1,5 +0,0 @@ -# SPDX-FileCopyrightText: 2026 Nextcloud GmbH and Nextcloud contributors -# SPDX-License-Identifier: AGPL-3.0-or-later - -exclude_paths: - - "app/src/main/cpp/**" diff --git a/README.md b/README.md index 1a23a124eb06..6920daabc223 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ --> # [Nextcloud](https://nextcloud.com) Android app :iphone: -[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud/android)](https://api.reuse.software/info/github.com/nextcloud/android) [![Build Status](https://drone.nextcloud.com/api/badges/nextcloud/android/status.svg)](https://drone.nextcloud.com/nextcloud/android) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/fb4cf26336774ee3a5c9adfe829c41aa)](https://app.codacy.com/gh/nextcloud/android/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![Releases](https://img.shields.io/github/release/nextcloud/android.svg)](https://github.com/nextcloud/android/releases/latest) +[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud/android)](https://api.reuse.software/info/github.com/nextcloud/android) [![Build Status](https://drone.nextcloud.com/api/badges/nextcloud/android/status.svg)](https://drone.nextcloud.com/nextcloud/android) [![Releases](https://img.shields.io/github/release/nextcloud/android.svg)](https://github.com/nextcloud/android/releases/latest) [Download from Google Play](https://play.google.com/store/apps/details?id=com.nextcloud.client) diff --git a/scripts/analysis/analysis-wrapper.sh b/scripts/analysis/analysis-wrapper.sh index 0063a1f74cb2..2ce5c9488d18 100755 --- a/scripts/analysis/analysis-wrapper.sh +++ b/scripts/analysis/analysis-wrapper.sh @@ -44,8 +44,8 @@ else echo "New spotbugs results at https://www.kaminsky.me/nc-dev/$repository-findbugs/${BUILD_NUMBER}.html" curl 2>/dev/null -u "${LOG_USERNAME}:${LOG_PASSWORD}" -X PUT "https://nextcloud.kaminsky.me/remote.php/dav/files/${LOG_USERNAME}/$repository-findbugs/${BUILD_NUMBER}.html" --upload-file app/build/reports/spotbugs/spotbugs.html - # delete all old comments, starting with Codacy - oldComments=$(curl_gh -X GET "https://api.github.com/repos/nextcloud/$repository/issues/${PR_NUMBER}/comments" | jq '.[] | select((.user.login | contains("github-actions")) and (.body | test("

Codacy.*"))) | .id') + # delete all old comments, starting with SpotBugs + oldComments=$(curl_gh -X GET "https://api.github.com/repos/nextcloud/$repository/issues/${PR_NUMBER}/comments" | jq '.[] | select((.user.login | contains("github-actions")) and (.body | test("

SpotBugs.*"))) | .id') echo "$oldComments" | while read -r comment ; do curl_gh -X DELETE "https://api.github.com/repos/nextcloud/$repository/issues/comments/$comment" @@ -58,13 +58,6 @@ else fi # add comment with results - if [ $stableBranch = "master" ] ; then - codacyValue=$(curl 2>/dev/null https://app.codacy.com/dashboards/breakdown\?projectId\=44248 | grep "total issues" | cut -d">" -f3 | cut -d"<" -f1) - codacyResult="

Codacy

$codacyValue" - else - codacyResult="" - fi - spotbugsResult="

SpotBugs

$(scripts/analysis/spotbugsComparison.py "/tmp/$stableBranch.xml" app/build/reports/spotbugs/gplayDebug.xml --link-new "https://www.kaminsky.me/nc-dev/$repository-findbugs/${BUILD_NUMBER}.html" --link-base "https://www.kaminsky.me/nc-dev/$repository-findbugs/$stableBranch.html")" if ( [ $spotbugsValue -eq 1 ] ) ; then @@ -83,7 +76,7 @@ else notNull="org.jetbrains.annotations.* is used. Please use androidx.annotation.* instead.

" fi - bodyContent="$codacyResult $spotbugsResult $spotbugsMessage $gplayLimitation $notNull" + bodyContent="$spotbugsResult $spotbugsMessage $gplayLimitation $notNull" echo "$bodyContent" >> "$GITHUB_STEP_SUMMARY" payload="{ \"body\" : \"$bodyContent\" }" curl_gh -X POST "https://api.github.com/repos/nextcloud/$repository/issues/${PR_NUMBER}/comments" -d "$payload"