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
2023-05-17Ensure to use configured timeouts in http.ServerKassio Borges
2023-05-08Upgrade golangci-lint to v1.52.2 on CIJaime Martinez
2022-06-06Bump golangci-lint to 1.46.2feistel
2022-05-02Add nolintlint linter configurationfeistel
Require an explanation for nolint rules and warn about unused rules
2022-02-04Merge branch 'test/move-mocks' into 'master'Vladimir Shushlin
test: move mocks to their own package See merge request gitlab-org/gitlab-pages!671
2022-02-02build: replace golint with revive and staticcheckfeistel
2022-01-26test: move mocks to their own packagefeistel
2022-01-24build: enable errorlint linterfeistel
2022-01-24build: add gci to lintersfeistel
2022-01-20ci: only skip golangci for internal/mocksfeistel
2021-12-07refactor: enable unparam in .golangci.ymlVladimir Shushlin
and fix offences
2021-11-22test: add nolintlint linterfeistel
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