dral3x / StringsLint

📱Ensure your localized strings are complete and never unused 👍
MIT License
68 stars 10 forks source link

Custom rules by regex #21

Closed bigearsenal closed 6 months ago

bigearsenal commented 2 years ago

Hi there, I couldn't find a way to simply create new rules by regex like SwiftLint. How can I archive that?

dral3x commented 2 years ago

Hi @bigearsenal,

StringsLint supports only hardcoded rules (as you can see here).

To archive what you want, you need to create a new one (in swift like the others) that picks from the configuration file any regex you declare there and verify it across all localized strings.

dral3x commented 6 months ago

@bigearsenal The just released version of stringslint support custom regex for string detection. https://github.com/dral3x/StringsLint/releases/tag/0.1.6

Give it a go if you're still interested! Thank you