Skip to content

Commit 6813f53

Browse files
committed
Quality pass
1 parent d5d1f4c commit 6813f53

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

conf/prep_all_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ create_fresh_project "$SYNC_PROJECT_KEY" "https://sonarcloud.io" "$SONAR_TOKEN_S
4848
create_fresh_project "$SYNC_PROJECT_KEY" "${SONAR_HOST_URL_CB:?}" "$SONAR_TOKEN_CB_ADMIN_USER" "$SONAR_TOKEN_CB_ADMIN_ANALYSIS"
4949

5050
for pr in 5 7; do
51-
sonar-scanner -Dsonar.host.url=${SONAR_HOST_URL_LATEST:?} -Dsonar.pullrequest.key=$pr -Dsonar.pullrequest.branch=feature/$pr -Dsonar.token="$SONAR_TOKEN_LATEST_ADMIN_ANALYSIS"
51+
sonar-scanner -Dsonar.host.url="${SONAR_HOST_URL_LATEST:?}" -Dsonar.pullrequest.key="$pr" -Dsonar.pullrequest.branch="feature/$pr" -Dsonar.token="$SONAR_TOKEN_LATEST_ADMIN_ANALYSIS"
5252
sonar-scanner -Dsonar.host.url=${SONAR_HOST_URL_LTS:?} -Dsonar.pullrequest.key=$pr -Dsonar.pullrequest.branch=feature/$pr -Dsonar.token="$SONAR_TOKEN_LTS_ADMIN_ANALYSIS"
5353
done
5454
# Format for 10.x and 9.x is different, file was generated for 10.x, so removing for 9.9

conf/ruff2sonar.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,7 @@
1818
# along with this program; if not, write to the Free Software Foundation,
1919
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2020
#
21-
"""
22-
23-
Converts Ruff report format to Sonar external issues format
24-
25-
"""
21+
"""Converts Ruff report format to Sonar external issues format"""
2622

2723
import sys
2824
import json

sonar/projects.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,7 @@
141141

142142

143143
class Project(components.Component):
144-
"""
145-
Abstraction of the SonarQube project concept
146-
"""
144+
"""Abstraction of the SonarQube project concept"""
147145

148146
CACHE = cache.Cache()
149147
SEARCH_KEY_FIELD = "key"
@@ -727,6 +725,7 @@ def export_zip(self, asynchronous: bool = False, timeout: int = 180) -> tuple[st
727725

728726
def import_zip(self, asynchronous: bool = False, timeout: int = 180) -> str:
729727
"""Imports a project zip file in SonarQube
728+
730729
:param bool asynchronous: Whether to export the project asynchronously or not (if async, import_zip returns immediately)
731730
:param int timeout: timeout in seconds to complete the export operation
732731
:return: SUCCESS or FAILED with reason

0 commit comments

Comments
 (0)