Skip to content

Commit

Permalink
consolidating golangci with gocron
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelarte committed Nov 18, 2024
1 parent 8cae5b9 commit 7501618
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- main

name: golangci-lint
name: lint and test
jobs:
golangci:
strategy:
Expand Down
20 changes: 5 additions & 15 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ run:
timeout: 5m
issues-exit-code: 1
tests: true
skip-dirs:
- local

issues:
max-same-issues: 100
exclude-dirs:
- local
exclude-rules:
- path: _test\.go
linters:
- bodyclose
- errcheck
- gosec
fix: true

linters:
enable:
Expand All @@ -32,21 +33,10 @@ linters:
- whitespace

output:
# colored-line-number|line-number|json|tab|checkstyle|code-climate, default is "colored-line-number"
format: colored-line-number
# print lines of code with issue, default is true
formats:
- format: colored-line-number
print-issued-lines: true
# print linter name in the end of issue text, default is true
print-linter-name: true
# make issues output unique by line, default is true
uniq-by-line: true
# add a prefix to the output file references; default is no prefix
path-prefix: ""
# sorts results by: filepath, line and column
sort-results: true

linters-settings:
golint:
min-confidence: 0.8

fix: true

0 comments on commit 7501618

Please sign in to comment.