Skip to content

Commit

Permalink
[filenames] allow rule-breaking in docs, tasks/config, and webpackShims
Browse files Browse the repository at this point in the history
  • Loading branch information
spalger committed Mar 11, 2016
1 parent f724032 commit caf7331
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
11 changes: 0 additions & 11 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,17 +82,6 @@ module.exports = function (grunt) {
config: config,
loadGruntTasks: {
pattern: ['grunt-*', '@*/grunt-*', 'gruntify-*', '@*/gruntify-*', 'intern']
},
preMerge(config, data) {
Object.keys(config).forEach(key => {
const taskConfig = config[key];
if (taskConfig.__taskName__) {
config[taskConfig.__taskName__] = taskConfig;

delete config[key];
delete taskConfig.__taskName__;
}
});
}
});

Expand Down
3 changes: 2 additions & 1 deletion tasks/check_added_filenames.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ export default function registerCheckAddedFilenames(grunt) {

const invalid = grunt.config
.get('filesToCommit')
.filter(isAdded)
.map(getFilename)
.filter(isAdded)
.filter(name => !name.match(/([\/\\]|^)(docs|tasks[\/\\]config|webpackShims)([\/\\]|$)/))
.filter(name => name.match(/[A-Z \-]/))
.reduce((all, name) => `${all} ${name}\n`, '');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ var path = require('path');

module.exports = function (grunt) {
return {
__taskName__: 'downloadSelenium',

options: {
selenium: {
filename: 'selenium-server-standalone-2.48.2.jar',
Expand Down

0 comments on commit caf7331

Please sign in to comment.