mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-19 20:57:53 +02:00
docs: lint with misspell
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
parent
728154b7d7
commit
0a8478bf19
@ -13,7 +13,6 @@ env:
|
|||||||
- PATH=/snap/bin:$PATH
|
- PATH=/snap/bin:$PATH
|
||||||
install:
|
install:
|
||||||
- make setup
|
- make setup
|
||||||
- npm install -g prettier
|
|
||||||
- sudo snap install snapcraft --classic
|
- sudo snap install snapcraft --classic
|
||||||
script:
|
script:
|
||||||
- make ci
|
- make ci
|
||||||
|
4
Makefile
4
Makefile
@ -10,6 +10,7 @@ export GOPROXY := https://gocenter.io
|
|||||||
setup:
|
setup:
|
||||||
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh
|
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh
|
||||||
curl -sfL https://install.goreleaser.com/github.com/gohugoio/hugo.sh | sh
|
curl -sfL https://install.goreleaser.com/github.com/gohugoio/hugo.sh | sh
|
||||||
|
curl -L https://git.io/misspell | sh
|
||||||
go mod download
|
go mod download
|
||||||
.PHONY: setup
|
.PHONY: setup
|
||||||
|
|
||||||
@ -26,14 +27,13 @@ cover: test
|
|||||||
# gofmt and goimports all go files
|
# gofmt and goimports all go files
|
||||||
fmt:
|
fmt:
|
||||||
find . -name '*.go' -not -wholename './vendor/*' | while read -r file; do gofmt -w -s "$$file"; goimports -w "$$file"; done
|
find . -name '*.go' -not -wholename './vendor/*' | while read -r file; do gofmt -w -s "$$file"; goimports -w "$$file"; done
|
||||||
# find . -name '*.md' -not -wholename './vendor/*' | xargs prettier --write
|
|
||||||
.PHONY: fmt
|
.PHONY: fmt
|
||||||
|
|
||||||
# Run all the linters
|
# Run all the linters
|
||||||
lint:
|
lint:
|
||||||
# TODO: fix tests and lll issues
|
# TODO: fix tests and lll issues
|
||||||
./bin/golangci-lint run --tests=false --enable-all --disable=lll ./...
|
./bin/golangci-lint run --tests=false --enable-all --disable=lll ./...
|
||||||
# find . -name '*.md' -not -wholename './vendor/*' | xargs prettier -l
|
./bin/misspell -error **/*
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
|
|
||||||
# Run all the tests and code checks
|
# Run all the tests and code checks
|
||||||
|
@ -5,7 +5,7 @@ weight: 500
|
|||||||
hideFromIndex: true
|
hideFromIndex: true
|
||||||
---
|
---
|
||||||
|
|
||||||
This page will be used to list deprecation notices accross GoReleaser.
|
This page will be used to list deprecation notices across GoReleaser.
|
||||||
|
|
||||||
Deprecate code will be removed after ~6 months from the time it was deprecated.
|
Deprecate code will be removed after ~6 months from the time it was deprecated.
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ puts:
|
|||||||
username: deployuser
|
username: deployuser
|
||||||
|
|
||||||
# An optional header you can use to tell GoReleaser to pass the artifact's
|
# An optional header you can use to tell GoReleaser to pass the artifact's
|
||||||
# SHA256 checksum withing the upload request.
|
# SHA256 checksum within the upload request.
|
||||||
# Default is empty.
|
# Default is empty.
|
||||||
checksum_header: -X-SHA256-Sum
|
checksum_header: -X-SHA256-Sum
|
||||||
|
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Loading…
x
Reference in New Issue
Block a user