add golang lint ci #1
Annotations
10 errors and 2 warnings
lint:
driver_mysql.go#L18
func `normalizeDNS` is unused (unused)
|
lint:
driver_mysql.go#L30
func `normalizeMySQLDSN` is unused (unused)
|
lint:
dumper.go#L218
S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (gosimple)
|
lint:
loader.go#L22
S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (gosimple)
|
lint:
loader.go#L26
S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (gosimple)
|
lint:
migration_test.go#L91
ineffectual assignment to currentVersion (ineffassign)
|
lint:
parser.go#L89
SA6002: argument should be pointer-like to avoid allocations (staticcheck)
|
lint:
parser.go#L245
SA6002: argument should be pointer-like to avoid allocations (staticcheck)
|
lint:
strcase.go#L73
SA1019: strings.Title has been deprecated since Go 1.18 and an alternative has been available since Go 1.0: The rule Title uses for word boundaries does not handle Unicode punctuation properly. Use golang.org/x/text/cases instead. (staticcheck)
|
lint:
parser_test.go#L4
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package [io] or package [os], and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
|
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4, actions/checkout@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
lint
Restore cache failed: Dependencies file is not found in /home/runner/work/rockhopper/rockhopper. Supported file pattern: go.sum
|