Skip to content

Commit

Permalink
feat(ci): golangci-lint config
Browse files Browse the repository at this point in the history
  • Loading branch information
wzy9607 committed Feb 9, 2024
1 parent 28756c2 commit 4f630c0
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI
on:
push:
branches:
- main
pull_request:

permissions:
contents: read
jobs:
golangci-lint:
name: golangci-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 'stable'
- name: Run golangci-lint
uses: golangci/[email protected]
with:
version: latest
17 changes: 17 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
run:
timeout: 10m
show-stats: true

output:
sort-results: true

#linters:

issues:
include:
- EXC0003
- EXC0004
- EXC0005
- EXC0006
max-issues-per-linter: 0
max-same-issues: 0
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# amqp091otel

OpenTelemetry instrumentation for github.com/rabbitmq/amqp091-go

0 comments on commit 4f630c0

Please sign in to comment.