package Git::Lint::Check::Commit::IndentTabs; use strict; use warnings; use parent 'Git::Lint::Check::Commit'; our $VERSION = '1.000'; my $check_name = 'indent with tabs'; sub check { my $self = shift; my $input = shift; my $match = sub { my $line = shift; return 1 if $line =~ /^(?:\t+)/; return; }; return $self->parse( input => $input, match => $match, check => $check_name ); } 1; __END__ =pod =head1 NAME Git::Lint::Check::Commit::IndentTabs - check for indent tabs =head1 SYNOPSIS my $plugin = Git::Lint::Check::Commit::IndentTabs->new(); my $input = $plugin->diff(); my @lines = @{$input}; my @issues = $plugin->check( \@lines ); =head1 DESCRIPTION C is a C module which checks git diff input and warns for indent tabs. =head1 METHODS =over =item check Method that defines the check subref and passes it to C's parse method. =back =cut