Scan any website for broken links and HTML issues by running the following command:
$ docker run sswconsulting/codeauditor --url <URL>
You can also get Lighthouse report score by running
$ docker container run --rm --cap-add=SYS_ADMIN sswconsulting/codeauditor --url <URL> --lighthouse
What is --cap-add=SYS_ADMIN option? Read here
Sign up at https://codeauditor.com/
If you sign up, you will get a unique token which allow you to store last 100 scan results online for FREE
$ docker run sswconsulting/codeauditor --url <URL> --buildId <BUILDID> --token <TOKEN>
Where: BUILDID [optional]: your CI build number
Or with Lighthouse options
$ docker container run --rm --cap-add=SYS_ADMIN sswconsulting/codeauditor --url <URL> --lighthouse --buildId <BUILDID> --token <TOKEN>
Run help for all command line options:
$ docker run sswconsulting/codeauditor --help
Include Static Code Analysis:
$ docker container run --cap-add=SYS_ADMIN \
-v "<YOUR_SOURCE_CODE>:/home/lhci/app/src" \
sswconsulting/codeauditor --lighthouse --url <URL>
You can also run lighthouse
tool directly on your build server and have the result published to https://codeauditor.com/
$ npm install -g @lhci/cli
$ lhci collect --url=<URL>
$ docker container run --rm -v "$PWD/.lighthouseci:/usr/app/.lighthouseci" sswconsulting/codeauditor:light --url <URL> --lighthouse --token <TOKEN>