Skip to content

Minimize false positives on WordPressVIPMinimum.Files.IncludingFile.IncludingFile #407

@mdbitz

Description

@mdbitz

require_once \PL\PATH . '/inc/endpoints/especiales-endpoint.php';

❗️ Warning: Absolute include path must be used. Use get_template_directory(), get_stylesheet_directory() or plugin_dir_path() (WordPressVIPMinimum.Files.IncludingFile.IncludingFile).

What problem would the enhancement address for VIP?

Currently clients include files be defining path variables or constants that get used for the path. This makes the IncludingFile rule very noisy with false postiives.

Describe the solution you'd like

We should enhance the rule check to account for path variables/constants to reduce false positives.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions