Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-08-11Vendor Go 1.14 filepath.EvalSymlinks codeJacob Vosmaer
2020-06-01Enable the remaining lintersJaime Martinez
- ineffassign - misspell - structcheck - typecheck - unconvert - unused - varcheck - whitespace
2020-06-01Enable bodyclose linterJaime Martinez
2020-06-01Enable deadcode linterJaime Martinez
2020-05-28Revert goconst changes in auth_test.goJaime Martinez
2020-05-28Add lint and lint-docker rules to MakefileJaime Martinez
Remove references to ./bin/golint, ./bin/gocycle and remove _support/ directory. Add formatting rule to .golangci.yml for goimports and local imports.
2020-05-28Use readonly for modules in linterJaime Martinez
2020-05-28Add .golangci.yml linter configurationJaime Martinez
As part of https://gitlab.com/gitlab-org/gitlab-pages/-/issues/385 we have introduced the use of a custom `.golangci.yml` file with some custom rules for linting. This replaces the need of downloading and using `golint`, `gofmt` `go vet` and `gocyclo` manually. We take advantage of the custom `golangci-lint` docker image as stated in the [Automatic lintinb] (https://docs.gitlab.com/ee/development/go_guide/#automatic-linting) section of the Go standards and style guidelines. This iteration enables a subset of linters, with the remaining of them enabled on a separate MR as described in the issue above. The main changes introduced by this linter include: - gosec: potential hardcoded credentials - goconst: DRY by declaring and using constants - gosimple: reduce statements complexity and improve return statements