megalinter icon indicating copy to clipboard operation
megalinter copied to clipboard

Wrong behaviour of PSALM inside docker

Open bdovaz opened this issue 3 months ago • 19 comments

Describe the bug

If I run it locally, it works correctly but through Megalinter it only works if I don't ignore the vendor folder.

To Reproduce

  1. Run the test_local.ps1 script and check that there are no issues.
  2. Execute the script test_docker.ps1 and check that there are errors.
  3. Open the .mega-linter.yml file and comment the FILTER_REGEX_EXCLUDE line.
  4. Execute the script test_docker.ps1 and check that there are no issues.

I obviously don't want to analyze the scripts in the vendor folder (they are from third party libraries) but I do want to include them with the psalm.xml file so that it resolves the dependencies of my code correctly.

reproProject.zip

bdovaz avatar Mar 26 '24 15:03 bdovaz