tag-parser/src/main/java/net/fabricmc/tag/TagParser.java
public static void main(String[] args) throws IOException {
		final Logger logger = LogManager.getLogger("TagParser");
		final Path dir = Paths.get("").toAbsolutePath();

		logger.info("Checking tags in {}", dir);

		final TagLoadResult result = loadTags(logger, dir);

		logger.info("Loaded: {}, Malformed: {}", result.loadedTags().size(), result.malformedTags().size());

		if (!result.malformedTags().isEmpty()) {
			logger.error("Failed to parse all tags. The following tags are malformed:");

			for (String malformedTag : result.malformedTags()) {
				logger.error(malformedTag);
			}

			System.exit(1);
		}
	}
/**
	 * This can be run by github actions to validate tags before merge.
	 */
This can be run by github actions to validate tags before merge.
This can be run by github actions to validate tags before merge .
public static void main(String[] args) throws IOException {
		final Logger logger = LogManager.getLogger("TagParser");
		final Path dir = Paths.get("").toAbsolutePath();
		logger.info("Checking tags in {}", dir);
		final TagLoadResult result = loadTags(logger, dir);
		logger.info("Loaded: {}, Malformed: {}", result.loadedTags().size(), result.malformedTags().size());
		if (!result.malformedTags().isEmpty()) {
			logger.error("Failed to parse all tags. The following tags are malformed:");
			for (String malformedTag : result.malformedTags()) {
				logger.error(malformedTag);
			}
			System.exit(1);
		}
	}
public static void main ( String [ ] args ) throws IOException { final Logger logger = LogManager . getLogger ( "TagParser" ) ; final Path dir = Paths . get ( "" ) . toAbsolutePath ( ) ; logger . info ( "Checking tags in {}" , dir ) ; final TagLoadResult result = loadTags ( logger , dir ) ; logger . info ( "Loaded: {}, Malformed: {}" , result . loadedTags ( ) . size ( ) , result . malformedTags ( ) . size ( ) ) ; if ( ! result . malformedTags ( ) . isEmpty ( ) ) { logger . error ( "Failed to parse all tags. The following tags are malformed:" ) ; for ( String malformedTag : result . malformedTags ( ) ) { logger . error ( malformedTag ) ; } System . exit ( 1 ) ; } }
This can be run by github actions to validate tags before merge.
This can be run by github actions to validate tags before merge .