feat(a256gcm): Ban unsafeExplicitIV by default.

Use grunt-ban-words to ban unsafeExplicitIV
except where expected.
This commit is contained in:
Shane Tomlinson 2018-09-26 12:34:24 +01:00
Родитель b5f67560d6
Коммит 023e9a8c62
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 09D4F897B87A2D19
4 изменённых файлов: 22 добавлений и 0 удалений

14
grunttasks/ban-word.js Normal file
Просмотреть файл

@ -0,0 +1,14 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
module.exports = function (grunt) {
grunt.config('word', {
unsafeExplicitIV: {
options: {
banList: ['unsafeExplicitIV']
},
src: ['app/scripts/**/*.js', '!app/scripts/lib/crypto/a256gcm.js', '!app/scripts/lib/crypto/recovery-keys.js']
}
});
};

Просмотреть файл

@ -8,6 +8,7 @@ module.exports = function (grunt) {
var SUBTASKS = [ var SUBTASKS = [
'eslint', 'eslint',
'word',
'jsonlint:app', 'jsonlint:app',
'sasslint' 'sasslint'
]; ];

6
npm-shrinkwrap.json сгенерированный
Просмотреть файл

@ -6900,6 +6900,12 @@
"babel-core": "^6.0.12" "babel-core": "^6.0.12"
} }
}, },
"grunt-ban-word": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/grunt-ban-word/-/grunt-ban-word-0.1.1.tgz",
"integrity": "sha1-5E7cSwzBX9hp4b0VrEsSMuLtQlA=",
"dev": true
},
"grunt-bump": { "grunt-bump": {
"version": "0.7.0", "version": "0.7.0",
"resolved": "https://registry.npmjs.org/grunt-bump/-/grunt-bump-0.7.0.tgz", "resolved": "https://registry.npmjs.org/grunt-bump/-/grunt-bump-0.7.0.tgz",

Просмотреть файл

@ -132,6 +132,7 @@
"eslint-plugin-sorting": "git://github.com/shane-tomlinson/eslint-plugin-sorting.git#bcacb99d", "eslint-plugin-sorting": "git://github.com/shane-tomlinson/eslint-plugin-sorting.git#bcacb99d",
"firefox-profile": "1.2.0", "firefox-profile": "1.2.0",
"fxa-conventional-changelog": "1.1.0", "fxa-conventional-changelog": "1.1.0",
"grunt-ban-word": "0.1.1",
"grunt-bump": "0.7.0", "grunt-bump": "0.7.0",
"grunt-conventional-changelog": "6.1.0", "grunt-conventional-changelog": "6.1.0",
"grunt-copyright": "0.3.0", "grunt-copyright": "0.3.0",