diff --git a/.travis.yml b/.travis.yml index e49d9836..dd08a8b2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,6 +37,7 @@ before_install: install: - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then + pip install codespell; gem install scss_lint; npm install -g bower electron-installer-debian; npm install -g electron-installer-debian; diff --git a/appveyor.yml b/appveyor.yml index 4347a7b2..82aff304 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -34,6 +34,7 @@ install: - set PATH=C:\MinGW\bin;%PATH% - set PATH=C:\MinGW\msys\1.0\bin;%PATH% - gem install scss_lint + - pip install codespell - make info - make electron-develop diff --git a/docs/RUNNING-LOCALLY.md b/docs/RUNNING-LOCALLY.md index c835dd33..0df05bb3 100644 --- a/docs/RUNNING-LOCALLY.md +++ b/docs/RUNNING-LOCALLY.md @@ -16,6 +16,7 @@ Prerequisites - [SCSS Lint](https://github.com/brigade/scss-lint/) - [jq](https://stedolan.github.io/jq/) - [Asar](https://github.com/electron/asar) +- [Codespell](https://github.com/lucasdemarchi/codespell) ### Windows diff --git a/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html b/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html index c798c0d7..af6b51e1 100644 --- a/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html +++ b/lib/gui/components/drive-selector/templates/drive-selector-modal.tpl.html @@ -23,7 +23,7 @@ - + diff --git a/lib/gui/models/drives.js b/lib/gui/models/drives.js index 025b4d25..2608a51a 100644 --- a/lib/gui/models/drives.js +++ b/lib/gui/models/drives.js @@ -69,7 +69,7 @@ Drives.service('DrivesModel', function() { // over a function that returns a mutable version of an // ImmutableJS object. // - // The problem is that everytime you call `myImmutableObject.toJS()` + // The problem is that every time you call `myImmutableObject.toJS()` // you will get a new object, whose reference is different from // the one you previously got, even if the data is exactly the same. const memoizeImmutableListReference = (func) => { diff --git a/lib/gui/scss/modules/_bootstrap.scss b/lib/gui/scss/modules/_bootstrap.scss index 1381d388..dfa138c4 100644 --- a/lib/gui/scss/modules/_bootstrap.scss +++ b/lib/gui/scss/modules/_bootstrap.scss @@ -26,7 +26,7 @@ body { background-color: $palette-theme-dark-background; } -// Fix slighly checkbox vertical alignment issue +// Fix slight checkbox vertical alignment issue .checkbox input[type="checkbox"] { position: initial; margin-right: 2px; diff --git a/lib/image-stream/index.js b/lib/image-stream/index.js index da881cfa..88c8ce6a 100644 --- a/lib/image-stream/index.js +++ b/lib/image-stream/index.js @@ -85,7 +85,7 @@ exports.getFromFilePath = (file) => { * @description * This function is useful to determine the final size of an image * after decompression or any other needed transformation, as well as - * other relevent metadata, if any. + * other relevant metadata, if any. * * **NOTE:** This function is known to output incorrect size results for * `bzip2`. For this compression format, this function will simply diff --git a/package.json b/package.json index b562ad70..2ab8dd95 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "sass": "node-sass ./lib/gui/scss/main.scss > ./lib/gui/css/main.css", "jslint": "eslint lib tests scripts bin versionist.conf.js", "scsslint": "scss-lint lib/gui/scss", - "lint": "npm run jslint && npm run scsslint", + "codespell": "codespell.py lib tests", + "lint": "npm run jslint && npm run scsslint && npm run codespell", "changelog": "versionist", "start": "electron lib/start.js", "clean-shrinkwrap": "node ./scripts/clean-shrinkwrap.js" diff --git a/scripts/build/docker/Dockerfile-i686 b/scripts/build/docker/Dockerfile-i686 index f583678f..80bce2c3 100644 --- a/scripts/build/docker/Dockerfile-i686 +++ b/scripts/build/docker/Dockerfile-i686 @@ -14,6 +14,8 @@ RUN apt-get update && apt-get install -y \ libxss1 \ libxtst6 \ python \ + python-pip \ + python-dev \ python-software-properties \ software-properties-common \ upx \ @@ -28,6 +30,9 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \ RUN npm config set spin=false RUN npm install -g bower asar electron-installer-debian +# Python +RUN pip install codespell + # Ruby RUN add-apt-repository ppa:brightbox/ruby-ng RUN apt-get update diff --git a/scripts/build/docker/Dockerfile-x86_64 b/scripts/build/docker/Dockerfile-x86_64 index 679dff9b..80a4aa43 100644 --- a/scripts/build/docker/Dockerfile-x86_64 +++ b/scripts/build/docker/Dockerfile-x86_64 @@ -14,6 +14,8 @@ RUN apt-get update && apt-get install -y \ libxss1 \ libxtst6 \ python \ + python-pip \ + python-dev \ python-software-properties \ software-properties-common \ upx \ @@ -28,6 +30,9 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \ RUN npm config set spin=false RUN npm install -g bower asar electron-installer-debian +# Python +RUN pip install codespell + # Ruby RUN add-apt-repository ppa:brightbox/ruby-ng RUN apt-get update diff --git a/scripts/build/docker/Dockerfile.template b/scripts/build/docker/Dockerfile.template index 49f3b84a..cfca9326 100644 --- a/scripts/build/docker/Dockerfile.template +++ b/scripts/build/docker/Dockerfile.template @@ -14,6 +14,8 @@ RUN apt-get update && apt-get install -y \ libxss1 \ libxtst6 \ python \ + python-pip \ + python-dev \ python-software-properties \ software-properties-common \ upx \ @@ -28,6 +30,9 @@ RUN curl -sL https://deb.nodesource.com/setup_6.x | bash - \ RUN npm config set spin=false RUN npm install -g bower asar electron-installer-debian +# Python +RUN pip install codespell + # Ruby RUN add-apt-repository ppa:brightbox/ruby-ng RUN apt-get update diff --git a/tests/gui/modules/image-writer.spec.js b/tests/gui/modules/image-writer.spec.js index 0030b995..ccdd7252 100644 --- a/tests/gui/modules/image-writer.spec.js +++ b/tests/gui/modules/image-writer.spec.js @@ -30,7 +30,7 @@ describe('Browser: ImageWriter', function() { describe('.flash()', function() { - describe('given a succesful write', function() { + describe('given a successful write', function() { beforeEach(function() { this.performWriteStub = m.sinon.stub(ImageWriterService, 'performWrite'); @@ -83,7 +83,7 @@ describe('Browser: ImageWriter', function() { }); - describe('given an unsuccesful write', function() { + describe('given an unsuccessful write', function() { beforeEach(function() { this.performWriteStub = m.sinon.stub(ImageWriterService, 'performWrite');