Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #157: Set env PMD_APEX_ROOT_DIRECTORY #180

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

adangel
Copy link
Collaborator

@adangel adangel commented Oct 24, 2024

The new property apexPMD.apexRootDirectory controls, how the environment variable PMD_APEX_ROOT_DIRECTORY is determined:

  • {"mode": "automatic"} - this is the default setting. It searches the directory tree upwards to find the nearest file sfdx-project.json. When found, this directory is used. Otherwise the workspace root directory is used (regardless whether a sfdx-project.json file exists or not).
  • {"mode": "custom", "customValue": "path/to/project"} - custom setting to bypass the automatic behavior: It uses whatever value is provided as customValue for the root directory.
  • {"mode": "off"} - this disables this feature. Then the environment variable PMD_APEX_ROOT_DIRECTORY is not set at all.

Fixes #157

@adangel adangel marked this pull request as ready for review November 28, 2024 15:42
@adangel adangel added this to the next milestone Nov 28, 2024
@adangel adangel changed the title Set env PMD_APEX_ROOT_DIRECTORY Fix #157: Set env PMD_APEX_ROOT_DIRECTORY Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for environment variable PMD_APEX_ROOT_DIRECTORY
1 participant