in codeanalyzer/src/main/java/nl/obren/sokrates/sourcecode/scoping/ScopeCreator.java [101:121]
private boolean shouldIncludeExtension(String extension) {
if (customScopingConventions != null) {
CustomExtensionConventions customExtensions = customScopingConventions.getExtensions();
if (customExtensions.getOnlyInclude().size() > 0) {
for (String onlyInclude : customExtensions.getOnlyInclude()) {
if (onlyInclude.equalsIgnoreCase(extension)) {
return true;
}
}
return false;
}
if (customExtensions.getAlwaysExclude().size() > 0) {
for (String alwaysExclude : customExtensions.getAlwaysExclude()) {
if (alwaysExclude.equalsIgnoreCase(extension)) {
return false;
}
}
}
}
return ExtensionGroupExtractor.isKnownSourceCodeExtension(extension);
}