You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLI_ARGS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@
96
96
|`--sonar-source-encoding`, `-Dsonar.sourceEncoding`| Encoding of the source files. For example, UTF-8, MacRoman, Shift_JIS |
97
97
|`--sonar-user-home`, `-Dsonar.userHome`| Base sonar directory, ~/.sonar by default |
98
98
|`--sonar-working-directory`, `-Dsonar.working.directory`| Path to the working directory used by the Sonar scanner during a project analysis to store temporary data |
99
-
|`--toml-path`| Path to the pyproject.toml file. If not provided, it will look in the SONAR_PROJECT_BASE_DIR |
99
+
|`--toml-path`| Path to the pyproject.toml file or to the folder containing it. If not provided, it will look in the SONAR_PROJECT_BASE_DIR |
100
100
|`-Dsonar.python.skipUnchanged`| Equivalent to --sonar-python-skip-unchanged |
101
101
|`-Dsonar.python.xunit.skipDetails`| Equivalent to -Dsonar.python.xunit.skipDetails |
102
102
|`-Dsonar.qualitygate.wait`| Equivalent to --sonar-qualitygate-wait |
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,12 +85,18 @@ Properties in `pyproject.toml` files are expected to be provided in camel case.
85
85
project-key=My Project key # valid alias for projectKey
86
86
```
87
87
88
-
By default, the scanner will expect the `pyproject.toml` file to be present in the current directory. However, its path can be provided manually through the `toml-path` CLI argument as well as through the `sonar.projectBaseDir` argument. For instance:
88
+
By default, the scanner will expect the `pyproject.toml` file to be present in the current directory. However, its path can be provided manually through the `toml-path` CLI argument as well as through the `sonar.projectBaseDir` argument. The `--toml-path` argument accepts either the path to the `pyproject.toml` file itself or to the folder containing it. For instance:
0 commit comments