Skip to content
Snippets Groups Projects
Commit 5a9236f0 authored by Christoph Witzko's avatar Christoph Witzko
Browse files

style: add .golangci-lint.yaml

parent ebff85b0
No related branches found
No related tags found
No related merge requests found
linters:
enable:
- errorlint
- forbidigo
- gochecknoinits
- gocritic
- goconst
- gocyclo
- gofumpt
- goimports
- misspell
- revive
- unconvert
- unparam
- wastedassign
linters-settings:
gocyclo:
min-complexity: 12
gofumpt:
extra-rules: true
govet:
enable-all: true
disable:
- fieldalignment
package condition
import (
"io/ioutil"
"os"
"strings"
)
func ReadGitHead() string {
data, err := ioutil.ReadFile(".git/HEAD")
data, err := os.ReadFile(".git/HEAD")
if err != nil {
return ""
}
......@@ -15,8 +15,7 @@ func ReadGitHead() string {
var CIVERSION = "dev"
type DefaultCI struct {
}
type DefaultCI struct{}
func (d *DefaultCI) Version() string {
return CIVERSION
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment