mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
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.
15 lines
452 B
JavaScript
15 lines
452 B
JavaScript
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());
|
|
});
|
|
};
|