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
2021-01-28Define separator for MultiStringFlagJaime Martinez
Allows initializing each MultiStringFlag using its own separator and defaults to `,` when not specified. This change makes the `-header` flag use a `;;` separator so that it can be defined inside a config file. Fixes https://gitlab.com/gitlab-org/gitlab-pages/-/issues/531.
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
2020-01-22update error message for multistringflag Set and update unit testJaime Martinez
2020-01-20remove skipping empty string on split, return error when calling Set with an ↵Jaime Martinez
empty value
2020-01-15update multiple value test caseJaime Martinez
2020-01-15update test case comment for multistring splitJaime Martinez
2020-01-15skip empty string when spliting MultiStringFlagJaime Martinez
2018-03-09Use require.NoError to halt tests after errorsJacob Vosmaer
2017-09-22Fix Go importsNick Thomas
2016-09-09Add a simple test for MultiStringFlagNick Thomas