File tree Expand file tree Collapse file tree 3 files changed +30
-28
lines changed Expand file tree Collapse file tree 3 files changed +30
-28
lines changed Original file line number Diff line number Diff line change 15
15
name : Build and test go-alpm
16
16
runs-on : ubuntu-latest
17
17
container :
18
- image : jguer/goalpm -builder:latest
18
+ image : jguer/yay -builder:latest
19
19
steps :
20
20
- name : Checkout
21
21
uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -15,22 +15,11 @@ jobs:
15
15
name : Build and test go-alpm
16
16
runs-on : ubuntu-latest
17
17
container :
18
- image : jguer/goalpm -builder:latest
18
+ image : jguer/yay -builder:latest
19
19
steps :
20
20
- name : Checkout
21
21
uses : actions/checkout@v2
22
22
- name : Lint
23
23
run : /app/bin/golangci-lint run ./...
24
24
- name : Run Build and Tests
25
- run : make test
26
- - name : Build and install pacman-git
27
- run : |
28
- useradd github
29
- pacman -Sy --noconfirm --needed sudo base-devel git
30
- echo "github ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
31
- git clone https://aur.archlinux.org/pacman-git
32
- chown -R github pacman-git
33
- su github -c "cd pacman-git; yes | makepkg -si --nocheck"
34
- - name : Run Build and Tests with pacman-git
35
- run : make test
36
-
25
+ run : make test
Original file line number Diff line number Diff line change @@ -14,42 +14,52 @@ linters-settings:
14
14
- opinionated
15
15
- performance
16
16
- style
17
- disabled-checks :
18
- - dupImport
19
17
gocyclo :
20
18
min-complexity : 15
21
19
goimports :
22
- local-prefixes : github.com/Jguer/go-alpm/v2
20
+ local-prefixes : github.com/Jguer/yay/v12
23
21
gomnd :
24
- settings :
25
- mnd :
26
- # don't include the "operation" and "assign"
27
- checks : argument,case,condition,return
28
- govet :
29
- check-shadowing : true
22
+ checks :
23
+ - argument
24
+ - case
25
+ - condition
26
+ - return
27
+ ignored-numbers :
28
+ - " 0"
29
+ - " 1"
30
+ - " 2"
31
+ - " 3"
32
+ ignored-functions :
33
+ - strings.SplitN
30
34
lll :
31
35
line-length : 140
32
- maligned :
33
- suggest-new : true
34
36
misspell :
35
37
locale : US
38
+ nolintlint :
39
+ allow-unused : false # report any unused nolint directives
40
+ require-explanation : false # don't require an explanation for nolint directives
41
+ require-specific : false # don't require nolint directives to be specific about which linter is being skipped
36
42
37
43
linters :
38
44
# please, do not use `enable-all`: it's deprecated and will be removed soon.
39
45
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
40
46
disable-all : true
41
47
enable :
48
+ - forbidigo
42
49
- bodyclose
43
- - depguard
44
50
- dogsled
45
51
- dupl
46
- - errcheck
47
52
- errorlint
53
+ - errcheck
48
54
- exportloopref
55
+ # - funlen # TOFIX
49
56
- gochecknoinits
57
+ # - goconst # TOFIX
50
58
- gocritic
59
+ # - gocyclo # TOFIX
51
60
- gofmt
52
61
- goimports
62
+ # - gomnd # TOFIX
53
63
- goprintffuncname
54
64
- gosec
55
65
- gosimple
@@ -69,10 +79,12 @@ linters:
69
79
- whitespace
70
80
71
81
run :
82
+ go : " 1.22"
83
+ timeout : " 10m"
72
84
73
85
issues :
74
86
exclude-rules :
75
- - path : _test\ .go
87
+ - path : (.+) _test.go
76
88
linters :
77
89
- lll
78
90
- revive
@@ -84,6 +96,7 @@ issues:
84
96
- dupl
85
97
- gocritic
86
98
- gochecknoinits
99
+ - errorlint
87
100
88
101
exclude :
89
102
- G204
You can’t perform that action at this time.
0 commit comments