Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ jobs:
uses: ./.github/actions/config-poetry
- run: |
poetry run black src/ tests/ --check
poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d src/
poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d tests/
poetry run licenseheaders -t license_header.tmpl -o "SonarSource Sàrl" -y 2011-2026 -n "Sonar Scanner Python" -E .py -d src/
poetry run licenseheaders -t license_header.tmpl -o "SonarSource Sàrl" -y 2011-2026 -n "Sonar Scanner Python" -E .py -d tests/
git diff --name-only --exit-code ./src ./tests

documentation:
Expand Down
2 changes: 1 addition & 1 deletion license_header.tmpl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
${projectname}
Copyright (C) ${years} ${owner}.
Copyright (C) ${years} ${owner}
mailto:info AT sonarsource DOT com

This program is free software; you can redistribute it and/or
Expand Down
6 changes: 3 additions & 3 deletions scripts/generate_licenseheaders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
pushd "$SCRIPT_DIR/.."

poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d src/
poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d tests/
poetry run licenseheaders -t license_header.tmpl -o "SonarSource SA" -y 2011-2024 -n "Sonar Scanner Python" -E .py -d its -x its/sources/**.py
poetry run licenseheaders -t license_header.tmpl -o "SonarSource Sàrl" -y 2011-2026 -n "Sonar Scanner Python" -E .py -d src/
poetry run licenseheaders -t license_header.tmpl -o "SonarSource Sàrl" -y 2011-2026 -n "Sonar Scanner Python" -E .py -d tests/
poetry run licenseheaders -t license_header.tmpl -o "SonarSource Sàrl" -y 2011-2026 -n "Sonar Scanner Python" -E .py -d its -x its/sources/**.py

popd
2 changes: 1 addition & 1 deletion src/pysonar_scanner/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/pysonar_scanner/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/pysonar_scanner/api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/pysonar_scanner/app_logging.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/pysonar_scanner/cache.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/pysonar_scanner/configuration/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/pysonar_scanner/configuration/cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/pysonar_scanner/configuration/configuration_loader.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/pysonar_scanner/configuration/coveragerc_loader.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/pysonar_scanner/configuration/environment_variables.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/pysonar_scanner/configuration/properties.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/pysonar_scanner/configuration/pyproject_toml.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/pysonar_scanner/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/pysonar_scanner/jre.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/pysonar_scanner/scannerengine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion src/pysonar_scanner/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/its/__main__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/its/conftest.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/its/sources/minimal/src/minimal.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/its/test_minimal.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/its/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/its/utils/cli_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/its/utils/pysonar-debug.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/its/utils/sonarqube_client.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/test_environment_variables.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/test_properties.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/sq_api_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_api.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_app_logging.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_cache.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_configuration_cli.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_configuration_loader.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_coveragerc_loader.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_exceptions.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_jre.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_pyproject_toml.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_scannerengine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_sonar_project_properties.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Sonar Scanner Python
# Copyright (C) 2011-2024 SonarSource SA.
# Copyright (C) 2011-2026 SonarSource Sàrl
# mailto:info AT sonarsource DOT com
#
# This program is free software; you can redistribute it and/or
Expand Down
Loading