Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/mousetrap/Gruntfile.js')
-rw-r--r--node_modules/mousetrap/Gruntfile.js35
1 files changed, 35 insertions, 0 deletions
diff --git a/node_modules/mousetrap/Gruntfile.js b/node_modules/mousetrap/Gruntfile.js
new file mode 100644
index 0000000000..7e431fdb2d
--- /dev/null
+++ b/node_modules/mousetrap/Gruntfile.js
@@ -0,0 +1,35 @@
+/*jshint node:true */
+module.exports = function(grunt) {
+ 'use strict';
+
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+
+ complexity: {
+ options: {
+ errorsOnly: false,
+ cyclomatic: 10,
+ halstead: 30,
+ maintainability: 85
+ },
+ generic: {
+ src: [
+ 'mousetrap.js'
+ ]
+ },
+ plugins: {
+ src: [
+ 'plugins/**/*.js',
+ '!plugins/**/tests/**',
+ '!plugins/**/*.min.js'
+ ]
+ }
+ }
+ });
+
+ grunt.loadNpmTasks('grunt-complexity');
+
+ grunt.registerTask('default', [
+ 'complexity'
+ ]);
+};