Skip to content

Commit 796c1c2

Browse files
committed
File clean up.
1 parent 4ad8122 commit 796c1c2

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

src/splitme_ai/tools/markdown_link_validator.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -129,27 +129,3 @@ def check_markdown_file(self, filepath: str) -> List[Dict]:
129129
})
130130

131131
return results
132-
133-
134-
def main():
135-
"""
136-
Example usage of the MarkdownLinkValidator.
137-
"""
138-
filepath = "../README.md"
139-
checker = MarkdownLinkValidator()
140-
results = checker.check_markdown_file(filepath)
141-
142-
_logger.info("\nMarkdown Link Check Results:")
143-
_logger.info("-" * 80)
144-
145-
for result in results:
146-
status = "✅" if result["status"] == "ok" else "❌"
147-
_logger.info(
148-
f"{status} Line {result['line']}: [{result['text']}]({result['url']})"
149-
)
150-
if result["error"]:
151-
_logger.info(f" Error: {result['error']}")
152-
153-
total = len(results)
154-
broken = sum(1 for r in results if r["status"] != "ok")
155-
_logger.info(f"\nSummary: {broken} broken links out of {total} total links")

0 commit comments

Comments
 (0)