Skip to content

Commit

Permalink
docs: improve args examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Jun 11, 2023
1 parent 825a50d commit 5be60c7
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ Add `.github/workflows/golangci-lint.yml` with the following contents:
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:

permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
# pull-requests: read

jobs:
golangci:
name: lint
Expand All @@ -56,7 +56,7 @@ jobs:
#
# Note: by default the `.golangci.yml` file should be at the root of the repository.
# The location of the configuration file can be changed by using `--config=`
# args: --config=/my/path/.golangci.yml --issues-exit-code=0
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
Expand All @@ -83,8 +83,6 @@ If you need to run linters for specific operating systems, you will need to use
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
- main
Expand Down Expand Up @@ -122,7 +120,7 @@ jobs:
#
# Note: by default the `.golangci.yml` file should be at the root of the repository.
# The location of the configuration file can be changed by using `--config=`
# args: --config=/my/path/.golangci.yml --issues-exit-code=0
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0

# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
Expand Down

0 comments on commit 5be60c7

Please sign in to comment.