From baee9a5471af89609c18ecd5fd39945e604c5f31 Mon Sep 17 00:00:00 2001 From: cdemmigs Date: Thu, 1 Feb 2024 16:07:41 -0500 Subject: [PATCH] Lint craziness --- coverage/tests.lcov | 12 +++++++----- dist/gssql.js | 2 +- src/Views.js | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/coverage/tests.lcov b/coverage/tests.lcov index 5b47353..f80ff9a 100644 --- a/coverage/tests.lcov +++ b/coverage/tests.lcov @@ -1,7 +1,7 @@ -------------------|---------|----------|---------|---------|--------------------------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s -------------------|---------|----------|---------|---------|--------------------------------------- -All files | 95.8 | 94.37 | 94.52 | 95.8 | +All files | 95.8 | 94.37 | 94.38 | 95.8 | JoinTables.js | 99.7 | 98.07 | 100 | 99.7 | 291,579 ScriptSettings.js | 90.72 | 75 | 88.88 | 90.72 | 51-52,81-83,88-90,100-103,135-136 Select2Object.js | 96.73 | 89.47 | 100 | 96.73 | 75-76,101-103 @@ -10,12 +10,12 @@ All files | 95.8 | 94.37 | 94.52 | 95.8 | SqlTest.js | 93.45 | 94.92 | 89.76 | 93.45 | ...4064,4797-4801,4812-4815,4818-4829 Table.js | 98.71 | 88.46 | 100 | 98.71 | 77-78,158-160,163-164 TableData.js | 83.58 | 68.08 | 83.33 | 83.58 | ...28,363-364,391-392,402-404,410-413 - Views.js | 98.22 | 96.28 | 96.73 | 98.22 | ...2011,2019-2030,2180,2316,2480-2481 + Views.js | 98.22 | 96.28 | 96.21 | 98.22 | ...2011,2019-2030,2180,2316,2480-2481 -------------------|---------|----------|---------|---------|--------------------------------------- -------------------|---------|----------|---------|---------|--------------------------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s -------------------|---------|----------|---------|---------|--------------------------------------- -All files | 95.8 | 94.37 | 94.52 | 95.8 | +All files | 95.8 | 94.37 | 94.38 | 95.8 | JoinTables.js | 99.7 | 98.07 | 100 | 99.7 | 291,579 ScriptSettings.js | 90.72 | 75 | 88.88 | 90.72 | 51-52,81-83,88-90,100-103,135-136 Select2Object.js | 96.73 | 89.47 | 100 | 96.73 | 75-76,101-103 @@ -24,7 +24,7 @@ All files | 95.8 | 94.37 | 94.52 | 95.8 | SqlTest.js | 93.45 | 94.92 | 89.76 | 93.45 | ...4064,4797-4801,4812-4815,4818-4829 Table.js | 98.71 | 88.46 | 100 | 98.71 | 77-78,158-160,163-164 TableData.js | 83.58 | 68.08 | 83.33 | 83.58 | ...28,363-364,391-392,402-404,410-413 - Views.js | 98.22 | 96.28 | 96.73 | 98.22 | ...2011,2019-2030,2180,2316,2480-2481 + Views.js | 98.22 | 96.28 | 96.21 | 98.22 | ...2011,2019-2030,2180,2316,2480-2481 -------------------|---------|----------|---------|---------|--------------------------------------- TN: SF:JoinTables.js @@ -11586,6 +11586,7 @@ FN:791,extractStringConstant FN:806,dateToMs FN:834,getColumnTitles FN:852,getComparisonFunction +FN:853,keep FN:857,keep FN:861,keep FN:865,keep @@ -11736,7 +11737,7 @@ FN:2950,get isPrimaryTable FN:2959,setTableInfo FN:2969,getData FN:2980,getAllExtendedAliasNames -FNF:184 +FNF:185 FNH:178 FNDA:350,SelectTables FNDA:342,updateSelectedFields @@ -11772,6 +11773,7 @@ FNDA:302,extractStringConstant FNDA:692,dateToMs FNDA:167,getColumnTitles FNDA:384,getComparisonFunction +FNDA:0,keep FNDA:2383,keep FNDA:169,keep FNDA:99,keep diff --git a/dist/gssql.js b/dist/gssql.js index f90f7e2..7609204 100644 --- a/dist/gssql.js +++ b/dist/gssql.js @@ -2516,7 +2516,7 @@ class FieldComparisons { }} */ static getComparisonFunction(operator) { - let keep; + let keep =(leftValue, rightValue) => { return false }; switch (operator.toUpperCase()) { case "=": diff --git a/src/Views.js b/src/Views.js index b502228..05d6625 100644 --- a/src/Views.js +++ b/src/Views.js @@ -850,7 +850,7 @@ class FieldComparisons { }} */ static getComparisonFunction(operator) { - let keep; + let keep =(leftValue, rightValue) => { return false }; switch (operator.toUpperCase()) { case "=":