Removes All CamelCase'd "NanoTrasen" (#22156)

* begone CamelCase

* someone did an oopsie and it wasnt me

* CI addition (thanks contra)

* contra review

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>

* CI moment

---------

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
This commit is contained in:
matttheficus
2023-09-07 06:18:29 -04:00
committed by GitHub
parent 9af3ebdc88
commit ae78b936e5
10 changed files with 22 additions and 13 deletions

View File

@@ -89,6 +89,12 @@ def check_proc_args_with_var_prefix(lines):
if PROC_ARGS_WITH_VAR_PREFIX_RE.match(line):
return Failure(idx + 1, "Changed files contains a proc argument starting with 'var'.")
NANOTRASEN_CAMEL_CASE = re.compile(r"NanoTrasen")
def check_for_nanotrasen_camel_case(lines):
for idx, line in enumerate(lines):
if NANOTRASEN_CAMEL_CASE.search(line):
return Failure(idx + 1, "Nanotrasen should not be spelled in the camel case form.")
TO_CHAT_WITH_NO_USER_ARG_RE = re.compile(r"to_chat\(\"")
def check_to_chats_have_a_user_arguement(lines):
for idx, line in enumerate(lines):
@@ -101,6 +107,7 @@ CODE_CHECKS = [
check_trailing_newlines,
check_global_vars,
check_proc_args_with_var_prefix,
check_for_nanotrasen_camel_case,
check_to_chats_have_a_user_arguement,
]