Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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'
```