Skip to content

"Scans files for absolute URLs and fails the build on broken links.

License

elmahio/azure-devops-broken-links

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Broken Links Checker

Checks absolute HTTP/HTTPS links in your source during CI.

Features

  • Scans html, cshtml, md, or any other files including links.
  • Ignores relative links.
  • URL ignore patterns with wildcards (example.com/*, *.local/*)
  • Configurable allowed status codes, timeout, and concurrency.
  • Fail the build on broken links or emit warnings.

Usage (YAML)

steps:
- task: BrokenLinksChecker@0
  inputs:
    includeGlobs: |
      **/*.html
      **/*.htm
      **/*.cshtml
      **/*.razor
    excludeFileGlobs: |
      **/node_modules/**
      **/dist/**
    ignoreUrlPatterns: |
      *.local/*
      example.com/*
    failOnBroken: true
    concurrency: 16
    timeoutMs: 10000
    allowedStatus: 200-299,301,302,307,308

About

"Scans files for absolute URLs and fails the build on broken links.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published