Unit tests for the parser, resolves #18 #66
Merged
Annotations
2 errors, 10 warnings, and 3 notices
src/parser.c#L1
'ast.h' file not found
|
|
tests/test_parser.c#L24
variable 'regex' is non-const and globally accessible, consider making it const
|
tests/test_parser.c#L25
variable 'lexer' is non-const and globally accessible, consider making it const
|
tests/test_parser.c#L26
variable 'parser' is non-const and globally accessible, consider making it const
|
tests/test_parser.c#L71
function 'test_peek' has cognitive complexity of 62 (threshold 25)
|
tests/test_parser.c#L107
function 'test_next' has cognitive complexity of 68 (threshold 25)
|
tests/test_parser.c#L145
function 'test_expect' has cognitive complexity of 44 (threshold 25)
|
tests/test_parser.c#L151
variable 'ret' is not initialized
|
tests/test_parser.c#L181
function 'test_parse_base' has cognitive complexity of 58 (threshold 25)
|
tests/test_parser.c#L257
function 'test_parse_factor' has cognitive complexity of 120 (threshold 25)
|
tests/test_parser.c#L312
function 'test_parse_term' has cognitive complexity of 174 (threshold 25)
|
src/parser.c#L1
File src/parser.c does not conform to Custom style guidelines. (lines 1, 14, 25, 36, 53, 70, 87, 104)
|
tests/test_parser.c#L1
File tests/test_parser.c does not conform to Custom style guidelines. (lines 14, 15, 16, 17, 18, 19, 20, 28, 29, 30, 33, 34, 35, 41, 42, 44, 46, 47, 48, 49, 50, 52, 53, 58, 59, 60, 62, 63, 64, 66, 71, 72, 73, 75, 76, 78, 79, 81, 83, 84, 85, 87, 88, 90, 91, 92, 94, 95, 97, 98, 99, 100, 102, 107, 108, 109, 111, 112, 114, 115, 117, 119, 120, 121, 123, 125, 126, 128, 129, 130, 132, 133, 135, 136, 137, 138, 140, 145, 146, 147, 149, 151, 152, 153, 155, 156, 157, 158, 160, 161, 162, 164, 165, 166, 167, 169, 170, 171, 173, 181, 182, 183, 185, 186, 187, 188, 190, 192, 193, 194, 196, 197, 199, 200, 202, 203, 205, 206, 207, 208, 209, 210, 211, 212, 214, 216, 217, 219, 221, 222, 223, 225, 226, 227, 228, 230, 231, 233, 235, 236, 238, 239, 240, 257, 258, 259, 261, 262, 263, 264, 266, 268, 269, 271, 272, 273, 274, 275, 277, 278, 279, 281, 282, 284, 285, 287, 288, 290, 292, 293, 294, 295, 296, 312, 313, 314, 316, 317, 318, 320, 322, 323, 325, 326, 328, 329, 330, 332, 333, 334, 336, 337, 338, 340, 341, 342, 343, 345, 347, 348, 350, 351, 352, 354, 355, 356, 358, 359, 361, 362, 364, 365, 367, 368, 370, 371, 373, 374, 376, 388, 389, 390, 392, 393, 394, 396, 398, 399, 400, 402, 404, 405, 406, 407, 409, 410, 411, 413, 414, 415, 416, 417, 419, 421, 422, 423, 425, 427, 428, 429, 430, 432, 433, 434, 435, 437, 438, 439, 440, 441, 443, 444, 445, 457, 458, 459, 461, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 478, 479, 480, 481, 482, 483, 484, 485, 487, 488, 489, 490, 491, 492, 493, 494, 495, 497, 498, 499, 501, 502, 503, 505, 506, 507, 509, 510, 512, 514, 516, 517, 518, 520, 521, 522, 524, 525, 526, 528, 529, 530, 532, 533, 534, 535, 537, 538, 539, 541, 542, 544, 545, 546, 547, 549, 551, 552, 553, 555, 556, 557, 559, 560, 561, 563, 564, 566, 567, 568, 569, 571, 573, 574, 575, 577, 578, 580, 581, 582, 583, 585, 587, 588, 593, 594, 595, 596, 597, 598, 599, 600, 601, 602, 604, 607, 608)
|
tests/testlib/asserts.h#L1
File tests/testlib/asserts.h does not conform to Custom style guidelines. (lines 4, 13, 14, 15, 16, 17, 18, 19, 21, 23, 24, 25, 26, 27, 32, 36, 37, 38, 39, 40, 44, 45, 46, 47, 51, 52, 53, 54, 55, 58, 59, 60, 61, 62, 65, 66, 67, 68, 69, 72, 73, 74, 75, 76, 77, 81, 82, 86, 87, 90, 91, 92, 93, 94, 95, 96, 99, 100, 101, 102, 103, 104, 105, 106, 107, 109, 111, 112, 113, 114, 115, 116, 117, 118, 119, 121, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 137, 138, 139, 140, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206)
|
This job succeeded
Loading