Skip to content

Commit

Permalink
codecov improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
wickedOne committed Feb 11, 2024
1 parent 883f3b5 commit 5eebf30
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/GPH/Psalm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ sub getConfig {
));
}

if (@{$self->{ignoredDirectories}}) {
if (defined $self->{ignoredDirectories}) {
my $ignoreFiles = $self->{generator}->buildElement('ignoreFiles', undef, $projectFiles);

foreach my $path (@{$self->{ignoredDirectories}}) {
Expand All @@ -91,7 +91,7 @@ sub getConfig {
}
}

if (@{$self->{plugins}}) {
if (defined $self->{plugins}) {
my $plugins = $self->{generator}->buildElement('plugins', undef, $psalm);

foreach my $plugin (@{$self->{plugins}}) {
Expand Down
2 changes: 1 addition & 1 deletion t/share/Gitlab/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[alpha]
/src/Command @teams/alpha
/src/Service @teams/alpha
/src/Service @teams/alpha @#!$%^
.gitlab-ci.yml @teams/alpha

[beta]
Expand Down
3 changes: 3 additions & 0 deletions t/unit/GPH/PHPStan.t
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ describe "class `$CLASS` instantiation values" => sub {

case 'maximum config' => sub {
@ignoredDirectories = qw(/ignored/);
$ignoredDirectories[1] = undef;

@includes = qw(/includes/);
$includes[1] = undef;

%config = (
level => 1,
Expand Down
2 changes: 1 addition & 1 deletion t/unit/GPH/PHPUnit.t
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe "class `$CLASS`" => sub {
};

tests "baseline file not found" => sub {
ok(dies{$CLASS->new((codeowners => $CODEOWNERS_FILE, owner =>'@teams/alpha', baseline => 'foo.txt'))}, 'died with codeowners not found') or note ($@);
ok(dies{$CLASS->new((codeowners => $CODEOWNERS_FILE, owner =>'@teams/alpha', baseline => 'foo.txt'))}, 'died with baseline not found') or note ($@);
};
};

Expand Down

0 comments on commit 5eebf30

Please sign in to comment.