-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modernized "data/" directory structure, removed obsolete .conf and in…
…clude.sh code, added "apps/ci" and pr template
- Loading branch information
Showing
16 changed files
with
67 additions
and
96 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
echo "Codestyle check script:" | ||
echo | ||
|
||
declare -A singleLineRegexChecks=( | ||
["LOG_.+GetCounter"]="Use ObjectGuid::ToString().c_str() method instead of ObjectGuid::GetCounter() when logging. Check the lines above" | ||
["[[:blank:]]$"]="Remove whitespace at the end of the lines above" | ||
["\t"]="Replace tabs with 4 spaces in the lines above" | ||
) | ||
|
||
for check in ${!singleLineRegexChecks[@]}; do | ||
echo " Checking RegEx: '${check}'" | ||
|
||
if grep -P -r -I -n ${check} src; then | ||
echo | ||
echo "${singleLineRegexChecks[$check]}" | ||
exit 1 | ||
fi | ||
done | ||
|
||
declare -A multiLineRegexChecks=( | ||
["LOG_[^;]+GetCounter"]="Use ObjectGuid::ToString().c_str() method instead of ObjectGuid::GetCounter() when logging. Check the lines above" | ||
["\n\n\n"]="Multiple blank lines detected, keep only one. Check the files above" | ||
) | ||
|
||
for check in ${!multiLineRegexChecks[@]}; do | ||
echo " Checking RegEx: '${check}'" | ||
|
||
if grep -Pzo -r -I ${check} src; then | ||
echo | ||
echo | ||
echo "${multiLineRegexChecks[$check]}" | ||
exit 1 | ||
fi | ||
done | ||
|
||
echo | ||
echo "Everything looks good" |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +0,0 @@ | ||
#!/usr/bin/env bash | ||
|
||
TRANSM_PATH_ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/" && pwd )" | ||
|
||
source $TRANSM_PATH_ROOT"/conf/conf.sh.dist" | ||
|
||
if [ -f $TRANSM_PATH_ROOT"/conf/conf.sh" ]; then | ||
source $TRANSM_PATH_ROOT"/conf/conf.sh" | ||
fi | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!-- First of all, THANK YOU for your contribution. --> | ||
|
||
## Changes Proposed: | ||
- | ||
- | ||
|
||
## Issues Addressed: | ||
<!-- If your fix has a relating issue, link it below --> | ||
- Closes | ||
|
||
## SOURCE: | ||
<!-- If you can, include a source that can strengthen your claim --> | ||
|
||
## Tests Performed: | ||
<!-- Does it build without errors? Did you test in-game? What did you test? On which OS did you test? Describe any other tests performed --> | ||
- | ||
- | ||
|
||
|
||
## How to Test the Changes: | ||
<!-- Describe in a detailed step-by-step order how to test the changes --> | ||
|
||
1. | ||
2. | ||
3. |
This file was deleted.
Oops, something went wrong.