Skip to content

schema: support parsing and formatting of cedarschema files #238

schema: support parsing and formatting of cedarschema files

schema: support parsing and formatting of cedarschema files #238

Re-run triggered February 10, 2025 17:49
Status Failure
Total duration 40s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 10 warnings
lint: schema/internal/convert/convert_test.go#L48
Error return value of `os.WriteFile` is not checked (errcheck)
lint: schema/internal/parser/parser_test.go#L110
Error return value of `os.WriteFile` is not checked (errcheck)
lint: schema/ast/json_test.go#L44
func `hash` is unused (unused)
lint: schema/token/token.go#L25
the type name `ErrList` should conform to the `XxxErrors` format (errname)
lint: schema/schema.go#L39
ineffectual assignment to options (ineffassign)
lint: schema/internal/parser/parser.go#L323
ineffectual assignment to comments (ineffassign)
lint
issues found
lint: schema/token/token.go#L34
unchecked-type-assertion: type cast result is unchecked in e1.(Error) - type assertion will panic if not matched (revive)
lint: schema/token/token.go#L35
unchecked-type-assertion: type cast result is unchecked in e2.(Error) - type assertion will panic if not matched (revive)
lint: schema/internal/parser/parser.go#L208
redefines-builtin-id: redefinition of the built-in function close (revive)
lint: schema/internal/parser/parser.go#L35
unused-parameter: parameter 'opts' seems to be unused, consider removing or renaming it as _ (revive)
lint: schema/internal/format/format.go#L99
cognitive-complexity: function (*formatter).print has cognitive complexity 87 (> max enabled 65) (revive)
lint: schema/internal/format/format.go#L116
increment-decrement: should replace p.indent += 1 with p.indent++ (revive)
lint: schema/internal/format/format.go#L118
increment-decrement: should replace p.indent -= 1 with p.indent-- (revive)
lint: schema/internal/format/format.go#L121
increment-decrement: should replace p.indent += 1 with p.indent++ (revive)
lint: schema/internal/format/format.go#L123
increment-decrement: should replace p.indent -= 1 with p.indent-- (revive)
lint: schema/internal/format/format.go#L146
increment-decrement: should replace p.indent += 1 with p.indent++ (revive)