Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusting Codestyle Check to Exclude External Libraries #80

Merged
merged 1 commit into from
Nov 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion apps/ci/ci-codestyle.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
#!/bin/bash

# exclude external libraries from code style check
exclude=(
# dirs
"Eluna"
)

exclude_dirs=""
for dir in "${exclude[@]}"; do
exclude_dirs+="--exclude-dir=$dir "
done

set -e

echo "Starting Codestyling Script:"
Expand All @@ -13,7 +24,7 @@ declare -A singleLineRegexChecks=(
for check in ${!singleLineRegexChecks[@]}; do
echo " Checking RegEx: '${check}'"

if grep -P -r -I -n ${check} src; then
if grep -P -r -I -n $exclude_dirs ${check} src; then
echo
echo "${singleLineRegexChecks[$check]}"
exit 1
Expand Down
Loading