Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

consolidating golangci with gocron #42

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading