shouldExcludePackage

Checks if a package should be excluded from scanning.