mirror of
https://github.com/github/codeql.git
synced 2026-04-28 02:05:14 +02:00
JS: improve alert location of js/angular/repeated-dependency-injection
This commit is contained in:
@@ -10,8 +10,9 @@
|
||||
*/
|
||||
|
||||
import javascript
|
||||
import semmle.javascript.RestrictedLocations
|
||||
|
||||
from AngularJS::InjectableFunction f, ASTNode explicitInjection
|
||||
where count(f.getAnExplicitDependencyInjection()) > 1 and
|
||||
explicitInjection = f.getAnExplicitDependencyInjection()
|
||||
select f.asFunction(), "This function has $@ defined in multiple places.", explicitInjection, "dependency injections"
|
||||
select (FirstLineOf)f.asFunction(), "This function has $@ defined in multiple places.", explicitInjection, "dependency injections"
|
||||
|
||||
Reference in New Issue
Block a user