From 0db335c8f1d56c5ec175d3751a77fa6e01480a5f Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Thu, 23 Feb 2017 14:56:43 -0400 Subject: [PATCH] chore: start codespell dictionary file in the root of the project (#1087) codespell works by having a dictionary of pairs of malformed words and their correct equivalents. This means that codespell will not catch most issues out of the box, but we can train it based on the common spelling issues we encounter along the way. The plan is to add a pair to `dictionary` every time we encounter a typo during a code review, and we ensure that error will not happen again anymore. See: https://github.com/resin-io/etcher/pull/1084 Signed-off-by: Juan Cruz Viotti --- dictionary | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 dictionary diff --git a/dictionary b/dictionary new file mode 100644 index 00000000..57462894 --- /dev/null +++ b/dictionary @@ -0,0 +1 @@ +boolen->boolean diff --git a/package.json b/package.json index 12afb773..3073fa23 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "jslint": "eslint lib tests scripts bin versionist.conf.js", "scsslint": "scss-lint lib/gui/scss", "htmllint": "node scripts/html-lint.js", - "codespell": "codespell.py lib tests", + "codespell": "codespell.py --dictionary=- --dictionary=dictionary lib tests", "lint": "npm run jslint && npm run scsslint && npm run codespell && npm run htmllint", "changelog": "versionist", "start": "electron lib/start.js",