sjansen/messageformat

View on GitHub
internal/parser/parser.go

Summary

Maintainability
A
1 hr
Test Coverage

Function parseArgument has 8 return statements (exceeds 4 allowed).
Open

func parseArgument(dec *decoder.Decoder, depth int) (ast.Part, error) {
    if err := requireRune(dec, '{'); err != nil {
        return nil, err
    }

Severity: Major
Found in internal/parser/parser.go - About 50 mins to fix

    Function parseMessage has 5 return statements (exceeds 4 allowed).
    Open

    func parseMessage(dec *decoder.Decoder, depth int, inPlural bool) ([]ast.Part, error) {
        parts := []ast.Part{}
        if depth > 0 {
            if err := requireRune(dec, '{'); err != nil {
                return nil, err
    Severity: Major
    Found in internal/parser/parser.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status