Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dgellow/action-dscanner
🐶 Run D-Scanner (D language linter) during your pull requests via reviewdog
https://github.com/dgellow/action-dscanner
code-review d dlang dscanner github-action linter pull-request-action reviewdog
Last synced: about 2 months ago
JSON representation
🐶 Run D-Scanner (D language linter) during your pull requests via reviewdog
- Host: GitHub
- URL: https://github.com/dgellow/action-dscanner
- Owner: dgellow
- License: mit
- Created: 2020-04-30T15:42:17.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-10-26T05:23:16.000Z (over 4 years ago)
- Last Synced: 2024-12-12T22:48:24.487Z (about 2 months ago)
- Topics: code-review, d, dlang, dscanner, github-action, linter, pull-request-action, reviewdog
- Language: Dockerfile
- Homepage: https://github.com/marketplace/actions/run-d-scanner-d-language-linter-with-reviewdog
- Size: 45.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# action-dscanner
[![Test](https://github.com/dgellow/action-dscanner/workflows/Test/badge.svg)](https://github.com/dgellow/action-dscanner/actions?query=workflow%3ATest)
[![reviewdog](https://github.com/dgellow/action-dscanner/workflows/reviewdog/badge.svg)](https://github.com/dgellow/action-dscanner/actions?query=workflow%3Areviewdog)
[![depup](https://github.com/dgellow/action-dscanner/workflows/depup/badge.svg)](https://github.com/dgellow/action-dscanner/actions?query=workflow%3Adepup)
[![release](https://github.com/dgellow/action-dscanner/workflows/release/badge.svg)](https://github.com/dgellow/action-dscanner/actions?query=workflow%3Arelease)
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/dgellow/action-dscanner?logo=github&sort=semver)](https://github.com/dgellow/action-dscanner/releases)
[![action-bumpr supported](https://img.shields.io/badge/bumpr-supported-ff69b4?logo=github&link=https://github.com/haya14busa/action-bumpr)](https://github.com/haya14busa/action-bumpr)This [Github Action](https://help.github.com/en/actions) runs [D-Scanner](https://github.com/dlang-community/D-Scanner) on your project and report its result in your Pull Requests via [reviewdog](https://github.com/reviewdog/reviewdog).
D-Scanner is run via a call to `dub lint`, thus a [DUB](https://dub.pm/) project is expected.
## Input
```yaml
inputs:
github_token:
description: 'GITHUB_TOKEN'
default: '${{ github.token }}'
# reviewdog flags
level:
description: 'Report level for reviewdog [info,warning,error]'
default: 'error'
reporter:
description: 'Reporter of reviewdog command [github-pr-check,github-check,github-pr-review].'
default: 'github-pr-check'
# D-Scanner flags
path:
description: 'Root directory where D-Scanner should be run from'
default: ''
```## Usage
```yaml
name: reviewdog
on: [pull_request]
jobs:
linter_name:
name: runner / dscanner
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: dgellow/action-dscanner@v1
with:
github_token: ${{ secrets.github_token }}# reviewdog config
reporter: github-pr-review
level: warning# D-Scanner config
path: 'path/to/my/project'
```