mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
[MIRROR] [MDB IGNORE] Add merge conflict markers to linter (#8432)
* Add merge conflict markers to linter (#61669) Updates check_grep.sh with a case for the /obj mapmerge2 creates on merge conflicted tiles. You're supposed to fix all of these before you continue a merge, but there's zero warning if you don't clear them all. As a result they can end up in the commit pushed to github, and they can hide quite easily in a PR that otherwise looks fine. Your average map file is about 3 megabytes of raw text, or 160,000 lines. I don't want to have to read them all to prevent this from happening again. * Add merge conflict markers to linter Co-authored-by: Maurukas <66576896+Maurukas@users.noreply.github.com>
This commit is contained in:
@@ -10,6 +10,10 @@ if grep -El '^\".+\" = \(.+\)' _maps/**/*.dmm; then
|
||||
echo "ERROR: Non-TGM formatted map detected. Please convert it using Map Merger!"
|
||||
st=1
|
||||
fi;
|
||||
if grep -P 'Merge conflict marker' _maps/**/*.dmm; then
|
||||
echo "ERROR: Merge conflict markers detected in map, please resolve all merge failures!"
|
||||
st=1
|
||||
fi;
|
||||
if grep -P '^\ttag = \"icon' _maps/**/*.dmm; then
|
||||
echo "ERROR: tag vars from icon state generation detected in maps, please remove them."
|
||||
st=1
|
||||
|
||||
Reference in New Issue
Block a user