Add staticmajor code analyzer (#1738)

This commit is contained in:
Alexander Peters
2023-12-01 09:21:16 +01:00
committed by GitHub
parent c20e824e9c
commit c686760e18

25
.github/workflows/staticmajor.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
# Staticmajor: Static analyzer to catch leaking resources & other bad code patterns
name: Detect leaking resources and bad code patterns
on:
pull_request:
paths:
- "**.go"
push:
branches: [ main ]
paths:
- "**.go"
jobs:
run_staticmajor:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Staticmajor action
id: staticmajor
uses: orijtech/staticmajor-action@main
with:
packages: ./...
resleak: true
structslop: false
tests: false