mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-07-28 13:52:55 +02:00
GitHub+lint: reduce linter memory usage
To reduce the likelyhood of the linter OOMing on the GitHub runner, we exclude any generated code from being inspected and also tune the golang garbage collector to be a bit more agressive.
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -131,7 +131,7 @@ jobs:
|
||||
go-version: '${{ env.GO_VERSION }}'
|
||||
|
||||
- name: lint
|
||||
run: make lint
|
||||
run: GOGC=50 make lint
|
||||
|
||||
########################
|
||||
# cross compilation
|
||||
|
@@ -2,9 +2,11 @@ run:
|
||||
# timeout for analysis
|
||||
deadline: 10m
|
||||
|
||||
# Skip autogenerated files for mobile.
|
||||
# Skip autogenerated files for mobile and gRPC.
|
||||
skip-files:
|
||||
- "mobile\\/.*generated\\.go"
|
||||
- "\\.pb\\.go$"
|
||||
- "\\.pb\\.gw\\.go$"
|
||||
|
||||
skip-dirs:
|
||||
- channeldb/migration_01_to_11
|
||||
|
Reference in New Issue
Block a user