Skip to content

Commit a1f1420

Browse files
okorachokorach-sonar
authored andcommitted
Ruff initial formatting (#1984)
1 parent af73805 commit a1f1420

File tree

97 files changed

+129
-97
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+129
-97
lines changed

cli/audit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
#
2121
"""
2222
23-
Audits a SonarQube platform
23+
Audits a SonarQube platform
2424
2525
"""
26+
2627
import sys
2728
import json
2829
import csv

cli/config.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2020
#
2121
"""
22-
Exports SonarQube platform configuration as JSON
22+
Exports SonarQube platform configuration as JSON
2323
"""
24+
2425
from typing import TextIO
2526
from threading import Thread
2627
from queue import Queue

cli/cust_measures.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2020
#
2121
"""
22-
This script manipulates custom measures. You may:
22+
This script manipulates custom measures. You may:
2323
24-
Update a custom measure value:
25-
Usage: cust_measures.py -t <SQ_TOKEN> -u <SQ_URL> -k <projectKey> -m <metricKey> --updateValue <value>
24+
Update a custom measure value:
25+
Usage: cust_measures.py -t <SQ_TOKEN> -u <SQ_URL> -k <projectKey> -m <metricKey> --updateValue <value>
2626
"""
2727

2828
import sys

cli/findings_export.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2020
#
2121
"""
22-
This script exports findings as CSV, JSON, or SARIF
22+
This script exports findings as CSV, JSON, or SARIF
2323
24-
Usage: sonar-findings-export.py -t <SQ_TOKEN> -u <SQ_URL> [<filters>]
24+
Usage: sonar-findings-export.py -t <SQ_TOKEN> -u <SQ_URL> [<filters>]
2525
2626
"""
2727

cli/findings_sync.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@
1919
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2020
#
2121
"""
22-
This script propagates the manual issue changes (FP, WF, Change
23-
of severity, of issue type, comments) from:
24-
- One project to another (normally on different platforms but not necessarily).
25-
The 2 platform don't need to be identical in version, edition or plugins
26-
- One branch of a project to another branch of the same project (normally LLBs)
22+
This script propagates the manual issue changes (FP, WF, Change
23+
of severity, of issue type, comments) from:
24+
- One project to another (normally on different platforms but not necessarily).
25+
The 2 platform don't need to be identical in version, edition or plugins
26+
- One branch of a project to another branch of the same project (normally LLBs)
2727
28-
Only issues with a 100% match are synchronized. When there's a doubt, nothing is done
28+
Only issues with a 100% match are synchronized. When there's a doubt, nothing is done
2929
"""
3030

3131
import datetime

cli/housekeeper.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@
2020
#
2121
"""
2222
23-
Removes obsolete data from SonarQube platform
24-
Currently:
25-
- projects, branches, PR not analyzed since a given number of days
26-
- Tokens not renewed since a given number of days
23+
Removes obsolete data from SonarQube platform
24+
Currently:
25+
- projects, branches, PR not analyzed since a given number of days
26+
- Tokens not renewed since a given number of days
2727
2828
"""
29+
2930
import sys
3031

3132
from requests import RequestException

cli/loc.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2020
#
2121
"""
22-
Exports LoC per projects
22+
Exports LoC per projects
2323
"""
24+
2425
import sys
2526
import csv
2627
import datetime

cli/measures_export.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2020
#
2121
"""
22-
Exports some measures of all projects
23-
- Either all measures (-m _all)
24-
- Or the main measures (-m _main)
25-
- Or a custom selection of measures (-m <measure1,measure2,measure3...>)
22+
Exports some measures of all projects
23+
- Either all measures (-m _all)
24+
- Or the main measures (-m _main)
25+
- Or a custom selection of measures (-m <measure1,measure2,measure3...>)
2626
"""
27+
2728
import sys
2829
import csv
2930
from requests import RequestException

cli/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#
2020
"""
2121
22-
Cmd line options
22+
Cmd line options
2323
2424
"""
2525

cli/projects_cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#
2121
"""
2222
23-
Exports/Imports all projects of a SonarQube Server platform
23+
Exports/Imports all projects of a SonarQube Server platform
2424
2525
"""
2626

0 commit comments

Comments
 (0)