⚠️ Verifies that files have consistent leading whitespace (all tabs or all spaces)
JavaScript
Switch branches/tags
Nothing to show
Latest commit 7eb0a7e Feb 10, 2015 @jakub-g doc Badges
Permalink
Failed to load latest commit information.
bin
cli
tasks
test
.gitignore
.npmignore
.travis.yml
Gruntfile.js
LICENSE
README.md
package.json

README.md

grunt-leading-indent

Build Status Dependencies devDependencies

npm

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 Gruntfile.js:

grunt.loadNpmTasks('grunt-leading-indent');

Sample usage

leadingIndent : {
    options: {
        indentation : "spaces"
    },
    js : ['Gruntfile.js', 'tasks/**/*.js'],
    zero: {
        options: {
            indentation : "spaces",
            failIfNoFiles: true
        },
        src: ['*.does-not-exist']
    }
}

License

Copyright (c) 2013 Aria Templates

Licensed under the Apache 2.0 license.