No @code block
Checks all .razor files in a given folder for the presents of the @code block. If the @code block is found in any file then this task will fail.
- task: NoAtCodeBlock@0
displayName: Blazor Quality Checks
inputs:
blazorprojectpath: "$(System.DefaultWorkingDirectory)/MyBlazorProject"
Enabling Custom Pull Request Statuses
- Enable
continueOnError as part of the build step.
- Run the pipeline once as part of a PR for the status to be posted to Azure DevOps.
- Navigate to Status Checks for your repository.
- Click + and add the
bqc/no-code-block-policy .
- Save the changes.
| |