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

Group linting "learn more" links to the end #197

Open
samhh opened this issue Feb 14, 2023 · 0 comments
Open

Group linting "learn more" links to the end #197

samhh opened this issue Feb 14, 2023 · 0 comments

Comments

@samhh
Copy link
Contributor

samhh commented Feb 14, 2023

Current output:

translations.json:3:29:
  |
3 |     "message": "Some words {mySelect, select, other {}} {myCardinal, plural, =1 {} =1 {}}"
  |                             ^^^^^^^^
redundant-select: Select named `mySelect` is redundant as it only contains a wildcard.

Learn more: https://github.com/unsplash/intlc/wiki/Lint-rules-reference#redundant-select

translations.json:3:84:
  |
3 |     "message": "Some words {mySelect, select, other {}} {myCardinal, plural, =1 {} =1 {}}"
  |                                                                                    ^^
duplicate-plural-case: Plural named `myCardinal` contains a duplicate `=1` case.

Learn more: https://github.com/unsplash/intlc/wiki/Lint-rules-reference#duplicate-plural-case

Suggested:

translations.json:3:29:
  |
3 |     "message": "Some words {mySelect, select, other {}} {myCardinal, plural, =1 {} =1 {}}"
  |                             ^^^^^^^^
redundant-select: Select named `mySelect` is redundant as it only contains a wildcard.

translations.json:3:84:
  |
3 |     "message": "Some words {mySelect, select, other {}} {myCardinal, plural, =1 {} =1 {}}"
  |                                                                                    ^^
duplicate-plural-case: Plural named `myCardinal` contains a duplicate `=1` case.

Learn more:
  redundant-select: https://github.com/unsplash/intlc/wiki/Lint-rules-reference#redundant-select
  duplicate-plural-case: https://github.com/unsplash/intlc/wiki/Lint-rules-reference#duplicate-plural-case

Inspired by Shellcheck's output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant