[New Rule] LocalizedException SHOULD only be thrown in the Presentation layer #49
Labels
accepted
New rule is accepted
Progress: good first issue
Issues is easy to get started with
proposal
New rule proposal
Rule
LocalizedException
SHOULD only be thrown in the Presentation layer (Controllers, Blocks).Source: Technical Guidelines.
Possible Implementation
Subscribe to the
T_THROW
token. IfLocalizedException
is thrown, check if file path containsBlock
orController.
If not, raise a warning.The text was updated successfully, but these errors were encountered: