A close curly brace should be located at the beginning of a line for all languages

typescript
javascript

(Opack) #1

Hi !

To be quick I think there should be a version of the rule php:S1109 for the other languages. In my particular case, I miss this rule for Javascript and TypeScript :frowning:

Maybe it is planned but I did not see anything here suggesting it. I saw this issue but it does not mention TypeScript in the targeted languages and I am not sure if it is planned or going to be.

Sorry if this request is therefore redundant !


(Nicolas Harraudeau) #2

Hi @opack,

Thank you for this suggestion. It indeed makes sense to extend this rule to javascript and typescript. I created the corresponding implementation tickets in SonarJS and SonarTS. However we can’t give any ETA yet.

Regards,