blib/lib/Code/TidyAll/Plugin/JSBeautify.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 2 totaltotal 0.0% 0 / 25 CC 1 SCAR 6.9
CC
1
Cov
0%
_build_cmd
2.0
transform_file
2.0
BEGIN
2.0
CRAP 2.0
1 package Code::TidyAll::Plugin::JSBeautify;
2  
3 use strict;
4 use warnings;
5  
6 use Moo;
7  
8 extends 'Code::TidyAll::Plugin';
9  
10 with 'Code::TidyAll::Role::RunsCommand';
11  
12 our $VERSION = '0.85';
13  
14 sub _build_cmd {'js-beautify'}
15  
16 sub transform_file {
17 my ( $self, $file ) = @_;
18  
19 my $output = $self->_run_or_die( '-f', $file );
20 $file->spew_raw($output);
21  
22 return;
23 }
24  
25 1;
26  
27 # ABSTRACT: Use js-beautify with tidyall
28  
29 __END__