Commit Graph

14 Commits

Author SHA1 Message Date
Luke Hagar
7808f2337b Enhance URL ignoring logic in fsurls.go to support wildcard patterns and add tests for ignoring specific URLs. Introduce a new function to convert wildcard patterns to regex for improved matching accuracy. 2025-09-13 03:34:12 +00:00
Luke Hagar
4af80ed208 Refactor .slinkignore loading logic in fsurls.go to improve configuration detection and error handling. Introduce findSlinkyConfig function to search for .slinkignore files in parent directories. Enhance JSON parsing with relaxed error handling and emit warnings for misconfigurations. 2025-09-13 02:27:37 +00:00
Luke Hagar
04fb6f150a Fix markdown chunking in check.go by removing extra newline and comment out debug logging in fsurls.go for cleaner output during URL collection. 2025-09-13 01:59:11 +00:00
Luke Hagar
211fafe931 Refactor string splitting in check.go and fsurls.go to use strings.SplitSeq for improved performance. Enhance debug output for .gitignore and .slinkignore file handling, providing clearer logging during file checks and reads. 2025-09-13 01:49:22 +00:00
Luke Hagar
2df17e8247 Refactor URL extraction in fsurls.go to improve handling of matches and offsets. Replace extractCandidates with extractCandidateMatches for better clarity and accuracy in URL processing. Update WriteMarkdown function to enhance link formatting in reports, ensuring correct display and linking of file paths with line numbers. 2025-09-13 01:14:55 +00:00
Luke Hagar
54d7797089 Add .slinkignore support for URL and path exclusions
Introduce a new .slinkignore file format to allow users to specify paths and URLs to ignore during scanning. Update the CollectURLs and CollectURLsProgress functions to respect these ignore rules. Add tests to verify the functionality of the .slinkignore file, ensuring that specified paths and URLs are excluded from results. Update README.md to document the new feature and its usage.
2025-09-12 20:56:45 +00:00
Luke Hagar
ae5fcf868c Enhance URL extraction in fsurls.go by introducing new trimming functions for leading and trailing delimiters, improving URL sanitization. Update regex patterns for better markdown handling and adjust the extractCandidates function to support relative paths. Add tests to validate URL sanitization and preservation of balanced parentheses. 2025-09-12 20:37:23 +00:00
Luke Hagar
64c05b380c Enhance URL scanning functionality in check.go by allowing comma-separated targets and improving debug output. Refactor root.go and run.go to support new target handling and display scanned file counts in the TUI. Introduce CollectURLsProgress in fsurls.go for detailed file processing feedback. 2025-09-12 16:50:40 +00:00
Luke Hagar
c563c8026f Add debug output for path walking in CollectURLs function in fsurls.go to aid in troubleshooting. 2025-09-12 15:04:39 +00:00
Luke Hagar
302eddc97e Add debug output for consolidated configuration and CLI arguments in entrypoint.sh 2025-09-12 14:55:53 +00:00
Luke Hagar
f3804fcd2d Add respect_gitignore input to action.yml and update related logic in entrypoint.sh, check.go, and fsurls.go to support .gitignore handling during URL collection. 2025-09-11 21:02:14 +00:00
Luke Hagar
a0598ac3e9 Fix trailing delimiter check in fsurls.go to include double quotes for accurate string trimming 2025-09-11 19:41:56 +00:00
Luke Hagar
1f593407ca Add debug logging for scanned files in fsurls.go to improve visibility during URL collection 2025-09-11 18:58:43 +00:00
Luke Hagar
c753d4031a pushing the rest 2025-09-11 15:59:53 +00:00