Enable codespell pre-commit (#90)

This catches some common spelling errors, but is *not* an exhaustive spell-checker. The only false positive is "rouge" in Gemfile.lock, which is why I'm excluding that file.

True positives are in the change, and it does catch the "langauge" typo I keep making, which zygoloid fixed for me in a few spots. False negatives are:

- virmc
- Announcemented
- propsal

For comparison:

- cspell (https://www.npmjs.com/package/cspell) is too aggressive and has a small dictionary
  - Caught the false negatives, but many false positives, including 'LLVM', 'roadmap', 'Carruth'
- https://github.com/lorenzwalthert/precommit has a spellcheck, but config looks ruby-specific
This commit is contained in:
Jon Meow
2020-06-25 08:37:03 -07:00
committed by GitHub
parent c0b63c5361
commit 65cfd73b78
6 changed files with 22 additions and 7 deletions
+2 -2
View File
@@ -68,7 +68,7 @@ The process is:
We use several tools to coordinate changes to Carbon:
- **GitHub pull requests** contain the proposals and related discussion.
Resolved proposals wil be committed with the associated decision. The pull
Resolved proposals will be committed with the associated decision. The pull
request's description should link all related Discourse Forum topics and other
references for easy browsing.
- **Discourse Forum** topics will be used for the early idea discussion, any
@@ -271,7 +271,7 @@ Where the proposal makes a decision between multiple options, move them to the
You may optionally use the
[Google Docs template](https://docs.google.com/document/d/1sqEnIWWZKTrtMz2XgD7_RqvogwbI0tBQjAZIvOabQsw/template/preview)
for early proposal versions, which can be transferred to Markdown later. Using
Google Docs can especially help iterate on a propsal with multiple authors.
Google Docs can especially help iterate on a proposal with multiple authors.
This template includes things like license headers and standard formatting. If
you already have a non-templated Doc, please create a new Doc using the template