rootstrap / i18n_linter

Rails i18n Linter Gem
https://rootstrap.com
MIT License
44 stars 2 forks source link

Strftime and HttpHeaders rules #13

Closed f19ps closed 5 years ago

f19ps commented 5 years ago

New Strftime rule

This rule remove from the results the strings that are inside a strftime call.

New HttpHeaders rule

This rule remove from the results the strings that are in code's lines with HTTP headers declared. The HTTP headers considered are in Rules:: HttpHeaders#headers_words (could be easily extended).

Change in Uppercase rule

Before change: Any string with a capital letter. After change: Any string with at least one word that starts with a capital letter.

Change in Logger rule

Changing rule to allow the declaration with curly brackets.