woke is an Open Source project that started when I realized there weren't any OSS tools to catch insensitive and non-inclusive language within source code on PRs.
By participating in this project, you agree to abide by this projects Code Of Conduct.
woke is essentially a language-agnostic linter. I've taken my favorite parts of other linters
and used that as a guiding force. A few things I'll ask when contributing to this project:
- The goal of this project is to identify places within text files where better, inclusive language can be used. Please don't make contributions that don't push this goal forward.
- This project is not the forum to determine what is inclusive language and what is insensitive language. Contributions should be limited to providing consumers of
wokethe ability to make their own decisions regarding conscious language. - You will participate in discussions that embody the spirit of this project and work towards building a healthy, supportive, and productive culture, and an environment where everyone feels welcome and included.
- If you're adding linter-based features, try to link to other well-known linters as a reference for why you want the feature added and what benefit it provides.
- Language-specific changes should be avoided at all costs. Please keep this project language-agnostic.
-
Fork, then clone the repo:
git clone git@github.com:your-username/woke.git -
Setup
- Install go
- Install pre-commit and run
pre-commit install - Install required packages for pre-commit (there might be more, here are a few... see
pre-commit-config.yaml)go install github.com/fzipp/gocyclogo install golang.org/x/tools/cmd/goimportsgolangci-lint
-
Make your changes and add tests for your change. Make sure tests pass
go test ./... -
Push to your fork and submit a pull request. Explain the reason for your change and any background you can think of.
At this point you're waiting on us. Since this is a personal project, I make no guarantees on response time, but I will do my absolute best because I care about this tool. I may suggest some changes or improvements or alternatives.
Some things that will increase the chance that your pull request is accepted:
- Write good tests, coveralls will tell if if your PR reduced the overall code coverage.
- Follow Go's style guide.
- Write a good commit message.