https://github.com/bb010g/reviewdog-action-vimlint
Run vimlint with reviewdog 🐶
https://github.com/bb010g/reviewdog-action-vimlint
Last synced: 3 months ago
JSON representation
Run vimlint with reviewdog 🐶
- Host: GitHub
- URL: https://github.com/bb010g/reviewdog-action-vimlint
- Owner: bb010g
- License: mit
- Created: 2020-02-14T08:07:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-05T02:08:36.000Z (over 4 years ago)
- Last Synced: 2025-03-16T13:02:40.020Z (4 months ago)
- Language: Shell
- Homepage: https://github.com/marketplace?type=actions&query=reviewdog
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# action-vimlint
[](https://github.com/bb010g/reviewdog-action-vimlint/actions?query=workflow%3ATest)
[](https://github.com/bb010g/reviewdog-action-vimlint/actions?query=workflow%3Areviewdog)
[](https://github.com/bb010g/reviewdog-action-vimlint/actions?query=workflow%3Adepup)
[](https://github.com/bb010g/reviewdog-action-vimlint/actions?query=workflow%3Arelease)
[](https://github.com/bb010g/reviewdog-action-vimlint/releases)
[](https://github.com/haya14busa/action-bumpr)
This action runs [vim-vimlint](https://github.com/syngan/vim-vimlint) with [reviewdog](https://github.com/reviewdog/reviewdog) on pull requests to improve code review experience.
## Input
### `github_token`
**Optional**
A token to authenticate on behalf of this GitHub App installed on your repository.
Set to a non-standard token.
Defaults to `${{ github.token }}` (`$GITHUB_TOKEN`).### (reviewdog) `level`
**Optional**
The report level for reviewdog.
Can be one of: `info`, `warning`, or `error`.
Defaults to `error`.### (reviewdog) `reporter`
**Optional**
The reporter for reviewdog.
Can be one of: `github-pr-check`, `github-check`, or `github-pr-review`.
Defaults to `github-pr-check`.### (vimlint) `path`
**Optional**
Path to lint.
(The empty string unsets this input.)
At least one of `path` or `paths` should be set.
Defaults to `autoload`.### (vimlint) `paths`
**Optional**
Additional paths or globs to lint.
Uses Busybox ash syntax.
At least one of `path` or `paths` should be set.### (vimlint) `only_error`
**Optional**
Whether to only report lint error messages.
Can be one of: `true` or `false`.
Defaults to `false`.### (vimlint) `verbose`
**Optional**
Whether to lint verbosely.
Can be one of: `true` or `false`.
Defaults to `true`.### (vimlint) `flags`
**Optional**
Additional vimlint flags.
Uses Busybox ash syntax.## Usage
```yaml
name: reviewdog
on: [pull_request]
jobs:
vimlint:
name: runner / vimlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: bb010g/reviewdog-action-vimlint@v1
with:
# Change reviewdog reporter if you need [github-pr-check,github-check,github-pr-review].
reporter: github-pr-review
# Change reporter level if you need.
# GitHub Status Check won't become failure with warning.
level: warning
# If you want to ignore EVL103 for any cases and EVL102 for variable `_`:
flags: '-e EVL103=1 -e EVL102.l:_=1'
```## Development
### Release
#### [haya14busa/action-bumpr](https://github.com/haya14busa/action-bumpr)
You can bump version on merging Pull Requests with specific labels (bump:major,bump:minor,bump:patch).
Pushing tag manually by yourself also work.#### [haya14busa/action-update-semver](https://github.com/haya14busa/action-update-semver)
This action updates major/minor release tags on a tag push. e.g. Update v1 and v1.2 tag when released v1.2.3.
ref: https://help.github.com/en/articles/about-actions#versioning-your-action### Lint - reviewdog integration
This reviewdog action template itself is integrated with reviewdog to run lints
which is useful for Docker container based actions.
Supported linters:
- [reviewdog/action-shellcheck](https://github.com/reviewdog/action-shellcheck)
- [reviewdog/action-hadolint](https://github.com/reviewdog/action-hadolint)
- [reviewdog/action-misspell](https://github.com/reviewdog/action-misspell)### Dependencies Update Automation
This repository uses [haya14busa/action-depup](https://github.com/haya14busa/action-depup) to update
reviewdog version.[](https://github.com/reviewdog/action-template/pull/6)