Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ashanbrown authored and pohly committed Jan 29, 2023
1 parent 84bab94 commit aaf6ad7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
linters:
enable:
- prealloc
- nakedret
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
repos:
- repo: https://github.com/golangci/golangci-lint
rev: v1.44.2
rev: v1.50.1
hooks:
- id: golangci-lint
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
SHELL=bash

setup:
pre-commit install

test:
cd examples && diff <(sed 's|CURDIR|$(CURDIR)|' expected_results.txt) <(go run .. 2>&1 | sed '/^go: downloading/d')

lint:
pre-commit run --all-files

.PHONY: lint test

0 comments on commit aaf6ad7

Please sign in to comment.