mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Set linter step to continue on error
This commit is contained in:
parent
8df8d343f3
commit
829957d3e1
1 changed files with 5 additions and 3 deletions
|
|
@ -38,10 +38,12 @@ jobs:
|
|||
- script: "python3 -m pip install -U ruff"
|
||||
displayName: "Install ruff"
|
||||
|
||||
# To unblock the build even with lint errors, add "--exit-zero" to the command line
|
||||
# TODO: REMOVE THE --exit-zero FLAG WHEN ALL LINTER ERRORS ARE GONE
|
||||
- script: "python3 -m ruff check --exit-zero --format=junit --output-file=$(Build.ArtifactStagingDirectory)/lint-ruff.xml ."
|
||||
# We just switched to a new linter and there are a ton of errors. We need time to go through them, but we don't want the block the build.
|
||||
# Therefore, we use continueOnError to generate a warning while there are linter errors. The build will still run.
|
||||
# To force the step to return zero even with linter errors, add "--exit-zero" after the "check" in the command line
|
||||
- script: "python3 -m ruff check --format=junit --output-file=$(Build.ArtifactStagingDirectory)/lint-ruff.xml ."
|
||||
displayName: "Run ruff"
|
||||
continueOnError: "true"
|
||||
|
||||
- task: "PublishTestResults@2"
|
||||
displayName: "Publish linting results"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue