Skip to content

Exclude dot-files from being linted

Matthias Käppler requested to merge mk/fmt-no-dot-files into master

This was matching .go files in my local .git folder:

[11:01:55] gl-gck/gitlab-workhorse::b5dab70 ✗ make fmt
### install-goimports
go install golang.org/x/tools/cmd/goimports
### fmt
./.git/logs/refs/remotes/origin/jv-cleanup-main.go:1:63: expected ';', found 4
./.git/logs/refs/remotes/origin/jv-cleanup-main.go:1:133: illegal character U+0040 '@'
./.git/logs/refs/remotes/origin/jv-cleanup-main.go:2:2: expected '}', found 'EOF'
./.git/refs/remotes/origin/jv-cleanup-main.go:1:23: expected ';', found f0d3823f17fabd83afc108dd9dfca375c8c94c1
./.git/refs/remotes/origin/jv-cleanup-main.go:2:2: expected '}', found 'EOF'
make: *** [Makefile:161: fmt] Error 2

Let's just exclude all hidden files.

Edited by Matthias Käppler

Merge request reports