def METHOD_NAME(args):
    """
    Only runs linter for monitors generation, without writing the actual file.
    """
    Linter.shared = Linter()
    all_monitors = read_all_monitors(tests_dir=args.tests_dir)
    renderer = MainTF.load_from_templates(
        main_template_path='monitors-gen/templates/main.tf.src',
        logs_monitor_template_path='monitors-gen/templates/monitor-logs.tf.src',
        apm_monitor_template_path='monitors-gen/templates/monitor-apm.tf.src',
        rum_monitor_template_path='monitors-gen/templates/monitor-rum.tf.src'
    )
    _ = renderer.render(monitors=all_monitors)
    Linter.shared.print(strict=False)  # Just print linter events, without aborting