Skip to content
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
20 changes: 18 additions & 2 deletions docs/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,30 @@
# Contributing

## Go Style
## Requirements

`coder` requires Go 1.18+, Node 14+, and GNU Make.

### Development Workflow

The following `make` commands and scripts used in development:

- `make bin` builds binaries
- `make install` installs binaries to `$GOPATH/bin`
- `make test`
- `make release` dry-runs a new release
- `./develop.sh` hot-reloads for frontend development

## Styling

### Go Style

Contributions must adhere to [Effective Go](https://go.dev/doc/effective_go). Linting rules should
be preferred over documenting styles (run ours with `make lint`); humans are error prone!

Read [Go's Code Review Comments Wiki](https://github.com/golang/go/wiki/CodeReviewComments) to find
common comments made during reviews of Go code.

### No Unused Packages
#### No Unused Packages

Coders write packages that are used during implementation. It's difficult to validate whether an
abstraction is valid until it's checked against an implementation. This results in a larger
Expand Down
11 changes: 2 additions & 9 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,7 @@ $ vim main.tf
$ coder projects update gcp-linux
```

## Development
## Contributing

Read the [contributing docs](./CONTRIBUTING.md) for style and review guidelines.
Read the [contributing docs](./CONTRIBUTING.md).

Coder requires Go 1.18+, Node 14+, and GNU Make.

- `make bin` builds binaries
- `make install` installs binaries to `$GOPATH/bin`
- `make test`
- `make release` dry-runs a new release
- `./develop.sh` hot-reloads for frontend development