Problem/Motivation

Our CI was failing when scanning Paragraphs due to libraries unable to be detected because of modules not installed. However, these libraries don't exist and are patterns caught in the regex of a database fixture:

[2022-08-19T16:11:11.884Z] FILE: web/modules/contrib/paragraphs/tests/fixtures/drupal7.php
[2022-08-19T16:11:11.884Z] STATUS         LINE                           MESSAGE                           
[2022-08-19T16:11:11.884Z] --------------------------------------------------------------------------------
[2022-08-19T16:11:11.884Z] Check manually 26137The 'tracker/all' library is not defined because the        
[2022-08-19T16:11:11.884Z]                     defining extension is not installed. Cannot decide if it is 
[2022-08-19T16:11:11.884Z]                     deprecated or not.                                          
[2022-08-19T16:11:11.884Z] -----------------------------------------

Steps to reproduce

Scan Paragraphs

Proposed resolution

Ignore tests/fixtures/*.php for library analysis

Remaining tasks

User interface changes

API changes

Data model changes

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mglaman created an issue. See original summary.

mglaman’s picture

Discussed in Slack: we'll parse the PHPStan config as YAML and copy over the ignore patterns.

mglaman’s picture

Actually, there is only one relevant ignore rule: */tests/fixtures/*.php

mglaman’s picture

Status: Active » Needs review
gábor hojtsy’s picture

Status: Needs review » Fixed

Looks great, committed, thanks!

  • 4f8ff11 committed on 8.x-3.x
    Issue #3304830 by mglaman: Library analyzer is not ignoring fixture...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.