Skip to content
Snippets Groups Projects
  1. May 04, 2022
  2. Dec 07, 2020
  3. Sep 10, 2020
  4. Jul 30, 2020
  5. May 28, 2020
    • Jaime Martinez's avatar
      Add .golangci.yml linter configuration · f6dfa5d0
      Jaime Martinez authored
      As part of gitlab-org/gitlab-pages#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
      Verified
      f6dfa5d0
  6. May 08, 2020
    • Jaime Martinez's avatar
      Enforce loading secrets from file · cf03e89e
      Jaime Martinez authored and Vladimir Shushlin's avatar Vladimir Shushlin committed
      Passing secrets via command line is not allowed anymore.
      A config file should be used instead. The default filename is
      `gitlab-pages-config`. The following command line options will
      throw an error and prevent pages from running if set explicitly:
      
      - `-auth-client-id`
      - `-auth-client-secret`
      - `-auth-secret`
      cf03e89e
  7. Oct 07, 2019
  8. Sep 11, 2019
  9. Apr 23, 2018
  10. Apr 13, 2018
  11. Sep 29, 2017
  12. Sep 08, 2016
  13. Feb 11, 2016
  14. Jan 07, 2016
Loading