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.

Lint warnings for web content developers/authors

See original GitHub issue

As suggested in 6ac112db998aaae568aaf0b47de2c6f7f9512b92, would it be helpful to emit warnings when invalid things such as aria-labelledby="" are encountered?

  • Should it just do it, or should this be a separate mode?
  • If the error has already been reported, should it be reported again (e.g. during a scan after a mutation)? (Probably not—could flag the first scan? But then that might miss the error, as it could be added by a mutation, so should a record of the errors be kept?)

Update (2019/08/11): I’m leaning towards it always linting, and exposing some icons in the pop-up at least (maybe even a flag on the icon?) In order to stop repeated results, it could take note of the selector computed for an element, as this should remain constant across certain page changes.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
carmacleodcommented, Feb 10, 2021

Lack of a main region?

Absolutely, flag lack of a main region, mostly because main is the most important landmark, but also if there’s, say, a header and a footer and no main, then there must be a big chunk of:

Content that is outside of a landmark region.

One exception that I noticed was google, which has only a single “search” landmark, and no main… which kind of makes sense… (nothing else on the page is in a landmark, but it’s a very sparse page)

1reaction
matatkcommented, Feb 8, 2021

Finally started to address this, with just one simple check, in #410 😃.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Generated Content has Lint Issues #4824 - GitHub
Problem When running yarn rw g scaffold it creates a bunch of lint errors/warnings.
Read more >
Web Developer Life Hack: Lint Everything - LinkedIn
Linters detect issues ranging from those with simple fixes like improper indentation to potentially buggy or error-prone sections found through ...
Read more >
Linters aren't in your way. They're on your side
Traditionally, linters make sure your code is clean and easy for teammates to read. They check for errors, bugs, style, and more.
Read more >
KB40500: "Export aborted because fatal lint errors were found ...
When developers try to create the APK used to distribute and install MicroStrategy Mobile's Android application, Lint errors may occur ...
Read more >
Web Accessibility Evaluation Tools List - W3C
WCAG 2.0 — W3C Web Content Accessibility Guidelines 2.0 (139 tools) ... This CSS file intends to warn developers about possible risks and...
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