1
0
mirror of https://github.com/mgechev/revive.git synced 2025-11-23 22:04:49 +02:00

chore: enable a few revive rules (#1330)

This commit is contained in:
Oleksandr Redko
2025-05-01 12:40:29 +03:00
committed by GitHub
parent dbcfd66945
commit a5e5d78760
13 changed files with 19 additions and 23 deletions

View File

@@ -33,7 +33,7 @@ var (
func fail(err string) {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
os.Exit(1) //revive:disable-line:deep-exit
}
// RunRevive runs the CLI for revive.
@@ -44,7 +44,7 @@ func RunRevive(extraRules ...revivelib.ExtraRule) {
if versionFlag {
fmt.Print(getVersion(builtBy, date, commit, version))
os.Exit(0)
return
}
conf, err := config.GetConfig(configPath)
@@ -87,7 +87,7 @@ func RunRevive(extraRules ...revivelib.ExtraRule) {
fmt.Println(output)
}
os.Exit(exitCode)
os.Exit(exitCode) //revive:disable-line:deep-exit
}
var (