diff options
author | Vladimir Shushlin <vshushlin@gitlab.com> | 2022-02-04 18:51:59 +0300 |
---|---|---|
committer | Vladimir Shushlin <vshushlin@gitlab.com> | 2022-02-04 18:51:59 +0300 |
commit | d4a251ae1bb492fee8af0d3d3619bdd3f5bfc1c0 (patch) | |
tree | 482c57a73dcad998a599ba58dab7df8ecaca8259 /.golangci.yml | |
parent | f2fd9a8e0b4778991adf054ef8f3a7244200a60d (diff) | |
parent | f4abddf5dce3f96b7e25ab76135feffdc9f5f986 (diff) |
Merge branch 'test/move-mocks' into 'master'
test: move mocks to their own package
See merge request gitlab-org/gitlab-pages!671
Diffstat (limited to '.golangci.yml')
-rw-r--r-- | .golangci.yml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/.golangci.yml b/.golangci.yml index c9fc0444..3b472def 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,17 +1,17 @@ run: - # which dirs to skip: issues from them won't be reported; - # can use regexp here: generated.*, regexp is applied on full path; - # default value is empty list, but default dirs are skipped independently - # from this option's value (see skip-dirs-use-default). - # "/" will be replaced by current OS file path separator to properly work - # on Windows. - skip-dirs: - - internal/mocks - # default is true. Enables skipping of directories: # vendor$, third_party$, testdata$, examples$, Godeps$, builtin$ skip-dirs-use-default: false + # Which files to skip: they will be analyzed, but issues from them won't be reported. + # Default value is empty list, + # but there is no need to include all autogenerated files, + # we confidently recognize autogenerated files. + # If it's not please let us know. + # "/" will be replaced by current OS file path separator to properly work on Windows. + skip-files: + - _mock\.go + # by default isn't set. If set we pass it to "go list -mod={option}". From "go help modules": # If invoked with -mod=readonly, the go command is disallowed from the implicit # automatic updating of go.mod described above. Instead, it fails when any changes |