Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sparse-decoration complains too much #266

Open
yegor256 opened this issue Jan 22, 2025 · 3 comments
Open

sparse-decoration complains too much #266

yegor256 opened this issue Jan 22, 2025 · 3 comments
Assignees
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@yegor256
Copy link
Member

A warning is raised for this code:

[] > test
  if. > @
    a
    42
    88

It looks perfectly legit to me. The sparse-decoration must only complain about this situation:

[] > test
  [] > @
    if. > @
      a
      42
      88
@yegor256 yegor256 added bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed labels Jan 22, 2025
@h1alexbel
Copy link
Contributor

h1alexbel commented Jan 22, 2025

@yegor256 I will take this

@h1alexbel
Copy link
Contributor

@yegor256 as far I understood, sparse decoration is allowed in application, for instance:

[] > decorates-application
  if > @
    true
    5
    five

should not raise any warnings, right?

@yegor256
Copy link
Member Author

@h1alexbel correct

h1alexbel added a commit to h1alexbel/lints that referenced this issue Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants