| title | SALESFORCE linters in MegaLinter |
|---|---|
| description | code-analyzer-apex, code-analyzer-aura, code-analyzer-lwc, sfdx-scanner-apex, sfdx-scanner-aura, sfdx-scanner-lwc, lightning-flow-scanner are available to analyze SALESFORCE files in MegaLinter |
| Variable | Description | Default value |
|---|---|---|
| SALESFORCE_PRE_COMMANDS | List of bash commands to run before the linters | None |
| SALESFORCE_POST_COMMANDS | List of bash commands to run after the linters | None |
| SALESFORCE_FILTER_REGEX_INCLUDE | Custom regex including filter | |
| SALESFORCE_FILTER_REGEX_EXCLUDE | Custom regex excluding filter |
- Dockerfile commands :
# renovate: datasource=npm depName=@salesforce/cli
ARG NPM_SALESFORCE_CLI_VERSION=2.134.6
# renovate: datasource=npm depName=@salesforce/plugin-packaging
ARG NPM_SALESFORCE_PLUGIN_PACKAGING_VERSION=2.27.17
# renovate: datasource=npm depName=sfdx-hardis
ARG SFDX_HARDIS_VERSION=7.13.0
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"
RUN sf plugins install @salesforce/plugin-packaging@${NPM_SALESFORCE_PLUGIN_PACKAGING_VERSION} \
&& echo y|sf plugins install sfdx-hardis@${SFDX_HARDIS_VERSION} \
&& (npm cache clean --force || true) \
&& rm -rf /root/.npm/_cacache
ENV SF_AUTOUPDATE_DISABLE=true SF_CLI_DISABLE_AUTOUPDATE=true- APK packages (Linux):
- NPM packages (node.js):