Skip to content

SALESFORCE

Linters

Linter Additional
sfdx-scanner-apex
SALESFORCE_SFDX_SCANNER_APEX
GitHub stars
sfdx-scanner-aura
SALESFORCE_SFDX_SCANNER_AURA
GitHub stars
sfdx-scanner-lwc
SALESFORCE_SFDX_SCANNER_LWC
GitHub stars

Linted files

Configuration in MegaLinter

Variable Description Default value
SALESFORCE_FILTER_REGEX_INCLUDE Custom regex including filter
SALESFORCE_FILTER_REGEX_EXCLUDE Custom regex excluding filter

Behind the scenes

Installation

  • Dockerfile commands :
ENV JAVA_HOME=/usr/lib/jvm/java-11-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"
RUN sf plugins install @salesforce/plugin-packaging \
    && echo y|sfdx plugins:install sfdx-hardis \
    && npm cache clean --force || true \
    && rm -rf /root/.npm/_cacache