Analyze Smarty Templates

Hey Guys,

I’m just trying to get Sonarqube working with smarty template files (file extension .tpl) which contains HTML with a bit of template engine logic i.e. {$hello world}. Any changes to get this work? I tried to assign this extension to HTML but looks like the Template Engine code is not considered or analyzed.

Thanks for any suggestions
Sven

Hi Sven,

Welcome to the SonarSource community!

Smarty template syntax is not currently analyzed by the PHP analyzer.

Cheers

Brian