Skip to content

Add Pre-Commit Badge to README.md #29

Add Pre-Commit Badge to README.md

Add Pre-Commit Badge to README.md #29

Triggered via pull request December 29, 2023 18:48
Status Success
Total duration 3m 5s
Artifacts

cpp-linter.yml

on: pull_request
Matrix: cpp-linter
Fit to window
Zoom out
Zoom in

Annotations

10 errors, 10 warnings, and 10 notices
src/IO/PowerGridIO.cpp:8:10 [clang-diagnostic-error]: src/IO/PowerGridIO.cpp#L8
'IO/PowerGridIO.hpp' file not found
src/IO/Appearance/Color.cpp:1:10 [clang-diagnostic-error]: src/IO/Appearance/Color.cpp#L1
'IO/Appearance/Color.hpp' file not found
Run clang-format on src/Runnables/main.cpp: src/Runnables/main.cpp#L1
File src/Runnables/main.cpp does not conform to Custom style guidelines. (lines 8, 12, 25, 29, 35, 43, 57, 61, 62, 69, 70, 71, 72, 76, 77, 78, 79, 83, 84, 85, 86, 90, 91, 92, 93, 99, 100, 104, 105, 106, 107, 111, 112, 113, 114, 118, 119, 120, 121, 125, 126, 127, 128, 130, 134, 135, 136, 139, 140, 141, 142, 150, 151, 152, 155, 156, 159, 160, 167, 169, 173, 175, 179, 180, 181, 183, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 204, 205, 206, 207, 208, 211, 214, 217, 223, 224, 225, 226, 227, 228, 229, 230, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 245, 246, 247, 248, 254, 255, 257, 258, 261, 264, 265, 266, 267, 272, 276, 277, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 290, 291, 292, 293, 296, 297, 298, 299, 302, 303, 304, 305, 306, 307, 312, 313, 314, 315, 318, 319, 320, 321, 322, 323, 328, 329, 340, 343, 348, 349, 350, 352, 353, 354, 356, 357, 358, 359, 360, 362, 363, 364, 365, 366, 368, 370, 371, 372, 373)
Run clang-format on src/IO/PowerGridIO.cpp: src/IO/PowerGridIO.cpp#L1
File src/IO/PowerGridIO.cpp does not conform to Custom style guidelines. (lines 12, 14, 15, 16, 20, 21, 22, 26, 27, 28, 32, 33, 34, 35, 36, 40, 41, 42, 43, 44)
Run clang-format on src/IO/Appearance/Color.cpp: src/IO/Appearance/Color.cpp#L1
File src/IO/Appearance/Color.cpp does not conform to Custom style guidelines. (lines 1, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367, 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383, 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399, 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415, 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431, 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 453, 454, 455, 456, 457, 458, 460, 461, 462, 464, 465, 466, 467, 468, 470, 471, 472, 474, 475, 476, 477, 478, 480, 481, 482, 484, 485, 486, 487, 488, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499)
Run clang-format on tests/Algorithms/Centralities/TestBetweennessCentrality.cpp: tests/Algorithms/Centralities/TestBetweennessCentrality.cpp#L1
File tests/Algorithms/Centralities/TestBetweennessCentrality.cpp does not conform to Custom style guidelines. (lines 10, 17, 19, 21, 22, 25, 27, 29, 30, 31, 32, 33, 34, 35, 36, 41, 42, 45, 46, 48, 49, 52, 53, 56, 57, 59, 60, 63, 64, 67, 68, 70, 71, 74, 75, 78, 79, 81, 82, 85, 87, 88, 91, 94, 96, 97, 98, 99, 100, 101, 102, 103, 108, 109, 112, 113, 115, 116, 119, 120, 123, 124, 126, 127, 130, 131, 134, 135, 137, 138, 141, 142, 145, 146, 148, 149, 150, 153, 155, 156, 159, 161, 163, 164, 165, 166, 167, 168, 169, 170, 175, 176, 179, 180, 182, 183, 186, 187, 190, 191, 193, 194, 197, 198, 201, 202, 204, 205, 208, 209, 212, 213, 215, 216, 219, 221, 222, 225, 227, 229, 230, 231, 232, 233, 234, 235, 236, 241, 242, 245, 246, 248, 249, 252, 253, 256, 257, 259, 260, 263, 264, 267, 268, 270, 271, 274, 275, 278, 279, 281, 282, 283, 289, 290, 292, 294, 295, 296, 298, 299, 304, 306)
Run clang-format on tests/Algorithms/Centralities/TestGeneratorBasedBetweennessCentrality.cpp: tests/Algorithms/Centralities/TestGeneratorBasedBetweennessCentrality.cpp#L1
File tests/Algorithms/Centralities/TestGeneratorBasedBetweennessCentrality.cpp does not conform to Custom style guidelines. (lines 10, 17, 21, 22, 26, 28, 30, 31, 35, 36, 39, 40, 42, 43, 46, 47, 50, 51, 53, 54, 57, 58, 61, 62, 64, 65, 68, 69, 72, 73, 75, 76, 81, 82, 86, 88, 90, 91, 95, 96, 99, 100, 102, 103, 106, 107, 110, 111, 113, 114, 117, 118, 121, 122, 124, 125, 128, 129, 132, 133, 135, 136, 137, 142, 143, 147, 149, 151, 152, 156, 157, 160, 161, 163, 164, 167, 168, 171, 172, 174, 175, 178, 179, 182, 183, 185, 186, 189, 190, 193, 194, 196, 197, 202, 203, 207, 209, 211, 212, 216, 217, 220, 221, 223, 224, 227, 228, 231, 232, 234, 235, 238, 239, 242, 243, 245, 246, 249, 250, 253, 254, 256, 257)
Run clang-format on tests/Algorithms/PathFinding/TestDominatingThetaPath.cpp: tests/Algorithms/PathFinding/TestDominatingThetaPath.cpp#L1
File tests/Algorithms/PathFinding/TestDominatingThetaPath.cpp does not conform to Custom style guidelines. (lines 11, 18, 22, 23, 25, 28, 29, 31, 33, 36, 37, 40, 43, 44, 45, 46, 47, 48, 49, 50, 52, 55, 56, 57, 58, 59, 60, 61, 62, 64, 65, 66, 67, 68, 69, 70, 71, 78, 79, 81, 84, 85, 87, 88, 89, 90, 91, 93, 94, 95, 97, 98, 99, 101, 102, 103, 105, 106, 107, 109, 110, 111, 114, 115, 118, 121, 122, 124, 126, 129, 130, 132, 134, 137, 138, 140, 142, 147, 149, 150, 155, 156, 157, 160, 162, 164, 169, 171, 174, 175, 177, 179, 183, 184, 185, 186, 187, 190, 191, 192, 193, 194, 195, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 211, 212, 213, 214, 215, 216, 217, 222, 223, 225, 228, 229, 231, 232, 233, 234, 235, 237, 238, 239, 241, 242, 243, 245, 246, 247, 249, 250, 251, 253, 254, 255, 258, 259, 262, 265, 266, 268, 270, 273, 274, 276, 278, 281, 282, 284, 286, 291, 293, 298, 300, 305, 307, 310, 312, 314, 317, 318, 320, 322, 326, 327, 328, 329, 330, 333, 334, 335, 336, 337, 338, 341, 342, 343, 344, 345, 346, 349, 350, 351, 352, 353, 354, 355, 356, 357, 358)
Run clang-format on tests/DataStructures/TestBound.cpp: tests/DataStructures/TestBound.cpp#L1
File tests/DataStructures/TestBound.cpp does not conform to Custom style guidelines. (lines 19, 21, 23, 25, 27, 29, 32, 37, 41, 44, 48, 52, 53, 55, 56, 59, 62, 66, 67, 68, 69, 70)
Run clang-format on tests/DataStructures/Graphs/TestGraph.cpp: tests/DataStructures/Graphs/TestGraph.cpp#L1
File tests/DataStructures/Graphs/TestGraph.cpp does not conform to Custom style guidelines. (lines 15, 18, 23, 28, 33, 38, 44, 49, 54, 59, 64, 70, 75, 80, 85, 90, 96, 102, 108, 109, 113, 114, 120, 121, 125, 126, 132, 133, 137, 145, 151, 158, 165, 167, 171, 172, 178, 188, 190, 200, 206, 212, 218, 224, 234, 240, 246, 252, 258, 268, 271, 279, 282, 293, 298, 312, 317, 334, 345, 359, 378, 383, 401, 404, 405, 406, 414, 416, 420, 421, 422, 433, 438, 439, 442, 443, 444, 455, 458, 463, 464, 467, 468, 482, 486, 488, 489, 490, 497, 502, 503, 504, 514, 519, 522, 523, 524, 534, 537, 542, 545, 546, 547, 558, 566, 571, 576, 581, 586, 592, 597, 602, 607, 613, 620, 632, 635, 643, 646, 654, 675, 680, 697, 700, 708, 711, 719, 722, 730, 750, 755, 771, 775, 785, 789, 799, 803, 813, 819, 824, 834, 837, 843, 848, 858, 862, 866, 875, 878, 887, 890, 899, 904, 908, 918, 921, 926, 930, 940, 945, 946, 947, 948, 949, 950, 953, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 983, 984, 986, 987, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1017, 1018, 1019, 1020, 1021, 1022, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1050, 1053, 1055, 1056, 1058, 1069, 1070, 1071, 1072, 1073, 1074, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1098, 1099, 1104, 1105, 1106, 1107, 1108, 1109, 1112, 1113, 1114, 1115, 1116, 1117, 1118, 1119, 1120, 1121, 1122, 1123, 1124, 1125, 1126, 1127, 1128, 1129, 1130, 1131, 1132, 1133, 1134, 1139, 1140, 1141, 1142, 1143, 1144, 1147, 1148, 1149, 1150, 1151, 1152, 1153, 1154, 1155, 1156, 1157, 1158, 1159, 1160, 1161, 1162, 1163, 1164, 1165, 1166, 1167, 1168, 1169, 1174, 1182, 1185, 1193, 1206, 1209, 1212, 1223, 1238, 1246, 1249, 1256, 1260, 1279, 1285, 1286, 1293, 1295, 1302, 1306, 1316, 1322, 1323, 1330, 1332, 1339, 1343, 1355, 1361, 1362, 1369, 1371, 1378, 1382, 1386, 1455, 1457, 1458, 1459, 1467, 1469, 1470, 1471, 1479, 1481, 1482, 1483, 1491, 1493, 1494, 1497, 1501, 1508, 1510, 1511, 1512, 1513, 1521, 1523, 1524, 1531, 1541, 1543, 1564, 1565, 1573, 1580, 1581, 1588, 1605, 1606, 1607, 1618, 1619, 1634, 1657, 1658, 1681, 1689, 1693, 1694, 1695, 1701, 1702, 1703, 1705, 1708, 1709, 1716, 1717, 1718, 1719, 1723, 1727, 1728, 1729, 1730, 1731, 1737, 1741, 1742, 1743, 1744, 1746, 1747, 1748, 1749, 1750, 1751, 1757, 1761, 1762, 1763, 1764, 1771, 1778, 1779, 1780, 1781, 1785, 1790, 1798, 1802, 1810, 1815, 1823, 1827, 1836, 1837, 1838, 1839, 1843, 1844, 1845, 1846, 1850, 1854, 1855, 1856, 1857, 1858, 1859, 1865, 1868, 1869, 1870, 1871, 1872, 1873, 1879, 1883, 1884, 1885, 1886, 1887, 1893, 1896, 1897, 1898, 1899, 1900, 1907, 1908, 1909, 1910, 1914, 1915, 1916, 1917, 1921, 1922, 1923, 1924, 1928, 1932, 1933, 1934, 1935, 1937, 1938, 1939, 1940, 1941, 1942, 1948, 1952, 1953, 1954, 1955, 1962, 1964, 1969, 1971, 1976, 1978, 1983, 1985, 1990, 1995, 2003, 2008, 2016, 2021, 2029, 2034, 2043, 2044, 2045, 2046, 2050, 2051, 2052, 2053, 2057, 2058, 2059, 2060, 2064, 2065, 2066, 2067, 2071, 2075, 2076, 2077, 2078, 2080, 2081, 2082, 2083, 2085, 2086, 2087, 2088, 2095, 2099, 2100, 2101, 2102, 2104, 2105, 2106, 2107, 2109, 2110, 2111, 2112, 2119, 2123, 2124, 2125, 2126, 2128, 2134, 2138, 2139, 2140, 2141, 2143, 2151, 2152, 2155, 2156, 2157, 2158, 2164, 2165, 2166, 2167, 2168, 2169, 2170, 2171, 2172, 2173, 2174, 2177, 2178, 2179, 2180, 2181, 2182, 2183, 2184, 2190, 2191, 2194, 2195, 2196, 2197, 2203, 2204, 2205, 2206, 2207, 2208, 2209, 2210, 2211, 2212, 2213, 2215, 2216, 2217, 2218, 2219, 2220, 2221, 2222, 2227, 2228, 2229, 2230, 2231, 2232, 2237, 2238, 2239, 2240, 2241, 2242)
Run clang-format on tests/DataStructures/Graphs/TestBlockCutTree.cpp: tests/DataStructures/Graphs/TestBlockCutTree.cpp#L1
File tests/DataStructures/Graphs/TestBlockCutTree.cpp does not conform to Custom style guidelines. (lines 10, 16, 23, 27, 30, 33, 40, 43, 48, 53, 70, 77, 80, 87, 92, 100, 104, 108, 128, 136, 143, 146, 153, 158, 166, 167, 170, 184, 188, 192, 198, 205, 209, 215)
Run clang-format on tests/DataStructures/Graphs/TestDynamicGraph.cpp: tests/DataStructures/Graphs/TestDynamicGraph.cpp#L1
File tests/DataStructures/Graphs/TestDynamicGraph.cpp does not conform to Custom style guidelines. (lines 3, 12, 16, 17, 18, 19, 20, 21, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 44, 51, 59, 60, 62, 64, 69, 77, 78, 80, 82, 90, 98, 99, 101, 103, 116, 127, 128, 129, 130, 131, 133, 134, 135, 154, 155, 156, 157, 158, 160, 161, 162, 163, 164, 165, 184, 185, 186, 187, 188, 190, 191, 192, 193, 194, 195, 200, 201)
src/Runnables/main.cpp:38:10 [modernize-deprecated-headers]: src/Runnables/main.cpp#L38
inclusion of deprecated C++ header 'assert.h'; consider using 'cassert' instead
src/Runnables/main.cpp:60:9 [cppcoreguidelines-avoid-non-const-global-variables]: src/Runnables/main.cpp#L60
variable 'inputFile' is non-const and globally accessible, consider making it const
src/Runnables/main.cpp:69:24 [cppcoreguidelines-init-variables]: src/Runnables/main.cpp#L69
variable 'algorithmOption' is not initialized
src/Runnables/main.cpp:76:24 [cppcoreguidelines-init-variables]: src/Runnables/main.cpp#L76
variable 'variantOption' is not initialized
src/Runnables/main.cpp:83:24 [cppcoreguidelines-init-variables]: src/Runnables/main.cpp#L83
variable 'networkSettingOption' is not initialized
src/Runnables/main.cpp:90:24 [cppcoreguidelines-init-variables]: src/Runnables/main.cpp#L90
variable 'solverOption' is not initialized
src/Runnables/main.cpp:97:24 [cppcoreguidelines-init-variables]: src/Runnables/main.cpp#L97
variable 'inputFileWarmStartOption' is not initialized