mirror of
https://github.com/makew0rld/amfora.git
synced 2024-09-29 23:15:59 -04:00
19 lines
1.0 KiB
YAML
19 lines
1.0 KiB
YAML
name: golangci-lint
|
|
on: [push, pull_request]
|
|
jobs:
|
|
golangci:
|
|
name: lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: golangci-lint
|
|
uses: golangci/golangci-lint-action@v2
|
|
with:
|
|
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
|
|
version: v1.30
|
|
|
|
# Optional: golangci-lint command line arguments.
|
|
args: --exclude-use-default --disable-all -E deadcode -E errcheck -E gosimple -E govet -E ineffassign -E staticcheck -E structcheck -E typecheck -E unused -E varcheck -E dupl -E exhaustive -E exportloopref -E goconst -E gocritic -E goerr113 -E gofmt -E goimports -E golint -E gomnd -E goprintffuncname -E gosec -E interfacer -E lll -E maligned -E misspell -E nakedret -E nestif -E nolintlint -E prealloc -E scopelint -E unconvert -E unparam
|
|
# Optional: show only new issues if it's a pull request. The default value is `false`.
|
|
only-new-issues: true
|