mirror of
https://github.com/ivuorinen/actions.git
synced 2026-01-26 03:23:59 +00:00
* docs: update documentation * feat: validate-inputs has it's own pyproject * security: mask DOCKERHUB_PASSWORD * chore: add tokens, checkout, recrete docs, integration tests * fix: add `statuses: write` permission to pr-lint
45 lines
1.1 KiB
Markdown
45 lines
1.1 KiB
Markdown
# ivuorinen/actions/csharp-lint-check
|
|
|
|
## C# Lint Check
|
|
|
|
### Description
|
|
|
|
Runs linters like StyleCop or dotnet-format for C# code style checks.
|
|
|
|
### Inputs
|
|
|
|
| name | description | required | default |
|
|
|------------------|----------------------------------------|----------|---------|
|
|
| `dotnet-version` | <p>Version of .NET SDK to use.</p> | `false` | `""` |
|
|
| `token` | <p>GitHub token for authentication</p> | `false` | `""` |
|
|
|
|
### Outputs
|
|
|
|
| name | description |
|
|
|------------------|----------------------------------------------|
|
|
| `lint_status` | <p>Overall lint status (success/failure)</p> |
|
|
| `errors_count` | <p>Number of formatting errors found</p> |
|
|
| `warnings_count` | <p>Number of formatting warnings found</p> |
|
|
|
|
### Runs
|
|
|
|
This action is a `composite` action.
|
|
|
|
### Usage
|
|
|
|
```yaml
|
|
- uses: ivuorinen/actions/csharp-lint-check@main
|
|
with:
|
|
dotnet-version:
|
|
# Version of .NET SDK to use.
|
|
#
|
|
# Required: false
|
|
# Default: ""
|
|
|
|
token:
|
|
# GitHub token for authentication
|
|
#
|
|
# Required: false
|
|
# Default: ""
|
|
```
|