The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

Perl-Critic-Policy-CodeLayout-TabIndentSpaceAlign

Build Status Coverage Status

Hard tabs are a perfectly fine way to indent code for accessibility and usability purposes, allowing different users to tweak indentation settings to suit their needs and habits. However, hard tabs should not be used for formatting / aligning, as this makes the display dependent on the tab-to-space ratio of the user.

Perl::Critic::Policy::CodeLayout::ProhibitHardTabs has a setting that allows leading tabs, but this not not fully represent the paradigm where tabs are reserved for indenting and spaces for formatting/aligning. In particular, it does not prevent indenting with spaces, while this module detects and prevents it.

INSTALLATION

To install this module, run the following commands:

perl Build.PL
./Build
./Build test
./Build install

SUPPORT AND DOCUMENTATION

After installing, you can find documentation for this module with the perldoc command.

perldoc Perl::Critic::Policy::CodeLayout::TabIndentSpaceAlign

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright (C) 2012-2014 Guillaume Aubert

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/