diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..0f90addaf --- /dev/null +++ b/.github/labeler.yml @@ -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 + diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..d1e5484b6 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,11 @@ +name: "Pull Request Labeler" +on: + - pull_request_target + +jobs: + labeler: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v4.0.0 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.golangci.yml b/.golangci.yml index 2d17ee5ab..9b4f0e623 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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 \ No newline at end of file