File: IndirectObjectNotation.run

package info (click to toggle)
libperl-critic-freenode-perl 0.028-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 416 kB
  • sloc: perl: 986; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 273 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
## name IndirectCalls
## failures 4
## cut

my $foo = new Foo;
my $foo = new Foo @args;
my $bar = new $foo;
my $bar = new $foo @args;

## name DirectCalls
## failures 0
## cut

my $foo = Foo->new;
my $foo = Foo->new(@args);
my $bar = $foo->new;
my $bar = $foo->new(@args);