sjansen/messageformat

View on GitHub
internal/compiler/compiler.go

Summary

Maintainability
A
40 mins
Test Coverage

Function compile has 6 return statements (exceeds 4 allowed).
Open

func compile(lang language.Tag, msg *ast.Message, n *numberSign) (*Message, error) {
    parts := make([]part, 0, len(msg.Parts))
    for _, part := range msg.Parts {
        switch x := part.(type) {
        case *ast.NumberSign:
Severity: Major
Found in internal/compiler/compiler.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status