org.sonar.api.resources.Project.getConfiguration()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(6.3k)|赞(0)|评价(0)|浏览(109)

本文整理了Java中org.sonar.api.resources.Project.getConfiguration()方法的一些代码示例,展示了Project.getConfiguration()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Project.getConfiguration()方法的具体详情如下:
包路径:org.sonar.api.resources.Project
类名称:Project
方法名:getConfiguration

Project.getConfiguration介绍

暂无

代码示例

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * Gets the user defined group.
 * 
 * @return the user defined group.
 */
public String getGroup() {
 return getProject().getConfiguration().getString(PHPUNIT_GROUP_PROPERTY_KEY, PHPUNIT_DEFAULT_GROUP);
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * Should run coverage.
 * 
 * @return true, if successful
 */
public boolean shouldRunCoverage() {
 Configuration configuration = getProject().getConfiguration();
 return configuration.getBoolean(PHPUNIT_SHOULD_RUN_COVERAGE_PROPERTY_KEY, Boolean.parseBoolean(PHPUNIT_DEFAULT_SHOULD_RUN_COVERAGE));
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * @return
 */
public String getMinimunNumberOfIdenticalLines() {
 Configuration configuration = getProject().getConfiguration();
 return configuration.getString(PHPCPD_MINIMUM_NUMBER_OF_IDENTICAL_LINES_KEY, PHPCPD_DEFAULT_MINIMUM_NUMBER_OF_IDENTICAL_LINES);
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * Gets the user defined loader.
 * 
 * @return the user defined loader.
 */
public String getLoader() {
 return getProject().getConfiguration().getString(PHPUNIT_LOADER_PROPERTY_KEY, PHPUNIT_DEFAULT_LOADER);
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * @return
 */
public String getMinimunNumberOfIdenticalTokens() {
 Configuration configuration = getProject().getConfiguration();
 return configuration.getString(PHPCPD_MINIMUM_NUMBER_OF_IDENTICAL_TOKENS_KEY, PHPCPD_DEFAULT_MINIMUM_NUMBER_OF_IDENTICAL_TOKENS);
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * Gets the level argument value.
 * 
 * @return the level
 */
public String getLevel() {
 return getProject().getConfiguration().getString(PHPCS_SEVERITY_KEY);
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * Gets the standard argument value.
 * 
 * @return the standard
 */
public String getStandard() {
 return getProject().getConfiguration().getString(PHPCS_STANDARD_ARGUMENT_KEY, PHPCS_DEFAULT_STANDARD_ARGUMENT);
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * Gets the user defined boot strap.
 * 
 * @return the user defined filter.
 */
public String getBootstrap() {
 return getProject().getConfiguration().getString(PHPUNIT_BOOTSTRAP_PROPERTY_KEY, PHPUNIT_DEFAULT_BOOTSTRAP);
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * Gets the user defined configuration file.
 * 
 * @return the user defined configuration file.
 */
public String getConfiguration() {
 return getProject().getConfiguration().getString(PHPUNIT_CONFIGURATION_PROPERTY_KEY, PHPUNIT_DEFAULT_CONFIGURATION);
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * @return
 */
public String getSeverityModifier() {
 return getProject().getConfiguration().getString(PHPCS_SEVERITY_OR_LEVEL_MODIFIER_KEY, PHPCS_SEVERITY_OR_LEVEL_MODIFIER);
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

public String getExcludePackages() {
 String[] values = getProject().getConfiguration().getStringArray(PDEPEND_EXCLUDE_PACKAGE_KEY);
 if (values != null && values.length > 0) {
  return StringUtils.join(values, ',');
 }
 return null;
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

public String getIgnoreDirs() {
 String[] values = getProject().getConfiguration().getStringArray(PDEPEND_IGNORE_KEY);
 if (values != null && values.length > 0) {
  return StringUtils.join(values, ',');
 }
 return StringUtils.EMPTY;
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * Gets the ignore list.
 * 
 * @return the ignore list
 */
public String getIgnoreList() {
 String[] values = getProject().getConfiguration().getStringArray(PHPMD_IGNORE_ARGUMENT_KEY);
 if (values != null && values.length > 0) {
  return StringUtils.join(values, ',');
 }
 return null;
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * @return
 */
public String getExcludePackages() {
 String[] values = getProject().getConfiguration().getStringArray(PHPCPD_EXCLUDE_PACKAGE_KEY);
 if (values != null && values.length > 0) {
  return StringUtils.join(values, PHPCPD_DIRECTORY_SEPARATOR);
 }
 return null;
}

代码示例来源:origin: org.codehaus.sonar-plugins.dotnet.csharp/sonar-csharp-squid-plugin

public CSharpCPDMapping(CSharp csharp, Project project) {
 super();
 this.csharp = csharp;
 this.charset = project.getFileSystem().getSourceCharset();
 ignoreLiterals = project.getConfiguration().getBoolean(CSharpSquidConstants.CPD_IGNORE_LITERALS_PROPERTY,
   CSharpSquidConstants.CPD_IGNORE_LITERALS_DEFVALUE);
}

代码示例来源:origin: org.codehaus.sonar-plugins.dotnet/sonar-plugin-dotnet-core

@Override
public void configure(Project project, MavenPlugin plugin) {
 String[] excludedProjectNames 
  = project.getConfiguration().getStringArray("sonar.skippedModules");
 if (excludedProjectNames!=null) {
  String skippedProjectsParam = StringUtils.join(excludedProjectNames,',');
  plugin.setParameter("skippedProjects", skippedProjectsParam);
 }
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * Instantiates a new php depend executor.
 * 
 * @param configuration
 *          the configuration
 */
public PhpDependExecutor(PhpDependConfiguration configuration) {
 this.configuration = configuration;
 PHP.setConfiguration(configuration.getProject().getConfiguration());
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * Instantiates a new php checkstyle executor.
 * 
 * @param configuration
 *          the configuration
 */
public PhpmdExecutor(PhpmdConfiguration configuration, PhpmdProfileExporter exporter, RulesProfile profile) {
 this.configuration = configuration;
 PHP.setConfiguration(configuration.getProject().getConfiguration());
 this.exporter = exporter;
 this.profile = profile;
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * Instantiates a new php codesniffer executor.
 * 
 * @param configuration
 *          the configuration
 */
public PhpCodeSnifferExecutor(PhpCodeSnifferConfiguration configuration, PhpCodeSnifferProfileExporter exporter, RulesProfile profile) {
 this.configuration = configuration;
 PHP.setConfiguration(configuration.getProject().getConfiguration());
 this.exporter = exporter;
 this.profile = profile;
}

代码示例来源:origin: org.codehaus.sonar-plugins/sonar-php-plugin

/**
 * Instantiates a new php depend executor.
 * 
 * @param configuration
 *          the configuration
 */
public PhpCpdExecutor(PhpCpdConfiguration configuration) {
 this.configuration = configuration;
 PHP.setConfiguration(configuration.getProject().getConfiguration());
}

相关文章