[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:
SkyratBot
2021-09-29 02:16:55 +01:00
committed by GitHub
co-authored by Maurukas
parent 9aa26e3a99
commit b2a800c77d
+4
View File
@@ -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