Modify visibility and shuffle around some modules (#1807)

This commit is contained in:
Charlie Marsh 2023-01-11 23:57:05 -05:00 committed by GitHub
parent d8162ce79d
commit b36d4a15b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
144 changed files with 734 additions and 798 deletions

View file

@ -34,7 +34,7 @@ def main(*, plugin: str, url: str) -> None:
with open(os.path.join(ROOT_DIR, f"src/{dir_name(plugin)}/rules.rs"), "w+") as fp:
fp.write("use crate::checkers::ast::Checker;\n")
with open(os.path.join(ROOT_DIR, f"src/{dir_name(plugin)}/mod.rs"), "w+") as fp:
fp.write("pub mod rules;\n")
fp.write("pub(crate) mod rules;\n")
fp.write("\n")
fp.write(
"""#[cfg(test)]