File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -380,7 +380,7 @@ class DeclaredRepository extends PomElement {
380380 * Gets the url for this repository. If the `url` tag is present, this will
381381 * be the string contents of that tag.
382382 */
383- string getUrl ( ) { result = this .getAChild ( "url" ) .( PomElement ) .getValue ( ) }
383+ string getRepositoryUrl ( ) { result = this .getAChild ( "url" ) .( PomElement ) .getValue ( ) }
384384}
385385
386386/**
Original file line number Diff line number Diff line change @@ -14,10 +14,10 @@ import java
1414import semmle.code.xml.MavenPom
1515
1616predicate isBintrayRepositoryUsage ( DeclaredRepository repository ) {
17- repository .getUrl ( ) .matches ( "%.bintray.com%" )
17+ repository .getRepositoryUrl ( ) .matches ( "%.bintray.com%" )
1818}
1919
2020from DeclaredRepository repository
2121where isBintrayRepositoryUsage ( repository )
2222select repository ,
23- "Downloading or uploading artifacts to deprecated repository " + repository .getUrl ( )
23+ "Downloading or uploading artifacts to deprecated repository " + repository .getRepositoryUrl ( )
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ import java
1717import semmle.code.xml.MavenPom
1818
1919predicate isInsecureRepositoryUsage ( DeclaredRepository repository ) {
20- repository .getUrl ( ) .regexpMatch ( "(?i)^(http|ftp)://(?!localhost[:/]).*" )
20+ repository .getRepositoryUrl ( ) .regexpMatch ( "(?i)^(http|ftp)://(?!localhost[:/]).*" )
2121}
2222
2323from DeclaredRepository repository
2424where isInsecureRepositoryUsage ( repository )
2525select repository ,
2626 "Downloading or uploading artifacts over insecure protocol (eg. http or ftp) to/from repository " +
27- repository .getUrl ( )
27+ repository .getRepositoryUrl ( )
You can’t perform that action at this time.
0 commit comments