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

unused messages lix validation validation rule #6

Open
samuelstroschein opened this issue Mar 22, 2024 · 2 comments
Open

unused messages lix validation validation rule #6

samuelstroschein opened this issue Mar 22, 2024 · 2 comments

Comments

@samuelstroschein
Copy link
Member

Discussed in opral/monorepo#1961

Originally posted by samuelstroschein January 2, 2024

Context

Over time messages became stale and are not used in source code anymore. No mechanism exists at the moment that "lints" unused messages that can safely be deleted. The result is an evergrowing amount of messages that translators are supposed to translate even though some or many messages aren't used.

Proposal

Introduce an "unused message" lint rule.

The lint rule parses the source code and searches for message references (similar/identical to the ide extensions message reference matchers)

Requirements

opral/monorepo#2126

Copy link

linear bot commented Mar 22, 2024

@samuelstroschein samuelstroschein closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2024
@samuelstroschein samuelstroschein changed the title unused messages lint rule unused messages lix validation rule Aug 9, 2024
@samuelstroschein samuelstroschein changed the title unused messages lix validation rule unused messages lix validation validation rule Aug 9, 2024
@samuelstroschein
Copy link
Member Author

Someone on discord found a neat workaround for paraglide js by using https://knip.dev/. See https://discord.com/channels/897438559458430986/1283048712448376873/1283157547909517362

CleanShot 2024-09-10 at 16 19 02@2x

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