HTML

Language-specific information about the way that SonarQube Cloud supports the analysis of HTML.

Language-specific properties

To discover and update the HTML-specific properties, navigate in SonarQube Cloud to Your Project > Administration > General Settings > Languages > HTML. See the Analysis parameters page for more information about specific properties.

PHP code analysis

PHP and HTML analyzers both analyze files with extensions: .php, .php3, .php4, .php5, .phtml.

File metrics, such as the number of lines of code, can only be measured by one of the languages, PHP or HTML. They are handled by the PHP analyzer by default, and by HTML analyzer if for some reason the former is not present.

The HTML analyzer inspects PHP files even if the PHP file extensions are not included in the list of file extensions to analyze.

Last updated

Was this helpful?