File tree 3 files changed +5
-6
lines changed
3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ linters-settings:
7
7
desc : " logging is allowed only by zerolog"
8
8
dupl :
9
9
threshold : 100
10
+ forbidigo :
11
+ forbid :
12
+ - ' fmt\.Print.*' # This will catch Printf, Println, Print
10
13
funlen :
11
14
lines : 100
12
15
statements : 100
@@ -70,6 +73,7 @@ linters:
70
73
- dogsled
71
74
- errcheck
72
75
- copyloopvar
76
+ - forbidigo
73
77
- funlen
74
78
- gochecknoinits
75
79
- goconst
Original file line number Diff line number Diff line change @@ -2,7 +2,6 @@ package main
2
2
3
3
import (
4
4
"context"
5
- "fmt"
6
5
"os"
7
6
"os/signal"
8
7
@@ -97,7 +96,4 @@ func main() {
97
96
// Wait for the context to be cancelled
98
97
// either by a signal or by the command completing
99
98
<- localCtx .Done ()
100
-
101
- // Print a newline to ensure the next prompt is on a new line
102
- fmt .Println ()
103
99
}
Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ import (
16
16
17
17
func main () {
18
18
if len (os .Args ) != 2 {
19
- fmt .Println ("Please provide the path to the config directory." )
20
- os .Exit (1 )
19
+ log .Fatal ("Please provide the path to the config directory" )
21
20
}
22
21
pkgPath := os .Args [1 ]
23
22
You can’t perform that action at this time.
0 commit comments