Skip to content

Commit

Permalink
Added documentation for local use of golangci-lint
Browse files Browse the repository at this point in the history
/kind documentation
  • Loading branch information
bendory authored and tekton-robot committed Dec 21, 2022
1 parent 2f69f1e commit e82a233
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,15 @@ You must install these tools:
generate code and update dependencies. On MacOS the default bash is too old,
you can use [Homebrew](https://brew.sh) to install a later version.

1. (Optional)
[`golangci-lint`](https://golangci-lint.run/usage/install/#local-installation)
is run against every PR. You may want to install and [run this tool
locally](https://golangci-lint.run/usage/quick-start) to iterate quickly on
linter issues.

> **Note** Linter findings are dependent on your installed Go version. Match
the version in [`go.mod`](go.mod) to match the findings in your PR.

### Configure environment

To [build, deploy and run your Tekton Objects with `ko`](#install-pipeline), you'll need to set these environment variables:
Expand Down

0 comments on commit e82a233

Please sign in to comment.