Skip to content

add supporting of lint without errors #19

add supporting of lint without errors

add supporting of lint without errors #19

Triggered via pull request October 7, 2024 09:22
Status Failure
Total duration 40s
Artifacts

go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
build: parse_test.go#L34
Error return value of `conv.Convert` is not checked (errcheck)
build: parse_test.go#L44
Error return value of `conv.Convert` is not checked (errcheck)
build: parse_test.go#L56
Error return value of `conv.Convert` is not checked (errcheck)
build: unwrap.go#L177
cognitive complexity 45 of func `(*RAML).FindAndMarkRecursion` is high (> 30) (gocognit)
build: complex_test.go#L237
cognitive complexity 39 of func `TestArrayShape_Inherit` is high (> 30) (gocognit)
build: scalars.go#L201
cognitive complexity 31 of func `(*IntegerShape).unmarshalYAMLNodes` is high (> 30) (gocognit)
build: validate.go#L10
cognitive complexity 31 of func `(*RAML).validateTypes` is high (> 30) (gocognit)
build: jsonschemaconv.go#L266
string `rfc2616` has 5 occurrences, make it a constant (goconst)
build: jsonschemaconv.go#L264
string `rfc3339` has 7 occurrences, make it a constant (goconst)
build: scalars_test.go#L1865
regexpMust: for const patterns like "^[a-z]+$", use regexp.MustCompile (gocritic)
build
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-go@v4. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/