Commit Graph

48 Commits

Author SHA1 Message Date
mergify[bot] 8a9589a8de
style: lint go and markdown (backport #10060) (#10473)
* style: lint go and markdown (#10060)

## Description

+ fixing `x/bank/migrations/v44.migrateDenomMetadata` - we could potentially put a wrong data in a new key if the old keys have variable length.
+ linting the code

Putting in the same PR because i found the issue when running a linter.

Depends on: #10112

---

### Author Checklist

*All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.*

I have...

- [x] included the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [x] added `!` to the type prefix if API or client breaking change
- [x] targeted the correct branch (see [PR Targeting](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#pr-targeting))
- [ ] provided a link to the relevant issue or specification
- [x] followed the guidelines for [building modules](https://github.com/cosmos/cosmos-sdk/blob/master/docs/building-modules)
- [ ] included the necessary unit and integration [tests](https://github.com/cosmos/cosmos-sdk/blob/master/CONTRIBUTING.md#testing)
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.*

I have...

- [ ] confirmed the correct [type prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json) in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed
- [ ] reviewed state machine logic
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)

(cherry picked from commit 479485f95d)

# Conflicts:
#	CODING_GUIDELINES.md
#	CONTRIBUTING.md
#	STABLE_RELEASES.md
#	contrib/rosetta/README.md
#	cosmovisor/README.md
#	crypto/keyring/keyring.go
#	db/README.md
#	docs/404.md
#	docs/DOCS_README.md
#	docs/architecture/adr-038-state-listening.md
#	docs/architecture/adr-040-storage-and-smt-state-commitments.md
#	docs/architecture/adr-043-nft-module.md
#	docs/architecture/adr-044-protobuf-updates-guidelines.md
#	docs/architecture/adr-046-module-params.md
#	docs/migrations/pre-upgrade.md
#	docs/migrations/rest.md
#	docs/ru/README.md
#	docs/run-node/rosetta.md
#	docs/run-node/run-node.md
#	docs/run-node/run-testnet.md
#	go.mod
#	scripts/module-tests.sh
#	snapshots/README.md
#	store/streaming/README.md
#	store/streaming/file/README.md
#	store/v2/flat/store.go
#	store/v2/smt/store.go
#	x/auth/ante/sigverify.go
#	x/auth/middleware/basic.go
#	x/auth/spec/01_concepts.md
#	x/auth/spec/05_vesting.md
#	x/auth/spec/07_client.md
#	x/authz/spec/05_client.md
#	x/bank/spec/README.md
#	x/crisis/spec/05_client.md
#	x/distribution/spec/README.md
#	x/epoching/keeper/keeper.go
#	x/epoching/spec/03_to_improve.md
#	x/evidence/spec/07_client.md
#	x/feegrant/spec/README.md
#	x/gov/spec/01_concepts.md
#	x/gov/spec/07_client.md
#	x/group/internal/orm/spec/01_table.md
#	x/mint/spec/06_client.md
#	x/slashing/spec/09_client.md
#	x/slashing/spec/README.md
#	x/staking/spec/09_client.md
#	x/upgrade/spec/04_client.md

* fix conflicts

* remove unnecessary files

Co-authored-by: Robert Zaremba <robert@zaremba.ch>
2021-11-11 21:29:29 +01:00
Marko 105ad99a8e
feat: add cosmos-sdk Version (#9429)
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v                               ✰  Thanks for creating a PR! ✰
v    Before smashing the submit button please review the checkboxes.
v    If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >  -->

## Description

Add CosmosSDKVersion to nodeInfo.

closes: #9420
2021-06-18 12:56:55 +00:00
Ryan Christoffersen 8f2333d02a
docs: update contributing pull request process (#9472)
* docs: update contributing

* docs: update contributing

* docs: update contributing

Co-authored-by: ryanchrypto <12519942+ryanchrypto@users.noreply.github.com>
2021-06-09 17:37:58 -07:00
Ryan Christoffersen 37fc37d853
fix interfaces links (#9448)
Co-authored-by: ryanchrypto <12519942+ryanchrypto@users.noreply.github.com>
Co-authored-by: Amaury <1293565+amaurym@users.noreply.github.com>
2021-06-08 12:03:42 +00:00
Ryan Christoffersen cb66c99eab
chore: add markdownlint to lint commands (#9353)
* add markdownlint config

* update make lint commands

* update markdownlint config

* run make lint-fix

* fix empty link

* resuse docker container

* run lint-fix

* do not echo commands

Co-authored-by: ryanchrypto <12519942+ryanchrypto@users.noreply.github.com>
2021-05-27 15:31:04 +00:00
Robert Zaremba 1de12aae67
docs: adding documentation writing guidelines (#9366)
* docs: adding documentation writing guidelines

* update

* Apply suggestions from code review

Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com>
Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>

Co-authored-by: likhita-809 <78951027+likhita-809@users.noreply.github.com>
Co-authored-by: Marie Gauthier <marie.gauthier63@gmail.com>
Co-authored-by: Ryan Christoffersen <12519942+ryanchristo@users.noreply.github.com>
2021-05-25 15:10:17 +00:00
colin axnér f45838ff3c
update contributor docs (#9190)
* update contributor docs

* revert changes to release section

* fix formatting

Co-authored-by: Marko <marbar3778@yahoo.com>
2021-04-28 13:02:52 +00:00
billy rennekamp 985b9017ef
Update CONTRIBUTING.md
removed secondary entirely
2021-04-26 17:55:59 +02:00
billy rennekamp 8de11ba657
Update CONTRIBUTING.md
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2021-04-26 17:40:10 +02:00
billy rennekamp e1bd6cf8fa
Update CONTRIBUTING.md
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2021-04-22 19:21:39 +02:00
billy rennekamp f572523357
Update CONTRIBUTING.md 2021-04-22 14:22:36 +02:00
Aaron Craelius 2f1d8771df
Update CONTRIBUTING.md Point Release Procedure (#7999)
* Update CONTRIBUTING.md

* Update CONTRIBUTING.md

Co-authored-by: billy rennekamp <billy.rennekamp@gmail.com>

* Update CONTRIBUTING.md

Co-authored-by: billy rennekamp <billy.rennekamp@gmail.com>

* Update CONTRIBUTING.md

Co-authored-by: billy rennekamp <billy.rennekamp@gmail.com>

* Update CONTRIBUTING.md

Co-authored-by: billy rennekamp <billy.rennekamp@gmail.com>

* Update CONTRIBUTING.md

Co-authored-by: billy rennekamp <billy.rennekamp@gmail.com>

* updates to concept & release approval process

* update codeowners addition process

* time bound updates

* Update CONTRIBUTING.md

Co-authored-by: Alessio Treglia <alessio@tendermint.com>

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: billy rennekamp <billy.rennekamp@gmail.com>
Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Cory Levinson <cjlevinson@gmail.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-12-11 01:50:07 +00:00
Amaury a8ef4a380d
All Makefile proto commands use Docker (#7931)
* Update tooling around docker

* Run commands

* Remove swagger gen for now

* Update proto-gen-any

* Fix indentn

* Use CURDIR

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-11-13 16:36:58 +00:00
Akhil Kumar P 8014fc688e
Fix clang-format to specific version (#7350)
* Update clang-format install script

* Address PR comments

* Update clang-format install command

* Format makefile

* Use docker for formatting proto

* Comment out delimiter config

* Update contributing.md and .clang-format

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
Co-authored-by: Marko <marbar3778@yahoo.com>
2020-10-27 10:04:34 +00:00
Alessio Treglia 839ee4f5e7
Stable Releases: Definition and Process (#6394)
Closes: #1728
Related to #6522
2020-07-14 10:28:53 +02:00
Marko b671bff594
proto: update docs (#6537)
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-07-01 15:53:11 +02:00
Cory 4e73e0f817
Update proto files & definitions in accordance with ADR023 (#6413)
* consolidate proto files into single directory, turn on PACKAGE_DIRECTORY_MATCH linting

* add third_party root for third party proto files

* move ibc proto files to top level folder, rename .proto files to types.proto as before

* update protocgen script, and run code generation

* move vesting proto definition to cosmos namespace, rename from types.proto in alignment with buf.build naming conventions

* update Makefile so proto dependencies are set with new structure when updated

* add comment for sed usage in makefile

* remove unused aliases of proto generated types

* add settings.json instructions to contributing.md for including protobuf paths

Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Aaron Craelius <aaron@regen.network>
2020-06-18 10:04:26 -07:00
Alexander Bezobchuk d17f5771c7
Revise Point Release Process (#6333)
* Update point release process

* Update CONTRIBUTING.md

Co-authored-by: Alessio Treglia <alessio@tendermint.com>

Co-authored-by: Alessio Treglia <alessio@tendermint.com>
2020-06-03 15:16:40 +00:00
Marko 21a9cb9b28
ci: automate release post tag push (#6230) 2020-05-25 20:02:08 +02:00
Marko 7cf1efddbe
release: procedure change (#6148) 2020-05-05 18:47:05 -04:00
Alessio Treglia 680420432d
CONTRIBUTING.md: use git tag -a for release tags (#6143)
git describe by default use annotated tags.

Rationale:

  Annotated tags, however, are stored as full objects in the Git
  database. They’re checksummed; contain the tagger name, email,
  and date; have a tagging message; and can be signed and verified
  with GNU Privacy Guard (GPG). It’s generally recommended that you
  create annotated tags so you can have all this information; but
  if you want a temporary tag or for some reason don’t want to keep
  the other information, lightweight tags are available too.

From: https://git-scm.com/book/en/v2/Git-Basics-Tagging#tagging
2020-05-05 16:31:41 +02:00
Alessio Treglia 6469447d52
add pre-commit hook (#6041)
* add pre-commit hook

Co-authored-by: Gianguido Sora <gsora@users.noreply.github.com>

* add go tools installation notes

* Update CONTRIBUTING.md

* run both go mod and golangci-lint

* silence which

* add go.mod go.sum after go mod tidy

* update README

* look up golangci-lint specifically in GOPATH/bin

* don't run golangci-lint

* exclude proto files

Co-authored-by: Gianguido Sora <gsora@users.noreply.github.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
2020-04-28 14:51:42 +00:00
Marko 4b3eb0ea98
ci: migrate long sims (#6084)
Cancel ci if no .go files have been touched. There is no clean way of
doing this so i opted to `exit 1` on the diff job if no go files were
changed and have builds depend on diff passing

- migrate proto checks  to github actions.
- providing make commands to use buf within docker.
-  test-sim-multi-seed-long migration to github actions. Follows same
  logic and only runs on release branches.
-  add protobuf section to CONTRIBUTING.md.
2020-04-28 16:13:36 +02:00
Arda Güçlü a7e28dec6a Merge PR #5392: Fix typos in the CONTRIBUTING.md 2019-12-12 10:46:14 -05:00
gamarin2 b18bd06a36 Merge PR #5379: New docs V1 (merge master-docs to master) 2019-12-10 09:29:46 -05:00
frog power 4000 cf9ae51635 Merge PR #5036: Code Owner Membership - Contributing Guidelines 2019-09-19 09:56:41 -04:00
Alexander Bezobchuk 7d42f62f90
Merge PR #4902: Changelog Flow Updates 2019-08-13 16:00:28 -04:00
Alexander Bezobchuk 43478167c6
Merge PR #4745: Update contributing doc 2019-07-19 16:24:39 +02:00
Marko 7bc705af85 ADR section to Contribution (#4703)
- Added a ADR section to the Contributing.md
- This will streamline and create a central palce for discussions
- Currently conversations are fragmented across platfroms and different forum posts,
  the aim here is to move it all to one place and create a document to be used as
  reference in the future for why SDK went in this direction.
2019-07-18 15:17:40 +01:00
frog power 4000 9c4b170038
Merge PR #4258: Contributing doc update
* R4R Contributing doc update

* Update CONTRIBUTING.md

Co-Authored-By: rigelrozanski <rigel.rozanski@gmail.com>
2019-05-06 15:32:19 -04:00
Alexander Bezobchuk b922d3c58b
Merge PR #4270: Update Point Release Procedure section 2019-05-04 10:42:59 -04:00
Alexander Bezobchuk f4a96fd6b6
Merge PR #4248: Update contribution doc 2019-05-01 13:09:00 -04:00
mircea-c 36dcd7b7ad Merge PR #4205: Mircea/update contributing md
* Update `CONTRIBUTING.md` branching strategy and release process

* Delete PRIORITIES.md

* Delete RELEASE_PROCESS.md

* Remove RELEASE_TEST_SCRIPT.md

* Update CONTRIBUTING.md

Co-Authored-By: mircea-c <mircea@tendermint.com>
2019-04-26 21:57:03 -04:00
Frank Yang 356e819f43 Fix typos and out-of-date info in CONTRIBUTING.md (#4132) 2019-04-16 15:27:45 +01:00
Alessio Treglia cdf2b7a7c5
gometalinter -> golangci-lint migration (#3933)
{,scripts/}Makefile:
- Remove gometalinter, install golangci-lint.
- Remove distinction between tools and devtools.
  Just tools is enough.
- test_lint -> lint
  Migrating away from underscore separated names.
- Remove unnecessary targets.
- Drop tendermint/lint. Incompatbile with golangci-lint
  and no longer necessary anyway.
- Fix misleading message in go-mod-cache.
- New ci-target to avoid download tools twice.
- Run tests with -mod=readonly.

Port tools/gometalinter.json to .golangci.yml
Update CircleCI config accordingly.

Closes: #3896
2019-03-19 17:52:43 +01:00
Alessio Treglia 6ce4d5efd1
replace dep with go mod (#3907)
Replace sha1sum with jack's gosum and get rid of
vendor-deps.
Also don't compute hash on vendor/ contents.
Instead hash go.sum.

Disable unconvert lint check. It does not
work very well with go mod.

Remove update_vendor_deps once and for all.

Upgrade to go 1.12

Closes: #3919 #3630
2019-03-18 13:45:25 +01:00
Jack Zampolin 0043912548 Merge PR #3338: Remove unused code and examples 2019-01-24 11:18:45 +01:00
Jack Zampolin 0453992ddb
Update contributing.md with new merge policy (#2789)
* Update contribuiting.md with new merge policy
2018-11-14 13:12:03 -08:00
Christopher Goes addd93b3e5 Add info on what PRs should be targeted where 2018-08-23 15:30:29 +02:00
Christopher Goes 97ae9632ba Move to CONTRIBUTING.md 2018-08-22 16:10:57 +02:00
Rigel d7231af9a6
update bullets 2018-07-23 13:52:03 -04:00
rigelrozanski a18bfff92f ... 2018-07-23 13:43:11 -04:00
rigelrozanski 99cf34a02a beefed up the contributing guide/PR-template 2018-07-23 13:33:47 -04:00
Dev Ojha 6cfef64382 Merge PR #1732: tools: add make {get, update, check}_dev_tools
This is so that validators can have a more minimal install, but we
can still install linters for developers. (And any other future dev
tools)
2018-07-18 10:20:24 +02:00
ValarDragon 2b72e3377a Clarify when to use table driven tests 2018-07-16 17:24:07 -07:00
ValarDragon 1edfb89423 contribution guide: Add guidelines for testing
Indicates to use require's and asserts, and to use table driven
tests, with error messages as described in #1664.

Closes #1664
2018-07-16 12:30:54 -07:00
Rigel 91dd972bbc Merge PR #1667: Update CONTRIBUTING.md 2018-07-13 19:35:29 +02:00
Rigel 2f508f5b28 Merge PR #1422: Add Contributing Guidelines
* Merge pull request #1422: Add Contributing Guidelines
* cwgoes comments
2018-06-30 04:04:29 +02:00