mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-25 09:41:29 +00:00
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:
@@ -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,
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user