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:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user