| keywords |
|
||||||
|---|---|---|---|---|---|---|---|
| description | How to contribute to IOTA Smart Contracts. Creating a PR, setting up golangci-lint. | ||||||
| image | /img/logo/WASP_logo_dark.png |
If you want to contribute to this repository, consider posting a bug report, feature request or a pull request.
You can also join our Discord server and ping us
in #smartcontracts-dev.
Please base your work on the develop branch.
Before creating the Pull Request ensure that:
-
all the tests pass:
go test -tags rocksdb,builtin_static ./... -
there are no linting violations (instructions on how to setup linting below):
golangci-lint run
-
Install golintci:
-
Dev setup:
https://golangci-lint.run/usage/integrations/#editor-integration
VSCode:
// required: "go.lintTool": "golangci-lint", // recommended: "go.lintOnSave": "package" "go.lintFlags": ["--fix"], "editor.formatOnSave": true,
GoLand:
-
Configure path for golangci
-
Add a golangci file watcher with custom command (I recommend using --fix)
Other editors: please look into the
golangciofficial documentation. -
Ignoring false positives:
https://golangci-lint.run/usage/false-positives/
//nolintfor specific rules:
//nolint:golint,unused


