fxa-content-server/grunttasks/todo.js

54 строки
1.3 KiB
JavaScript

/* 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('todo', {
app: {
files: {
src: [
'<%= yeoman.app %>/**/*.{js,css,scss,html}',
'!<%= yeoman.app %>/scripts/vendor/**',
'grunttasks/*.js',
'scripts/*.js',
'server/**/*.{js,css,html}',
'<%= yeoman.tests %>/**/*.js',
// This one is triggering some locale false positives.
'!server/templates/pages/dist/**',
// ignore this file, lest we get oodles of false positives.
'!grunttasks/todo.js'
]
}
},
options: {
marks: [
{
color: 'red',
name: 'FIX',
pattern: /FIXME/
},
{
color: 'yellow',
name: 'TODO',
pattern: /TODO/
},
{
color: 'blue',
name: 'NOTE',
pattern: /NOTE/
},
{
color: 'yellow',
name: 'XXX',
pattern: /XXX/
},
{
color: 'red',
name: 'HACK',
pattern: /HACK/
}
]
}
});
};