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.

Rule: Disallow `{{unless}}`

See original GitHub issue

Good:

{{#unless somePredicate}}
{{/unless}}

<div class="{{unless foo 'no-foo'}}"></div>

Bad:

{{#unless (and foo bar)}}
{{/unless}}
{{#unless foo}}
{{else}}
{{/unless}}
{{#if foo}}
{{else unless bar}}
{{/if}}

Mostly because it is impossible to reason about…

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
cibernoxcommented, Jul 27, 2016

I’m actually ok with unless as long as there is no else clause.

0reactions
rwjbluecommented, Jun 6, 2017

❤️

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS::Events::Rule - AWS CloudFormation
Creates or updates the specified rule. Rules are enabled by default, or based on value of the state. You can disable a rule...
Read more >
Attack surface reduction (ASR) rules reference - Microsoft Learn
Block executable files from running unless they meet a prevalence, age, or trusted list criterion. This rule blocks executable files, such as ....
Read more >
Firewall rule actions and priorities - Deep Security Help Center
If you have no Allow rules in effect on a computer, all traffic is permitted unless it is specifically blocked by a Deny...
Read more >
Rule 5. Serving and Filing Pleadings and Other Papers
If an action is begun by seizing property and no person is or need be named as a defendant, any service required before...
Read more >
Rules | Stylelint
what the rule is checking, e.g. disallowed-list. Unless it applies to the whole source, then there is no first part. Avoid errors​. You...
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