mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Merge pull request #10420 from github/ginsbach/RemoveMoreUpperCaseVariables
remove several upper-case `NamedExpression` variable names
This commit is contained in:
@@ -16,5 +16,5 @@ predicate hasInheritanceDepth(Class c, int d) {
|
||||
|
||||
from int depth
|
||||
where hasInheritanceDepth(_, depth)
|
||||
select depth as InheritanceDepth, count(Class c | hasInheritanceDepth(c, depth)) as NumberOfClasses
|
||||
order by InheritanceDepth
|
||||
select depth as inheritanceDepth, count(Class c | hasInheritanceDepth(c, depth)) as numberOfClasses
|
||||
order by inheritanceDepth
|
||||
|
||||
@@ -51,4 +51,4 @@ where
|
||||
100 * sum(Class c | c.fromSource() | c.getMetrics().getEfferentSourceCoupling()) /
|
||||
sum(Class c | c.fromSource() | c.getMetrics().getEfferentCoupling())
|
||||
).toString() + "%"
|
||||
select l as Title, n as Value
|
||||
select l as title, n as value
|
||||
|
||||
@@ -16,4 +16,4 @@ where
|
||||
t.fromSource() and
|
||||
n = t.getMetrics().getEfferentSourceCoupling() and
|
||||
n > 10
|
||||
select t as Class, "This class has too many dependencies (" + n.toString() + ")"
|
||||
select t as class_, "This class has too many dependencies (" + n.toString() + ")"
|
||||
|
||||
@@ -17,4 +17,4 @@ where
|
||||
n = f.getMetrics().getNumberOfCalls() and
|
||||
n > 99 and
|
||||
not f.isMultiplyDefined()
|
||||
select f as Function, "This function makes too many calls (" + n.toString() + ")"
|
||||
select f as function, "This function makes too many calls (" + n.toString() + ")"
|
||||
|
||||
@@ -14,4 +14,4 @@ where
|
||||
n.fromSource() and
|
||||
c = n.getMetrics().getAbstractness() and
|
||||
c > 0.2
|
||||
select n as Namespace, c as Abstractness order by Abstractness desc
|
||||
select n as namespace, c as abstractness order by abstractness desc
|
||||
|
||||
@@ -13,4 +13,4 @@ where
|
||||
n.fromSource() and
|
||||
c = n.getMetrics().getAbstractness() and
|
||||
c = 0
|
||||
select n as Namespace, c as Abstractness order by Abstractness desc
|
||||
select n as namespace, c as abstractness order by abstractness desc
|
||||
|
||||
@@ -15,4 +15,4 @@ where
|
||||
n.fromSource() and
|
||||
c = n.getMetrics().getAfferentCoupling() and
|
||||
c > 20
|
||||
select n as Namespace, c as AfferentCoupling order by AfferentCoupling desc
|
||||
select n as namespace, c as afferentCoupling order by afferentCoupling desc
|
||||
|
||||
@@ -15,4 +15,4 @@ where
|
||||
n.fromSource() and
|
||||
c = n.getMetrics().getDistanceFromMain() and
|
||||
c > 0.7
|
||||
select n as Namespace, c as DistanceFromMainline order by DistanceFromMainline desc
|
||||
select n as namespace, c as distanceFromMainline order by distanceFromMainline desc
|
||||
|
||||
@@ -15,4 +15,4 @@ where
|
||||
n.fromSource() and
|
||||
c = n.getMetrics().getEfferentCoupling() and
|
||||
c > 20
|
||||
select n as Namespace, c as EfferentCoupling order by EfferentCoupling desc
|
||||
select n as namespace, c as efferentCoupling order by efferentCoupling desc
|
||||
|
||||
@@ -14,4 +14,4 @@ where
|
||||
n.fromSource() and
|
||||
c = n.getMetrics().getInstability() and
|
||||
c < 0.2
|
||||
select n as Namespace, c as Instability order by Instability desc
|
||||
select n as namespace, c as instability order by instability desc
|
||||
|
||||
@@ -14,4 +14,4 @@ where
|
||||
n.fromSource() and
|
||||
c = n.getMetrics().getInstability() and
|
||||
c > 0.8
|
||||
select n as Package, c as Instability order by Instability desc
|
||||
select n as package, c as instability order by instability desc
|
||||
|
||||
Reference in New Issue
Block a user