/** * Returns a configuration for use by the given project. The configuration * provides information about which issues are enabled, any customizations * to the severity of an issue, etc. * <p> * By default this method returns a {@link DefaultConfiguration}. * * @param project the project to obtain a configuration for * @return a configuration, never null. */ public Configuration getConfiguration(Project project) { return DefaultConfiguration.create(this, project, null); }
/** * Returns a configuration for use by the given project. The configuration * provides information about which issues are enabled, any customizations * to the severity of an issue, etc. * <p> * By default this method returns a {@link DefaultConfiguration}. * * @param project the project to obtain a configuration for * @param driver the current driver, if any * @return a configuration, never null. */ @NonNull public Configuration getConfiguration(@NonNull Project project, @Nullable LintDriver driver) { return DefaultConfiguration.create(this, project, null); }