opral / inlang-message-sdk

0 stars 0 forks source link

unused messages lint rule #6

Open samuelstroschein opened 3 months ago

samuelstroschein commented 3 months ago

Discussed in https://github.com/opral/monorepo/discussions/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](https://inlang.com/m/698iow33/plugin-inlang-tFunctionMatcher)) ### Requirements https://github.com/opral/monorepo/discussions/2126
linear[bot] commented 3 months ago

MESDK-41 unused messages lint rule