Skip to content

Commit

Permalink
Add phpstan-baseline.neon
Browse files Browse the repository at this point in the history
  • Loading branch information
paul121 committed Jan 21, 2025
1 parent 1d62515 commit 57bf284
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
36 changes: 36 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
parameters:
ignoreErrors:
-
message: "#^\\\\Drupal calls should be avoided in classes, use dependency injection instead$#"
count: 2
path: modules/farm_rothamsted_experiment/src/Form/ExperimentPlotGeometryForm.php

-
message: "#^\\\\Drupal calls should be avoided in classes, use dependency injection instead$#"
count: 2
path: modules/farm_rothamsted_experiment/src/Form/ExperimentVariableForm.php

-
message: "#^\\\\Drupal calls should be avoided in classes, use dependency injection instead$#"
count: 1
path: modules/farm_rothamsted_experiment/src/Plugin/views/join/RothamstedExperimentAssetLogs.php

-
message: "#^\\\\Drupal calls should be avoided in classes, use dependency injection instead$#"
count: 1
path: modules/farm_rothamsted_experiment/src/Plugin/views/join/RothamstedExperimentLogs.php

-
message: "#^\\\\Drupal calls should be avoided in classes, use dependency injection instead$#"
count: 1
path: modules/farm_rothamsted_experiment/src/Plugin/views/join/RothamstedExperimentPlotLogs.php

-
message: "#^\\\\Drupal calls should be avoided in classes, use dependency injection instead$#"
count: 1
path: modules/farm_rothamsted_experiment_research/src/ResearchEntityPermissionProvider.php

-
message: "#^\\\\Drupal calls should be avoided in classes, use dependency injection instead$#"
count: 9
path: modules/farm_rothamsted_quick/src/Plugin/QuickForm/QuickExperimentFormBase.php
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
includes:
- phpstan-baseline.neon
parameters:
level: 1
reportUnmatchedIgnoredErrors: true
Expand Down

0 comments on commit 57bf284

Please sign in to comment.