Skip to content

Commit

Permalink
DEVOPS-5350: Update golangci-lint to the latest version (#9)
Browse files Browse the repository at this point in the history
* build: add bootstrap script

* feat(golangci-lint): update to v1.43.0
  • Loading branch information
tagoro9 authored Dec 15, 2021
1 parent da378b8 commit 5f25cfa
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions script/README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

This directory contains scripts which are useful for repository management.

- `bootstrap` - Prepare your local environment to work with this repository
- `build` - Builds container images in a consistent manner
17 changes: 17 additions & 0 deletions script/bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash

set -e

# Bash color variables
COLOR_GREEN="\x1b[32;01m"
COLOR_RESET="\x1b[39;49;00m"

echo -e "🚀 Bootstrapping project..."$COLOR_RESET

if [[ $CI != "true" ]]; then
echo -e "⚓ Setting up commit hooks"
pre-commit install
pre-commit install --hook-type commit-msg
fi

echo -e $COLOR_GREEN"✅ Done\n"$COLOR_RESE
2 changes: 1 addition & 1 deletion versions.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ docker_compose_version=1.29.2
gocyclo_version=0.3.1
goimports_version=0.1.5
golang_version=1.16-buster
golangci_lint_version=1.41.1
golangci_lint_version=1.43.0
gosec_version=2.8.1
gotools_version=1.0.0
pre_commit_version=2.13.0

0 comments on commit 5f25cfa

Please sign in to comment.