Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (32 sloc) 716 Bytes
package Unicorn::Errorcheck;
use strict;
use Unicorn::PHP qw( check_php fix_php);
use Unicorn::Shell qw( check_shell fix_shell);
use Unicorn::Django qw( check_django_settings fix_django_settings );
sub check_go {
my $file = shift @_;
my $rt = shift @_;
return 1;
}
sub fix_go {
my $filename = shift @_;
`gofix "$filename"`;
return 1;
}
sub check_cpp {
return 0;
}
sub fix_cpp {
my $file = shift @_;
my $rt = shift @_;
return $rt;
}
sub check_py {
return check_django_settings(@_);
}
sub fix_py {
return fix_django_settings(@_);
}
use base 'Exporter';
our @EXPORT = qw{check_php fix_php check_go fix_go check_cpp fix_cpp check_shell fix_shell check_py fix_py};
1;
Something went wrong with that request. Please try again.