aboutsummaryrefslogtreecommitdiff
path: root/containers/go-fmt/README.rst
blob: 132c776b180946ea7a9e9036e696a256c47af496 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
=============================================
Container for running go fmt code style check
=============================================

This container provides a simple way to invoke ``go fmt`` to validate code
style across a Golang codebase. It should be integrated into a CI by adding
the following snippet to ``.gitlab-ci.yml``

::

   go-fmt:
     stage: prebuild
     image: registry.gitlab.com/libvirt/libvirt-ci/go-fmt:latest
     script:
       - /go-fmt
     artifacts:
       paths:
         - go-fmt.patch
       expire_in: 1 week
       when: on_failure