From e82a233bc4c2efa065408f880a95ad95b3f1be83 Mon Sep 17 00:00:00 2001 From: David Bendory Date: Tue, 20 Dec 2022 11:59:23 -0500 Subject: [PATCH] Added documentation for local use of golangci-lint /kind documentation --- DEVELOPMENT.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 2d57a2863f5..f38c9f1b967 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -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: