question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove <url> requirement

See original GitHub issue

❤️ this project and all the hard work that’s gone into it! /cc @paulirish et al

I’ve been writing some custom gatherers/audits recently and wanted to take that work further. Outside of www specific audits, I’d like to use lighthouse to test against local project-specifc files, assets, dependancies, apis, repos etc… The only issue I find is the requirement of a <url>. I can get passed this by simply providing a local/arbitrary value to the cli but I feel like its an anti-pattern (and I know Paul hates anti-patterns).

Examples of general-purpose gatherers I’d like to write:

  • Github (organizations, members, repos, contents etc.)
  • Sonarqube (code coverage)
  • Contentful (schemas, assets)
  • lots more…

Examples of general-purpose audits I’d like to write/run:

  • Source code/file analysis (linting, standards, best practices, coverage etc.)
  • Maintainability (repository health checks, templates, licensing, versioning etc.)
  • Performance (local, staging & prod build metrics)
  • lots more…

Why?

I see a ton of value in the way lighthouse is architected (ie. collecting > auditing > scoring) and would prefer not to have 2, 3, 4, 5 different testing/auditing tools to create a dashboard of insights (plus, the lighthouse dashboard is really 🌶).

Along these lines, some discussion (https://github.com/GoogleChrome/lighthouse/issues/1806) and work (https://github.com/GoogleChrome/lighthouse/pull/3743) have been done in this space around the separation of the audit and gatherer phases (GAAAAr!); I can definitely see a lot more use cases from the community (of the CLI tool) if the underlaying architecture was to be more exposed, talked about & emphasized.

What?

  • Make lighthouse <url>-agnostic

How?

  • Remove <url> as a requirement and/or
  • Create a flag (ex. lighthouse --disable-driver)

Would love to know others thoughts/feelings here.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
paulirishcommented, Apr 20, 2018

Looks like sonar enabled this workflow. Check out “Easily extend sonarwhal with parsers to analyze files such as config files” on https://blogs.windows.com/msedgedev/2018/04/19/sonarwhal-v1-linting-tool-for-web/

0reactions
darcyclarkecommented, Apr 20, 2018

@paulirish thanks for the update/tip here Paul! Will check this out for sure.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Remove Website URL Field from WordPress Comment ...
This method is easier and recommended for all users. First, you need to install and activate the Comment Link Remove and Comment Tools...
Read more >
URL removal explained, Part III: Removing content that you ...
Verified URL removal tool: for requesting to remove content from Google's search ... Once one of these requirements is met, you can submit...
Read more >
How to Remove Website URL Field from the WordPress ...
In this article, we'll see how to remove the website URL field from your WordPress comment forms using PHP code.
Read more >
Remove Outdated Content tool - Search Console Help
Use the Remove Outdated Content tool to have Google update search results for pages or images ... Enter the URL of the page...
Read more >
Remove URLs - WordPress Comment Form - Crunchify
Just remove 'url' => field from above ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found