- Make sure your editor supports formatting with
golang.go, and format accordingly before committing. - Use Conventional Commits for commit messages.
- Use GitHub Flow for branching and use Pull Request Template for pull requests.
- Donot edit the
Makefilewithout consulting the maintainers, if you require editing for your local setup, ignore the changes when commiting.
- Write code that is plugin-based (where an
algorithm.gois considered a plugin) and easy to extend further by other developers. - If test files exists,
go testshould pass before creating a pull request. - If test files do not exist, throughly test the code before creating a pull request.
- If you are adding a new feature, make sure to update the README.md file with the new feature.
If you use gofmt check if there is any formatting issue before committing. Alternatively, you can comment out gofmt and use golang.go extension for formatting. Your settings.json should look like this:
{
//"go.formatTool": "gofmt",
"[go]": {
"editor.defaultFormatter": "golang.go",
"editor.insertSpaces": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
}
}Please refer to our Code of Conduct for more information.