SF initial configurator | 1508907 | 2022-10-06 13:33:19 +0300 | [diff] [blame^] | 1 | --- |
2 | - name: Run golint | ||||
3 | shell: > | ||||
4 | find * -name "*.go" | xargs --no-run-if-empty golint -set_exit_status | ||||
5 | register: _golint | ||||
6 | ignore_errors: yes | ||||
7 | environment: | ||||
8 | PATH: "{{ ansible_env.PATH }}:{{ ansible_env.HOME }}/.local/bin" | ||||
9 | args: | ||||
10 | chdir: "{{ zuul.project.src_dir }}" | ||||
11 | |||||
12 | - name: Set linter failure to true | ||||
13 | set_fact: | ||||
14 | linter_failure: true | ||||
15 | when: _golint.rc |