mirror of
https://github.com/github/codeql.git
synced 2026-03-01 05:13:41 +01:00
Java: Adjust comment style.
This commit is contained in:
@@ -52,11 +52,8 @@ class ProtoPom extends XMLElement {
|
||||
class Pom extends ProtoPom {
|
||||
Pom() {
|
||||
this.getName() = "project" and
|
||||
/*
|
||||
* Ignore "dependency-reduced-pom" files - these are generated by the
|
||||
* shading plugin, and duplicate existing pom files.
|
||||
*/
|
||||
|
||||
// Ignore "dependency-reduced-pom" files - these are generated by the
|
||||
// shading plugin, and duplicate existing pom files.
|
||||
this.getFile().getStem() != "dependency-reduced-pom"
|
||||
}
|
||||
|
||||
@@ -260,24 +257,15 @@ class Dependency extends ProtoPom {
|
||||
class PomDependency extends Dependency {
|
||||
PomDependency() {
|
||||
exists(Pom source |
|
||||
/*
|
||||
* This dependency must be a dependency of a pom - dependency tags can also appear in the dependency
|
||||
* management section, where they do not directly contribute to the dependencies of the containing
|
||||
* pom.
|
||||
*/
|
||||
|
||||
// This dependency must be a dependency of a pom - dependency tags can also appear in the dependency
|
||||
// management section, where they do not directly contribute to the dependencies of the containing
|
||||
// pom.
|
||||
source.getADependency() = this and
|
||||
/*
|
||||
* Consider dependencies that can be used at compile time.
|
||||
*/
|
||||
|
||||
// Consider dependencies that can be used at compile time.
|
||||
(
|
||||
getScope() = "compile" or
|
||||
/*
|
||||
* Provided dependencies are like compile time dependencies except (a) they are not packaged
|
||||
* when creating the jar and (b) they are not transitive.
|
||||
*/
|
||||
|
||||
// Provided dependencies are like compile time dependencies except (a) they are not packaged
|
||||
// when creating the jar and (b) they are not transitive.
|
||||
getScope() = "provided"
|
||||
// We ignore "test" dependencies because they can be runtime or compile time dependencies
|
||||
)
|
||||
@@ -412,11 +400,8 @@ class MavenRepoJar extends File {
|
||||
|
||||
string getGroupID() {
|
||||
exists(MavenRepo mr | mr.getAJarFile() = this |
|
||||
/*
|
||||
* Assuming the standard layout, the first part of the directory structure from the maven
|
||||
* repository will be the groupId converted to a path by replacing "." with "/".
|
||||
*/
|
||||
|
||||
// Assuming the standard layout, the first part of the directory structure from the maven
|
||||
// repository will be the groupId converted to a path by replacing "." with "/".
|
||||
result = getParentContainer()
|
||||
.getParentContainer()
|
||||
.getParentContainer()
|
||||
|
||||
Reference in New Issue
Block a user