SALESFORCE
Linters
Linted files
Configuration 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 |
|
Behind the scenes
Installation
# renovate: datasource=npm depName=@salesforce/cli
ARG SALESFORCE_CLI_VERSION=2.66.7
# renovate: datasource=npm depName=@salesforce/plugin-packaging
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.9.0
# renovate: datasource=npm depName=sfdx-hardis
ARG SFDX_HARDIS_VERSION=5.6.2
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"
RUN sf plugins install @salesforce/plugin-packaging@${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):