with a line length greater than 1830 characters
is passed as no issues in SonarQube
Rule S2260 parser failure is activated and finds instances were applicable, but this file is parsed ok
Rule S103 line to long is activated and finds instances in other PHP files and is set to 120 characters but fails on this file
Expected error
S1523 - Dynamically executing code is security-sensitive - not reported
and so on
sonar-scanner -v
INFO: Scanner configuration file: /usr/local/Cellar/sonar-scanner/4.0.0.1744/libexec/conf/sonar-scanner.properties
INFO: Project root configuration file: NONE
INFO: SonarQube Scanner 4.0.0.1744
INFO: Java 11.0.1 Oracle Corporation (64-bit)
INFO: Mac OS X 10.14.6 x86_64
Thanks for the reproducer!
Indeed, that file is excluded from the analysis because it looks like a generated file (see SONARPHP-909), and SonarQube/SonarCloud is not supposed to analyze generated code.
If you activate debug logs in the analysis, you should see something like:
File [file:///dir/file1.php] is excluded because it is considered generated (average line length is too big).