Skip to content

Commit a20b416

Browse files
authored
Merge pull request #10420 from github/ginsbach/RemoveMoreUpperCaseVariables
remove several upper-case `NamedExpression` variable names
2 parents 8e0a006 + c570389 commit a20b416

File tree

11 files changed

+12
-12
lines changed

11 files changed

+12
-12
lines changed

cpp/ql/src/Architecture/General Class-Level Information/InheritanceDepthDistribution.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ predicate hasInheritanceDepth(Class c, int d) {
1616

1717
from int depth
1818
where hasInheritanceDepth(_, depth)
19-
select depth as InheritanceDepth, count(Class c | hasInheritanceDepth(c, depth)) as NumberOfClasses
20-
order by InheritanceDepth
19+
select depth as inheritanceDepth, count(Class c | hasInheritanceDepth(c, depth)) as numberOfClasses
20+
order by inheritanceDepth

cpp/ql/src/Architecture/General Top-Level Information/GeneralStatistics.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ where
5151
100 * sum(Class c | c.fromSource() | c.getMetrics().getEfferentSourceCoupling()) /
5252
sum(Class c | c.fromSource() | c.getMetrics().getEfferentCoupling())
5353
).toString() + "%"
54-
select l as Title, n as Value
54+
select l as title, n as value

cpp/ql/src/Architecture/Refactoring Opportunities/ClassesWithManyDependencies.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ where
1616
t.fromSource() and
1717
n = t.getMetrics().getEfferentSourceCoupling() and
1818
n > 10
19-
select t as Class, "This class has too many dependencies (" + n.toString() + ")"
19+
select t as class_, "This class has too many dependencies (" + n.toString() + ")"

cpp/ql/src/Architecture/Refactoring Opportunities/ComplexFunctions.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ where
1717
n = f.getMetrics().getNumberOfCalls() and
1818
n > 99 and
1919
not f.isMultiplyDefined()
20-
select f as Function, "This function makes too many calls (" + n.toString() + ")"
20+
select f as function, "This function makes too many calls (" + n.toString() + ")"

cpp/ql/src/Metrics/Namespaces/AbstractNamespaces.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ where
1414
n.fromSource() and
1515
c = n.getMetrics().getAbstractness() and
1616
c > 0.2
17-
select n as Namespace, c as Abstractness order by Abstractness desc
17+
select n as namespace, c as abstractness order by abstractness desc

cpp/ql/src/Metrics/Namespaces/ConcreteNamespaces.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ where
1313
n.fromSource() and
1414
c = n.getMetrics().getAbstractness() and
1515
c = 0
16-
select n as Namespace, c as Abstractness order by Abstractness desc
16+
select n as namespace, c as abstractness order by abstractness desc

cpp/ql/src/Metrics/Namespaces/HighAfferentCouplingNamespaces.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ where
1515
n.fromSource() and
1616
c = n.getMetrics().getAfferentCoupling() and
1717
c > 20
18-
select n as Namespace, c as AfferentCoupling order by AfferentCoupling desc
18+
select n as namespace, c as afferentCoupling order by afferentCoupling desc

cpp/ql/src/Metrics/Namespaces/HighDistanceFromMainLineNamespaces.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ where
1515
n.fromSource() and
1616
c = n.getMetrics().getDistanceFromMain() and
1717
c > 0.7
18-
select n as Namespace, c as DistanceFromMainline order by DistanceFromMainline desc
18+
select n as namespace, c as distanceFromMainline order by distanceFromMainline desc

cpp/ql/src/Metrics/Namespaces/HighEfferentCouplingNamespaces.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ where
1515
n.fromSource() and
1616
c = n.getMetrics().getEfferentCoupling() and
1717
c > 20
18-
select n as Namespace, c as EfferentCoupling order by EfferentCoupling desc
18+
select n as namespace, c as efferentCoupling order by efferentCoupling desc

cpp/ql/src/Metrics/Namespaces/StableNamespaces.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ where
1414
n.fromSource() and
1515
c = n.getMetrics().getInstability() and
1616
c < 0.2
17-
select n as Namespace, c as Instability order by Instability desc
17+
select n as namespace, c as instability order by instability desc

0 commit comments

Comments
 (0)