Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update labeler and ci yml #480

Merged
merged 1 commit into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
"C:app-wiring":
- app/*.go
- app/apptesting/**/*
- app/keepers/**/*
- app/params/**/*
- app/upgrades/**/*
- x/**/module.go
"C:simulator":
- simulation/**/*
- simulation/**/**/*
- tests/simulator/**
- x/**/simulation/*.go
"C:wasm":
- app/wasm/**/*
"C:x/asset":
- x/asset/**/*
"C:x/auction":
- x/auction/**/*
"C:x/bandoracle":
- x/bandoracle/**/*
"C:x/collector":
- x/collector/**/*
"C:x/esm":
- x/esm/**/*
"C:x/lend":
- x/lend/**/*
"C:x/liquidation":
- x/liquidation/**/*
"C:x/liquidity":
- x/liquidity/**/*
"C:x/locker":
- x/locker/**/*
"C:x/market":
- x/market/**/*
"C:x/rewards":
- x/rewards/**/*
"C:x/tokenmint":
- x/tokenmint/**/*
"C:x/vault":
- x/vault/**/*
"T:build":
- Makefile
- Dockerfile
- scripts/*
"T:CI":
- .github/**/*.yml
- .mergify.yml
- .golangci.yml
"C:CLI":
- client/**/*
- x/*/client/**/*
"C:docs":
- CHANGELOG.md
- bug.md
- issue.md
- proto-docs.md
- README.md
- x/**/*.md
- x/**/*/*.md
- tests/**/*.md

11 changes: 11 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Pull Request Labeler"
on:
- pull_request_target

jobs:
labeler:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
53 changes: 6 additions & 47 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,75 +1,34 @@
# v1.27.0

run:
concurrency: 16
timeout: 5m
tests: false
allow-parallel-runners: true

linters-settings:
funlen:
lines: 180
statements: 120
gocritic:
enabled-tags:
- diagnostic
- experimental
- performance
- style
gocyclo:
min-complexity: 16
goimports:
local-prefixes: github.com/comdex-official/comdex

linters:
disable-all: true
enable:
- asciicheck
- bodyclose
- deadcode
- depguard
# - dogsled
#- dupl
- errcheck
#- funlen
- forcetypeassert
#- gochecknoglobals
#- gochecknoinits
#- gocognit
#- goconst
#- gocritic
#- gocyclo
#- godot
- godox
#- goerr113
- gofmt
- goimports
- golint
#- gomnd
- gofumpt
- gomodguard
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- interfacer
#- lll
- maligned
- misspell
- revive
- nakedret
#- nestif
#- nolintlint
#- prealloc
- nolintlint
- rowserrcheck
- scopelint
- staticcheck
- structcheck
- stylecheck
- testpackage
- typecheck
- unconvert
#- unparam
#- unused - will be enabled later
- varcheck
- whitespace
#- wsl
- unparam
- unused
- whitespace