go-sprout/sprout

View on GitHub
registry/slices/functions.go

Summary

Maintainability
A
1 hr
Test Coverage

SlicesRegistry has 22 methods (exceeds 20 allowed). Consider refactoring.
Wontfix

func (sr *SlicesRegistry) List(values ...any) []any {
    return values
}
Severity: Minor
Found in registry/slices/functions.go - About 2 hrs to fix

    Method SlicesRegistry.Slice has 8 return statements (exceeds 4 allowed).
    Open

    func (sr *SlicesRegistry) Slice(args ...any) (any, error) {
        // ! BACKWARDS COMPATIBILITY: deprecated in v1.0 and removed in v1.1
        // ! Due to change in signature, this function still supports the old signature
        // ! to let users transition to the new signature.
        // * Old signature: Slice(list any, indices ...any)
    Severity: Major
    Found in registry/slices/functions.go - About 50 mins to fix

      Method SlicesRegistry.Append has 5 return statements (exceeds 4 allowed).
      Open

      func (sr *SlicesRegistry) Append(args ...any) ([]any, error) {
          // ! BACKWARDS COMPATIBILITY: deprecated in v1.0 and removed in v1.1
          // ! Due to change in signature, this function still supports the old signature
          // ! to let users transition to the new signature.
          // * Old signature: Append(list any, v any)
      Severity: Major
      Found in registry/slices/functions.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status