Passed
Branch master (631cc3)
by Stephan
33:03
created

Gruntfile.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 32
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
c 0
b 0
f 0
nc 1
dl 0
loc 32
rs 10
wmc 1
mnd 0
bc 1
fnc 1
bpm 1
cpm 1
noi 0
1
/*jshint node:true */
2
module.exports = function ( grunt ) {
3
	grunt.loadNpmTasks( 'grunt-contrib-jshint' );
4
	grunt.loadNpmTasks( 'grunt-jsonlint' );
5
	grunt.loadNpmTasks( 'grunt-banana-checker' );
6
7
	grunt.initConfig( {
8
		jshint: {
9
			options: {
10
				jshintrc: true
11
			},
12
			all: [
13
				'**/*.js',
14
				'!node_modules/**',
15
				'!vendor/**',
16
				'!libs/jquery.qtip.js'
17
			]
18
		},
19
		banana: {
20
			all: 'i18n/'
21
		},
22
		jsonlint: {
23
			all: [
24
				'**/*.json',
25
				'!node_modules/**',
26
				'!vendor/**'
27
			]
28
		}
29
	} );
30
31
	grunt.registerTask( 'test', [ 'jshint', 'jsonlint', 'banana' ] );
32
	grunt.registerTask( 'default', 'test' );
33
};
34