【发布时间】:2018-06-01 16:03:14
【问题描述】:
我正在为我的 Drupal 项目使用 sonarqube 和 sonarqube 扫描仪。由于drupal项目是多模块项目,并且在custom_module文件夹下开发了许多自定义模块。
我只扫描文件夹 custom_module 下列出的自定义文件夹。 假设我要扫描 3 个自定义模块... custom_module1、custom_module2、custom_module3 及其下的子文件夹 inc、modules 和 templates... 我的 sonar-project.properties 文件看起来像
# Root project information
sonar.projectKey=MyProjectKey
sonar.projectName=My Project
sonar.projectVersion=1.0
# Some properties that will be inherited by the modules
sonar.sources=inc,modules,templates
sonar.php.file.suffixes=php,module,inc
# List of the module identifiers
sonar.modules=custom_module1,custom_module2,custom_module3
# Properties can obviously be overriden for
# each module - just prefix them with the module ID
custom_module1.sonar.projectName=custom_module1
custom_module2.sonar.projectName=custom_module2
custom_module3.sonar.projectName=custom_module3
现在一切正常,它正在扫描除每个模块根目录下的 .module 文件之外的所有文件。例如custom_module1/custom_module1.module
我应该在属性文件中添加什么以使其包含 .module 文件?
【问题讨论】:
-
这是您的完整属性文件吗?
-
@G.Ann-SonarSourceTeam 是的,这就是完整的声纳属性文件
标签: drupal-7 sonarqube sonarqube-scan