Verifies that files have consistent leading whitespace (all tabs or all spaces).

npm install grunt-leading-indent
37 downloads in the last day
102 downloads in the last week
526 downloads in the last month


Build Status

A plugin for Grunt which verifies that files have either all leading tabs or all leading spaces.

Compatible with Grunt 0.4.

Getting Started

Install this grunt plugin next to your project's Gruntfile.js with:

npm install grunt-leading-indent

Then add this line to your project's grunt.js gruntfile:


Sample usage

grunt.config.set('leadingIndent.indentation', 'spaces');
grunt.config.set('leadingIndent.jsFiles', {
    src : ['src/**/*.js', 'test/**/*.js']
grunt.config.set('leadingIndent.cssFiles', {
    src : ['src/**/*.css', 'test/**/*.css']

grunt.registerTask('checkStyle', ['leadingIndent:jsFiles', 'leadingIndent:cssFiles']);


Copyright (c) 2013 Aria Templates

Licensed under the Apache 2.0 license.

npm loves you