cmd/cli/handler_janitor.go
Function purge
has 51 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func purge(cmd *cobra.Command, args []string, sl *servicelocatorx.Options, dOpts []driver.OptionsModifier) error {
ctx := cmd.Context()
var d driver.Registry
co := []configx.OptionModifier{
Function cleanupRun
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func cleanupRun(ctx context.Context, notAfter time.Time, limit int, batchSize int, routines ...cleanupRoutine) error {
Method JanitorHandler.Args
has 5 return statements (exceeds 4 allowed). Open
Open
func (*JanitorHandler) Args(cmd *cobra.Command, args []string) error {
if len(args) == 0 &&
!flagx.MustGetBool(cmd, ReadFromEnv) &&
len(flagx.MustGetStringSlice(cmd, Config)) == 0 {