Skip to content

Commit

Permalink
Add --phpcs-sniffs-exclude to be setup using PHPCS_SNIFFS_EXCLUDE
Browse files Browse the repository at this point in the history
… env
  • Loading branch information
thelovekesh committed Feb 27, 2023
1 parent eb149c5 commit 30b573f
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ fi

#######################################
# Set the --local-git-repo
# Default: ''
# Options: STRING (Path to local git repo)
#######################################
local_git_repo="$DOCKER_GITHUB_WORKSPACE"
Expand Down Expand Up @@ -250,7 +249,7 @@ token="$GH_BOT_TOKEN"
CMD+=( "--token=$token" )

################################################################################
# PHPCS configuratio #
# PHPCS configuration #
################################################################################

#######################################
Expand Down Expand Up @@ -406,6 +405,17 @@ fi

CMD+=( "--phpcs-skip-folders=$phpcs_skip_folders" )

#######################################
# Set the --phpcs-sniffs-exclude
# Default: ''
# Options: STRING (Comma separated list of sniffs to exclude)
#######################################
if [[ -n "$PHPCS_SNIFFS_EXCLUDE" ]]; then
phpcs_sniffs_exclude="$PHPCS_SNIFFS_EXCLUDE"

CMD+=( "--phpcs-sniffs-exclude=$phpcs_sniffs_exclude" )
fi

#######################################
# Set the --phpcs-skip-folders-in-repo-options-file
# Default: true
Expand Down

0 comments on commit 30b573f

Please sign in to comment.