protected static void checkPattern(final String arg) throws IOException {
        var failBuild = new AtomicBoolean(false);
        Files.walk(Paths.get(arg))
            .filter(file -> Files.isRegularFile(file)
                && file.toFile().getPath().matches(".*Tests\\.java")
                && !file.toFile().getPath().matches(".*(Base|Abstract).+Tests\\.java")
                && !readFile(file).contains("@Tag"))
            .forEach(file -> {
                print("%s must be assigned a test category via @Tag()", file);
                failBuild.set(true);
            });
        if (failBuild.get()) {
            System.exit(1);
        }
    }
This is {@link CheckMissingTestTagAnnotation}.

@author Misagh Moayyed
@since 6.3.0
ci/checks/CheckMissingTestTagAnnotation.java