Mirror for Friday Night Funkin
at main 668 lines 13 kB view raw
1{ 2 "extendsConfigPath": "", 3 "defineCombinations": [], 4 "defaultSeverity": "INFO", 5 "baseDefines": [], 6 "version": 1, 7 "exclude": {}, 8 "checks": [ 9 { 10 "props": {}, 11 "type": "Anonymous" 12 }, 13 { 14 "props": { 15 "spaceBefore": false, 16 "spaceInside": false 17 }, 18 "type": "ArrayAccess" 19 }, 20 { 21 "props": {}, 22 "type": "ArrayLiteral" 23 }, 24 { 25 "props": { 26 "allowSingleArgParens": true, 27 "allowReturn": true, 28 "allowFunction": true, 29 "allowCurlyBody": true 30 }, 31 "type": "ArrowFunction" 32 }, 33 { 34 "props": { 35 "avoidIdentifiers": [] 36 }, 37 "type": "AvoidIdentifier" 38 }, 39 { 40 "props": {}, 41 "type": "AvoidStarImport" 42 }, 43 { 44 "props": { 45 "severity": "IGNORE" 46 }, 47 "type": "AvoidTernaryOperator" 48 }, 49 { 50 "props": {}, 51 "type": "BlockBreakingConditional" 52 }, 53 { 54 "props": { 55 "format": "^(e|t|ex|[a-z][a-z][a-zA-Z]+)$" 56 }, 57 "type": "CatchParameterName" 58 }, 59 { 60 "props": { 61 "thresholdSimilar": 120, 62 "severityIdentical": "WARNING", 63 "thresholdIdentical": 60 64 }, 65 "type": "CodeSimilarity" 66 }, 67 { 68 "props": {}, 69 "type": "CommentedOutCode" 70 }, 71 { 72 "props": { 73 "policy": "aligned", 74 "allowSingleline": true, 75 "severity": "INFO" 76 }, 77 "type": "ConditionalCompilation" 78 }, 79 { 80 "props": { 81 "ignoreExtern": true, 82 "format": "^[a-zA-Z0-9]+(?:_[a-zA-Z0-9]+)*$", 83 "tokens": ["INLINE", "NOTINLINE"] 84 }, 85 "type": "ConstantName" 86 }, 87 { 88 "props": { 89 "thresholds": [ 90 { 91 "complexity": 20, 92 "severity": "WARNING" 93 }, 94 { 95 "complexity": 25, 96 "severity": "ERROR" 97 } 98 ], 99 "severity": "IGNORE" 100 }, 101 "type": "CyclomaticComplexity" 102 }, 103 { 104 "props": {}, 105 "type": "DefaultComesLast" 106 }, 107 { 108 "props": { 109 "lineStyle": "onestar", 110 "startStyle": "twostars", 111 "severity": "IGNORE" 112 }, 113 "type": "DocCommentStyle" 114 }, 115 { 116 "props": {}, 117 "type": "Dynamic" 118 }, 119 { 120 "props": {}, 121 "type": "ERegLiteral" 122 }, 123 { 124 "props": { 125 "tokens": [ 126 "CLASS_DEF", 127 "ENUM_DEF", 128 "ABSTRACT_DEF", 129 "TYPEDEF_DEF", 130 "INTERFACE_DEF", 131 "OBJECT_DECL", 132 "FUNCTION", 133 "FOR", 134 "IF", 135 "WHILE", 136 "SWITCH", 137 "TRY", 138 "CATCH" 139 ], 140 "option": "empty" 141 }, 142 "type": "EmptyBlock" 143 }, 144 { 145 "props": { 146 "requireEmptyLineAfterPackage": true, 147 "requireEmptyLineAfterInterface": true, 148 "requireEmptyLineAfterAbstract": true, 149 "allowEmptyLineAfterSingleLineComment": true, 150 "max": 1, 151 "requireEmptyLineAfterClass": true, 152 "allowEmptyLineAfterMultiLineComment": true 153 }, 154 "type": "EmptyLines" 155 }, 156 { 157 "props": { 158 "enforceEmptyPackage": true 159 }, 160 "type": "EmptyPackage" 161 }, 162 { 163 "props": { 164 "none": [], 165 "upto": [], 166 "defaultPolicy": "upto", 167 "exact": [], 168 "max": 1, 169 "ignore": [], 170 "atleast": [], 171 "skipSingleLineTypes": true 172 }, 173 "type": "ExtendedEmptyLines" 174 }, 175 { 176 "props": { 177 "requireParams": true, 178 "fieldType": "BOTH", 179 "requireReturn": true, 180 "ignoreOverride": true, 181 "tokens": ["ABSTRACT_DEF", "CLASS_DEF", "ENUM_DEF", "INTERFACE_DEF"], 182 "modifier": "PUBLIC", 183 "excludeNames": ["new", "toString"] 184 }, 185 "type": "FieldDocComment" 186 }, 187 { 188 "props": { 189 "max": 1000, 190 "ignoreEmptyLines": true, 191 "severity": "IGNORE" 192 }, 193 "type": "FileLength" 194 }, 195 { 196 "props": { 197 "option": "upperCase" 198 }, 199 "type": "HexadecimalLiteral" 200 }, 201 { 202 "props": { 203 "ignoreSetter": true, 204 "ignoreFormat": "^(main|run)$", 205 "ignoreConstructorParameter": true 206 }, 207 "type": "HiddenField" 208 }, 209 { 210 "props": { 211 "character": " ", 212 "severity": "IGNORE" 213 }, 214 "type": "Indentation" 215 }, 216 { 217 "props": { 218 "character": "space", 219 "severity": "INFO", 220 "ignorePattern": "^$" 221 }, 222 "type": "IndentationCharacter" 223 }, 224 { 225 "props": { 226 "ignoreReturnAssignments": true, 227 "severity": "WARNING" 228 }, 229 "type": "InnerAssignment" 230 }, 231 { 232 "props": { 233 "allowProperties": false, 234 "allowMarkerInterfaces": true 235 }, 236 "type": "Interface" 237 }, 238 { 239 "props": { 240 "severity": "IGNORE" 241 }, 242 "type": "LeftCurly" 243 }, 244 { 245 "props": { 246 "max": 160, 247 "ignorePattern": "^$" 248 }, 249 "type": "LineLength" 250 }, 251 { 252 "props": { 253 "listeners": ["addEventListener", "addListener", "on", "once"], 254 "format": "^_?[a-z][a-zA-Z0-9]*$" 255 }, 256 "type": "ListenerName" 257 }, 258 { 259 "props": { 260 "ignoreExtern": true, 261 "format": "^[a-z][a-zA-Z0-9]*$", 262 "tokens": [] 263 }, 264 "type": "LocalVariableName" 265 }, 266 { 267 "props": { 268 "ignoreNumbers": [-1, 0, 1, 2], 269 "severity": "IGNORE" 270 }, 271 "type": "MagicNumber" 272 }, 273 { 274 "props": { 275 "format": "^[A-Z][a-zA-Z0-9]*$", 276 "tokens": ["ABSTRACT"] 277 }, 278 "type": "MemberName" 279 }, 280 { 281 "props": { 282 "format": "^[_a-zA-Z][a-z][a-zA-Z0-9]*$", 283 "tokens": ["ABSTRACT"] 284 }, 285 "type": "MemberName" 286 }, 287 { 288 "props": { 289 "ignoreExtern": true, 290 "format": "^[_a-z][a-zA-Z0-9]*$", 291 "tokens": ["PUBLIC", "PRIVATE", "CLASS", "TYPEDEF"] 292 }, 293 "type": "MemberName" 294 }, 295 { 296 "props": { 297 "maxPrivate": 100, 298 "maxPublic": 100, 299 "maxTotal": 100 300 }, 301 "type": "MethodCount" 302 }, 303 { 304 "props": { 305 "max": 50, 306 "ignoreEmptyLines": true, 307 "severity": "IGNORE" 308 }, 309 "type": "MethodLength" 310 }, 311 { 312 "props": { 313 "ignoreExtern": true, 314 "format": "^[a-z][a-zA-Z0-9]*$", 315 "tokens": [], 316 "severity": "IGNORE" 317 }, 318 "type": "MethodName" 319 }, 320 { 321 "props": { 322 "modifiers": [ 323 "PUBLIC_PRIVATE", 324 "STATIC", 325 "MACRO", 326 "OVERRIDE", 327 "INLINE", 328 "DYNAMIC", 329 "FINAL" 330 ], 331 "severity": "IGNORE" 332 }, 333 "type": "ModifierOrder" 334 }, 335 { 336 "props": { 337 "minLength": 2, 338 "ignore": "^\\s+$", 339 "allowDuplicates": 5 340 }, 341 "type": "MultipleStringLiterals" 342 }, 343 { 344 "props": {}, 345 "type": "MultipleVariableDeclarations" 346 }, 347 { 348 "props": { 349 "allowSingleLineStatement": true, 350 "tokens": ["FOR", "ELSE_IF", "WHILE", "DO_WHILE"] 351 }, 352 "type": "NeedBraces" 353 }, 354 { 355 "props": { 356 "max": 3, 357 "severity": "IGNORE" 358 }, 359 "type": "NestedControlFlow" 360 }, 361 { 362 "props": { 363 "max": 1, 364 "severity": "IGNORE" 365 }, 366 "type": "NestedForDepth" 367 }, 368 { 369 "props": { 370 "max": 4 371 }, 372 "type": "NestedIfDepth" 373 }, 374 { 375 "props": { 376 "max": 1 377 }, 378 "type": "NestedTryDepth" 379 }, 380 { 381 "props": { 382 "option": "questionMark" 383 }, 384 "type": "NullableParameter" 385 }, 386 { 387 "props": { 388 "oldFunctionTypePolicy": "none", 389 "unaryOpPolicy": "none", 390 "intervalOpPolicy": "none", 391 "newFunctionTypePolicy": "around", 392 "ternaryOpPolicy": "around", 393 "boolOpPolicy": "around", 394 "assignOpPolicy": "around", 395 "bitwiseOpPolicy": "around", 396 "arithmeticOpPolicy": "around", 397 "compareOpPolicy": "around", 398 "arrowPolicy": "around", 399 "arrowFunctionPolicy": "around" 400 }, 401 "type": "OperatorWhitespace" 402 }, 403 { 404 "props": { 405 "tokens": [ 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 "option": "nl" 442 }, 443 "type": "OperatorWrap" 444 }, 445 { 446 "props": { 447 "tokens": ["="], 448 "option": "eol" 449 }, 450 "type": "OperatorWrap" 451 }, 452 { 453 "props": { 454 "ignoreExtern": true, 455 "format": "^(_|[a-z][a-zA-Z0-9]*$)", 456 "tokens": [] 457 }, 458 "type": "ParameterName" 459 }, 460 { 461 "props": { 462 "max": 7, 463 "ignoreOverriddenMethods": false 464 }, 465 "type": "ParameterNumber" 466 }, 467 { 468 "props": { 469 "severity": "WARNING" 470 }, 471 "type": "PublicAccessor" 472 }, 473 { 474 "props": { 475 "prohibitMeta": false 476 }, 477 "type": "RedundantAccessMeta" 478 }, 479 { 480 "props": { 481 "prohibitMeta": false 482 }, 483 "type": "RedundantAllowMeta" 484 }, 485 { 486 "props": { 487 "enforcePrivate": false, 488 "enforcePublic": true, 489 "enforcePublicPrivate": false 490 }, 491 "type": "RedundantModifier" 492 }, 493 { 494 "props": { 495 "enforceReturnTypeForAnonymous": false, 496 "allowEmptyReturn": true, 497 "enforceReturnType": true 498 }, 499 "type": "Return" 500 }, 501 { 502 "props": { 503 "ignoreFormat": "^$", 504 "max": 2, 505 "severity": "IGNORE" 506 }, 507 "type": "ReturnCount" 508 }, 509 { 510 "props": { 511 "severity": "IGNORE" 512 }, 513 "type": "RightCurly" 514 }, 515 { 516 "props": { 517 "commaPolicy": "after", 518 "semicolonPolicy": "after", 519 "allowTrailingComma": false, 520 "dotPolicy": "none" 521 }, 522 "type": "SeparatorWhitespace" 523 }, 524 { 525 "props": { 526 "tokens": [","], 527 "option": "eol" 528 }, 529 "type": "SeparatorWrap" 530 }, 531 { 532 "props": {}, 533 "type": "SimplifyBooleanExpression" 534 }, 535 { 536 "props": {}, 537 "type": "SimplifyBooleanReturn" 538 }, 539 { 540 "props": { 541 "spaceIfCondition": "should", 542 "spaceAroundBinop": true, 543 "spaceForLoop": "should", 544 "ignoreRangeOperator": true, 545 "spaceWhileLoop": "should", 546 "spaceCatch": "should", 547 "spaceSwitchCase": "should", 548 "noSpaceAroundUnop": true 549 }, 550 "type": "Spacing" 551 }, 552 { 553 "props": { 554 "policy": "onlySingle", 555 "allowException": true, 556 "severity": "IGNORE" 557 }, 558 "type": "StringLiteral" 559 }, 560 { 561 "props": { 562 "format": "^\\s*(TODO|FIXME|HACK|XXX|BUG)" 563 }, 564 "type": "TODOComment" 565 }, 566 { 567 "props": { 568 "ignorePattern": "^$" 569 }, 570 "type": "TabForAligning" 571 }, 572 { 573 "props": { 574 "severity": "IGNORE" 575 }, 576 "type": "Trace" 577 }, 578 { 579 "props": {}, 580 "type": "TrailingWhitespace" 581 }, 582 { 583 "props": { 584 "tokens": ["CLASS_DEF", "ENUM_DEF", "INTERFACE_DEF", "TYPEDEF_DEF"] 585 }, 586 "type": "TypeDocComment" 587 }, 588 { 589 "props": { 590 "ignoreExtern": true, 591 "format": "^[A-Z]+[a-zA-Z0-9]*$", 592 "tokens": [] 593 }, 594 "type": "TypeName" 595 }, 596 { 597 "props": {}, 598 "type": "UnnecessaryConstructor" 599 }, 600 { 601 "props": { 602 "moduleTypeMap": {}, 603 "ignoreModules": [] 604 }, 605 "type": "UnusedImport" 606 }, 607 { 608 "props": { 609 "severity": "WARNING" 610 }, 611 "type": "UnusedLocalVar" 612 }, 613 { 614 "props": { 615 "typeHintPolicy": "enforce_all", 616 "ignoreEnumAbstractValues": true 617 }, 618 "type": "VarTypeHint" 619 }, 620 { 621 "props": { 622 "tokens": [",", ";"], 623 "allowTrailingComma": false 624 }, 625 "type": "WhitespaceAfter" 626 }, 627 { 628 "props": { 629 "tokens": [ 630 "=", 631 "+", 632 "-", 633 "*", 634 "/", 635 "%", 636 ">", 637 "<", 638 ">=", 639 "<=", 640 "==", 641 "!=", 642 "&", 643 "|", 644 "^", 645 "&&", 646 "||", 647 "<<", 648 ">>", 649 ">>>", 650 "+=", 651 "-=", 652 "*=", 653 "/=", 654 "%=", 655 "<<=", 656 ">>=", 657 ">>>=", 658 "|=", 659 "&=", 660 "^=", 661 "=>" 662 ] 663 }, 664 "type": "WhitespaceAround" 665 } 666 ], 667 "numberOfCheckerThreads": 5 668}