Skip to content

Commit aaf6ad7

Browse files
ashanbrownpohly
authored andcommitted
Fix lint
1 parent 84bab94 commit aaf6ad7

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
linters:
22
enable:
33
- prealloc
4+
- nakedret

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
repos:
22
- repo: https://github.com/golangci/golangci-lint
3-
rev: v1.44.2
3+
rev: v1.50.1
44
hooks:
55
- id: golangci-lint

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
SHELL=bash
22

3+
setup:
4+
pre-commit install
5+
36
test:
47
cd examples && diff <(sed 's|CURDIR|$(CURDIR)|' expected_results.txt) <(go run .. 2>&1 | sed '/^go: downloading/d')
8+
9+
lint:
10+
pre-commit run --all-files
11+
12+
.PHONY: lint test

0 commit comments

Comments
 (0)