go-sprout/sprout

View on GitHub
registry/maps/functions.go

Summary

Maintainability
A
1 hr
Test Coverage

Method MapsRegistry.Omit has 5 return statements (exceeds 4 allowed).
Open

func (mr *MapsRegistry) Omit(args ...any) (map[string]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: Omit(map[string]any, ...string)
Severity: Major
Found in registry/maps/functions.go - About 35 mins to fix

    Method MapsRegistry.Pick has 5 return statements (exceeds 4 allowed).
    Open

    func (mr *MapsRegistry) Pick(args ...any) (map[string]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: Pick(map[string]any, ...string)
    Severity: Major
    Found in registry/maps/functions.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status