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.

Impact being bound to checks is limiting when composing new rules

See original GitHub issue

The impact property (“minor”, “moderate”, “serious”, or “critical”) is currently bound to a check. It means that when composing a new rule, this rule will necessarily inherit the impacts of the underlying checks.

In my understanding however, a check is an “abstract” atomic piece of logic. A rule on the contrary is the “concrete” implementation of a given accessible guideline. The actual impact of a violation only makes sense for a given rule.

For instance, the non-empty-title check has a serious impact. But there may be cases where a rule checks the presence of empty titles but isn’t about a serious violation (we have such rules in the digital publishing context). In that case, we have no other choice than implementing a custom check with a lesser impact, even if the implementation logic is exactly the same as non-empty-title.

A possible improvement IMO would be to associate the impact to the check only when the rule is composed, but not bake it in the check.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
dylanbcommented, Apr 2, 2018

Having a different impact for checks is only one use case.

The other common case is having two different rules with different impacts for the same check.

Custom rule writers quite often require this and right now we have to duplicate the check to achieve this.

1reaction
WilcoFierscommented, Apr 2, 2018

I think that just overcomplicates things. Very few rules can actually come up with issues of different levels of impact (aria-roles, button-name, label, link-name and scope-attr-valid). And only for one of their checks - one that should probably have been its own rule instead of getting tagged onto an existing rule. I think if you have multiple impact levels, you’re probably dealing with different issues, in which case they shouldn’t be part of the same rule IMO.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Payment in Full Checks: Are Memo Lines Legally Binding?
Short Answer: Beware checks with “Payment in Full,” “Full and Final Settlement” or similar language written in the memo line or endorsement ...
Read more >
Rules Governing Deposit Accounts - Capital One
Commercial-purpose savings accounts (including savings accounts with check writing privileges and money market accounts) may be limited in ...
Read more >
Rules and Regulations | NCUA
Access the current version of the NCUA's Rules and Regulations. ... guidance and information on issues that affect credit union operations.
Read more >
Marbury v. Madison (1803) - National Archives |
Madison, Chief Justice John Marshall established the principle of judicial review, an important addition to the system of “checks and balances” ...
Read more >
Fair Debt Collection Practices Act - Federal Trade Commission
Existing laws and procedures for redressing these injuries are inadequate to protect consumers. (c) Available non-abusive collection methods. Means other than ...
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