mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
Check that all new files are snake cased
We removed the snake case check during precommit because it was interfering with us getting features merged when dealing with legacy files, but we do want to verify that any new files added have snake cased names. Fixes #5781
This commit is contained in:
parent
12393a442c
commit
672555e6aa
4 changed files with 67 additions and 0 deletions
15
tasks/collect_files_to_commit.js
Normal file
15
tasks/collect_files_to_commit.js
Normal file
|
@ -0,0 +1,15 @@
|
|||
import filesToCommit from './utils/files_to_commit';
|
||||
import { resolve } from 'path';
|
||||
|
||||
const root = resolve(__dirname, '..');
|
||||
|
||||
export default function registerCollectFilesToCommit(grunt) {
|
||||
grunt.registerTask('collectFilesToCommit', function () {
|
||||
filesToCommit(root)
|
||||
.then(files => {
|
||||
grunt.log.ok(`${files.length} files with changes to commit`);
|
||||
grunt.config.set('filesToCommit', files);
|
||||
})
|
||||
.nodeify(this.async());
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue