Merge pull request #10420 from github/ginsbach/RemoveMoreUpperCaseVariables

remove several upper-case `NamedExpression` variable names
This commit is contained in:
Jeroen Ketema
2022-09-15 11:50:02 +02:00
committed by GitHub
11 changed files with 12 additions and 12 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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() + ")"

View File

@@ -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() + ")"

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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