Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit d4b9869

Browse files
committed
Disabled max-len lint check for generated tests.
1 parent 61c0e79 commit d4b9869

File tree

129 files changed

+258
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+258
-5
lines changed

.eslintrcforjs.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ module.exports = {
1515
},
1616
rules: {
1717
'semi': 'error',
18-
'max-len': 'off',
1918
'no-multi-spaces': ['error', { 'exceptions': { 'ArrayExpression': true } }],
2019
'indent': 'off',
2120
'require-jsdoc': 'off',

test/cts/from_nnapi/test_generator/src/cts_generator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,7 @@ def DumpCtsTest(example, test):
714714
InitializeCtsTestFile(test, 4)
715715
Example.DumpAllExamples(DumpTest=DumpCtsTest, test=test)
716716
IndentedPrint("});", file=test)
717+
IndentedPrint("/* eslint-disable max-len */", file=test)
717718
if Configuration.successedCounter == 0:
718719
os.remove(testFile)
719720
else:

test/cts/from_nnapi/test_generator/src/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ def DumpAllInOneCtsTest(test, cts):
3939
with SmartOpen(generatedTestPath, mode="r") as readFile:
4040
fileText = readFile.readlines()
4141
for (lineNum, lineText) in enumerate(fileText):
42-
if lineNum in range(5, len(fileText) - 1):
42+
if lineNum in range(6, len(fileText) - 2):
4343
aioTest.write(lineText)
4444
IndentedPrint("});", file=aioTest)
45+
IndentedPrint("/* eslint-disable max-len */", file=aioTest)
4546

4647
if __name__ == "__main__":
4748
spec, test, cts = ParseCmdLine()

test/cts/from_nnapi/test_generator/src/test_generator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,6 +1241,7 @@ def InitializeCtsTestFile(test, detph):
12411241
'use strict';
12421242
import * as utils from '%sutils.js';\n""" % ''.join(['../']*detph)
12431243
print(testFileHeader, file=test)
1244+
print("/* eslint-disable max-len */", file=test)
12441245
print("describe('CTS converted from NNAPI CTS', function() {", file=test)
12451246
IndentedPrint("const nn = navigator.ml.getNeuralNetworkContext();",
12461247
indent=2, file=test)

test/cts/from_nnapi/tests/V1_0/test_add_clamp_converted_from_add.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -20,3 +21,4 @@ describe('CTS converted from NNAPI CTS', function() {
2021
utils.checkValue(outputs.op3.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2122
});
2223
});
24+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_averagePool2d_clamp_converted_from_avg_pool_float_1.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -20,3 +21,4 @@ describe('CTS converted from NNAPI CTS', function() {
2021
utils.checkValue(outputs.op3.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2122
});
2223
});
24+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_averagePool2d_clamp_converted_from_avg_pool_float_2.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/cts/from_nnapi/tests/V1_0/test_averagePool2d_clamp_converted_from_avg_pool_float_3.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/cts/from_nnapi/tests/V1_0/test_averagePool2d_clamp_converted_from_avg_pool_float_4.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/cts/from_nnapi/tests/V1_0/test_clamp_converted_from_relu1_float_1.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -17,3 +18,4 @@ describe('CTS converted from NNAPI CTS', function() {
1718
utils.checkValue(outputs.op2.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
1819
});
1920
});
21+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_clamp_converted_from_relu1_float_2.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/cts/from_nnapi/tests/V1_0/test_clamp_converted_from_relu6_float_1.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -17,3 +18,4 @@ describe('CTS converted from NNAPI CTS', function() {
1718
utils.checkValue(outputs.op2.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
1819
});
1920
});
21+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_clamp_converted_from_relu6_float_2.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/cts/from_nnapi/tests/V1_0/test_concat_converted_from_concat_float_1.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -20,3 +21,4 @@ describe('CTS converted from NNAPI CTS', function() {
2021
utils.checkValue(outputs.result.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2122
});
2223
});
24+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_concat_converted_from_concat_float_2.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/cts/from_nnapi/tests/V1_0/test_concat_converted_from_concat_float_3.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/cts/from_nnapi/tests/V1_0/test_conv2d_add_clamp_converted_from_conv_float.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -23,3 +24,4 @@ describe('CTS converted from NNAPI CTS', function() {
2324
utils.checkValue(outputs.op4.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2425
});
2526
});
27+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_conv2d_add_clamp_converted_from_conv_float_channels.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -23,3 +24,4 @@ describe('CTS converted from NNAPI CTS', function() {
2324
utils.checkValue(outputs.op4.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2425
});
2526
});
27+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_conv2d_add_clamp_converted_from_conv_float_channels_weights_as_inputs.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -25,3 +26,4 @@ describe('CTS converted from NNAPI CTS', function() {
2526
utils.checkValue(outputs.op4.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2627
});
2728
});
29+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_conv2d_add_clamp_converted_from_conv_float_large.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -23,3 +24,4 @@ describe('CTS converted from NNAPI CTS', function() {
2324
utils.checkValue(outputs.op4.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2425
});
2526
});
27+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_conv2d_add_clamp_converted_from_conv_float_large_weights_as_inputs.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -25,3 +26,4 @@ describe('CTS converted from NNAPI CTS', function() {
2526
utils.checkValue(outputs.op4.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2627
});
2728
});
29+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_conv2d_add_clamp_converted_from_conv_float_weights_as_inputs.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -25,3 +26,4 @@ describe('CTS converted from NNAPI CTS', function() {
2526
utils.checkValue(outputs.op4.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2627
});
2728
});
29+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_conv2d_add_clamp_converted_from_depthwise_conv2d_float_large.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -23,3 +24,4 @@ describe('CTS converted from NNAPI CTS', function() {
2324
utils.checkValue(outputs.op4.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2425
});
2526
});
27+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_conv2d_add_clamp_converted_from_depthwise_conv2d_float_large_2.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -23,3 +24,4 @@ describe('CTS converted from NNAPI CTS', function() {
2324
utils.checkValue(outputs.op4.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2425
});
2526
});
27+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_conv2d_add_clamp_converted_from_depthwise_conv2d_float_large_2_weights_as_inputs.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -25,3 +26,4 @@ describe('CTS converted from NNAPI CTS', function() {
2526
utils.checkValue(outputs.op4.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2627
});
2728
});
29+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_conv2d_add_clamp_converted_from_depthwise_conv2d_float_large_weights_as_inputs.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -25,3 +26,4 @@ describe('CTS converted from NNAPI CTS', function() {
2526
utils.checkValue(outputs.op4.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2627
});
2728
});
29+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_matmul_add_clamp_converted_from_fully_connected_float.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -21,3 +22,4 @@ describe('CTS converted from NNAPI CTS', function() {
2122
utils.checkValue(outputs.op3.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2223
});
2324
});
25+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_matmul_add_clamp_converted_from_fully_connected_float_3.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -21,3 +22,4 @@ describe('CTS converted from NNAPI CTS', function() {
2122
utils.checkValue(outputs.op3.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2223
});
2324
});
25+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_matmul_add_clamp_converted_from_fully_connected_float_large.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -21,3 +22,4 @@ describe('CTS converted from NNAPI CTS', function() {
2122
utils.checkValue(outputs.op3.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2223
});
2324
});
25+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_matmul_add_clamp_converted_from_fully_connected_float_large_weights_as_inputs.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -23,3 +24,4 @@ describe('CTS converted from NNAPI CTS', function() {
2324
utils.checkValue(outputs.op3.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2425
});
2526
});
27+
/* eslint-disable max-len */

test/cts/from_nnapi/tests/V1_0/test_matmul_add_clamp_converted_from_fully_connected_float_weights_as_inputs.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22
import * as utils from '../../../../utils.js';
33

4+
/* eslint-disable max-len */
45
describe('CTS converted from NNAPI CTS', function() {
56
const nn = navigator.ml.getNeuralNetworkContext();
67

@@ -23,3 +24,4 @@ describe('CTS converted from NNAPI CTS', function() {
2324
utils.checkValue(outputs.op3.buffer, expected, utils.ctsFp32RestrictAccuracyCriteria);
2425
});
2526
});
27+
/* eslint-disable max-len */

0 commit comments

Comments
 (0)