Skip to content

feat: Ignore problems when gitignore'd #169

@tyler36

Description

@tyler36

I'm working with the Drupal framework, which relies heavily on community contributed modules and themes.
This extension is great at picking up on the problems.

What I would like is a setting that excludes problems in files if the file is in a gitignore (outside the scope of my repo).
That would mean that vendor folder would be (usually) excluded, but also, in the case of Drupal, things like web/core, or web/modules/contrib.
This would work similiar to how VScode has a "Use Exclude Settings and Ignore Files" toggle for the search panel.

Imagined implementation

This could be implemented as a "php.problems.excludeGitignored": true/false
What would be more interesting and useful would be a "special" value for the php.problems.exclude array so you could do things like:

  "php.problems.exclude": {
    "%gitignored%": [2414],
  "php.problems.exclude": {
    "%gitignored%": [2414],

Thank you for your consideration.

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions