Skip to content

Commit

Permalink
Use less strict lint settings.
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Souza <asouza.pro@gmail.com>
  • Loading branch information
artursouza committed Jul 22, 2024
1 parent b4ae0e3 commit 00c2952
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ jobs:
- uses: actions/setup-go@v5
- uses: golangci/golangci-lint-action@v3.7.0
with:
args: --enable-all
version: v1.55.2
- run: go test -v --race ./...
27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
################################################################################
# Target: lint #
################################################################################
# Please use golangci-lint with matching version, otherwise you might encounter errors.
# You can download at https://github.com/golangci/golangci-lint/releases/
# Check .github/wortkflows/test.yaml for the version used in GitHub actions.

ifeq ($(GOOS),windows)
GOLANGCI_LINT:=golangci-lint.exe
else
GOLANGCI_LINT:=golangci-lint
endif

.PHONY: lint
lint:
$(GOLANGCI_LINT) run --timeout=20m


################################################################################
# Target: check-linter #
################################################################################
.SILENT: check-linter # Silence output other than the application run
.PHONY: check-linter
check-linter:
$(RUN_BUILD_TOOLS) check-linter


################################################################################
# Target: modtidy #
################################################################################
Expand Down

0 comments on commit 00c2952

Please sign in to comment.