Skip to content

Commit

Permalink
add possiblity to create a copy of the generated .golangci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hermsi1337 committed Nov 23, 2023
1 parent 0f8c5b6 commit 2d2c742
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/golangci-lint-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ if [[ -f "${GOLANGCI_ADDITIONAL_YML}" ]]; then

fi

if [[ -n "${CREATE_WORKDIR_GOLANGCI_YML}" ]]; then
echo "\${CREATE_WORKDIR_GOLANGCI_YML} is set, creating a '.golangci.yml' in '${PWD}'"
cp -a "${GOLANGCI_BASIC_YML}" "${PWD}/.golangci.yml"
fi

if [[ -n "${DEBUG}" ]]; then
echo "---"
cat "${GOLANGCI_BASIC_YML}"
Expand Down

0 comments on commit 2d2c742

Please sign in to comment.