Skip to content

Commit bd8185e

Browse files
deitcheriknordmark
authored andcommitted
add yetus
Signed-off-by: Avi Deitcher <[email protected]>
1 parent 2840469 commit bd8185e

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed

.github/workflows/yetus.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# NOTE that this is the only workflow that requires access to the
2+
# GitHub token. However, it is safe since in EVE repo itself we
3+
# only trigger this workflow on pull requests and as such making
4+
# it effectively read-only.
5+
# yamllint disable rule:line-length
6+
# https://docs.github.com/en/free-pro-team@latest/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token
7+
# yamllint enable rule:line-length
8+
---
9+
name: Apache Yetus
10+
on: # yamllint disable-line rule:truthy
11+
pull_request:
12+
branches:
13+
- "master"
14+
- "[0-9]+.[0-9]+"
15+
- "[0-9]+.[0-9]+-stable"
16+
17+
jobs:
18+
yetus:
19+
runs-on: ubuntu-20.04
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v3
23+
with:
24+
path: src
25+
fetch-depth: 0
26+
27+
- name: Yetus
28+
uses: apache/[email protected]
29+
with:
30+
basedir: ./src
31+
buildtool: nobuild
32+
continuousimprovement: true
33+
githubtoken: ${{ secrets.GITHUB_TOKEN }}
34+
patchdir: ./out
35+
reviveconfig: .revive.toml
36+
37+
- name: Store Yetus artifacts
38+
if: ${{ always() }}
39+
uses: actions/upload-artifact@v3
40+
with:
41+
name: 'yetus-scan'
42+
path: ${{ github.workspace }}/out

.revive.toml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
ignoreGeneratedHeader = false
2+
severity = "warning"
3+
confidence = 0.8
4+
errorCode = 0
5+
warningCode = 0
6+
7+
[rule.blank-imports]
8+
[rule.context-as-argument]
9+
[rule.context-keys-type]
10+
[rule.dot-imports]
11+
[rule.error-return]
12+
[rule.error-naming]
13+
[rule.exported]
14+
[rule.if-return]
15+
[rule.increment-decrement]
16+
[rule.var-naming]
17+
[rule.var-declaration]
18+
#[rule.package-comments]
19+
[rule.range]
20+
[rule.receiver-naming]
21+
[rule.time-naming]
22+
[rule.unexported-return]
23+
# FIXME [rule.indent-error-flow]
24+
[rule.errorf]
25+
# FIXME [rule.empty-block]
26+
# FIXME [rule.superfluous-else]
27+
# FIXME [rule.unused-parameter]
28+
[rule.unreachable-code]
29+
[rule.redefines-builtin-id]

0 commit comments

Comments
 (0)