{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"positionRelative (cyclomatic 52): positionRelative has cyclomatic complexity 52 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":5900}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5ce311c6c9ca74a9e8a601de834c1c11290d36901cfd674c85c9d7d7a19790"}},{"ruleId":"D1","level":"warning","message":{"text":"number (cyclomatic 48): number has cyclomatic complexity 48 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":3184}}}],"partialFingerprints":{"codehealthFindingId/v1":"419c9465d1a6d72452ddb67eb7a7452f61bacbe3e5c5c8e443fdafaca7ef39d8"}},{"ruleId":"D1","level":"warning","message":{"text":"State.equals (cyclomatic 39): State.equals has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"model/src/main/java/com/flipkart/flux/domain/State.java"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c6b49fe2536bec8e9687fdd3c09f9d7316e5c6aee3f07899e64f0c11b8757b"}},{"ruleId":"D1","level":"warning","message":{"text":"text (cyclomatic 29): text has cyclomatic complexity 29 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"57aaf0d7e9f573a8535f57acf25cee1da379ae5e8a6db0966d1534730353b21d"}},{"ruleId":"D1","level":"warning","message":{"text":"fitToContent (cyclomatic 27): fitToContent has cyclomatic complexity 27 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":8387}}}],"partialFingerprints":{"codehealthFindingId/v1":"05183455d8dbfb85ddde6547de63138b64dd58709024fd22f51f304d7ebae586"}},{"ruleId":"D1","level":"warning","message":{"text":"StateDefinition.equals (cyclomatic 25): StateDefinition.equals has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/flipkart/flux/api/StateDefinition.java"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"4acad5e3aae83ee8cd41cf58d753a4cf204f34e46bb6e4bf031e7711e307218a"}},{"ruleId":"D1","level":"warning","message":{"text":"StateMachine.equals (cyclomatic 23): StateMachine.equals has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"model/src/main/java/com/flipkart/flux/domain/StateMachine.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a87b4412043ec16dbe4bc226a301d37b1fcbcaaa83d043d2e7ce352088884d"}},{"ruleId":"D1","level":"warning","message":{"text":"onEndModelChange (cyclomatic 22): onEndModelChange has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":7314}}}],"partialFingerprints":{"codehealthFindingId/v1":"f075ebf19066ace934a9024c17179adb30cc0daffe57b63784cfdcf1d322fa76"}},{"ruleId":"D1","level":"warning","message":{"text":"pointermove (cyclomatic 22): pointermove has cyclomatic complexity 22 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":7930}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1f420108136ea229a0862561e39568c4d796ecb7234197757341fd54bf6411"}},{"ruleId":"D1","level":"warning","message":{"text":"AkkaTask.onReceive (cyclomatic 21): AkkaTask.onReceive has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"task/src/main/java/com/flipkart/flux/impl/task/AkkaTask.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"90edb404aa9316091867faefc284be0d852cf84ac8d2f6a7a9dcc7f1bf9b5851"}},{"ruleId":"D1","level":"warning","message":{"text":"breakText (cyclomatic 21): breakText has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":2587}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b53529816eb7e523816277515610a2ece9c4aaa599184880712d80701a5312"}},{"ruleId":"D1","level":"warning","message":{"text":"getConnectionPoint (cyclomatic 21): getConnectionPoint has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":7598}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de8e289324225aafa6802f20c299df9a2f63b029f91a564d25f8e1c9c8b33d0"}},{"ruleId":"D1","level":"warning","message":{"text":"State.hashCode (cyclomatic 20): State.hashCode has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"model/src/main/java/com/flipkart/flux/domain/State.java"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"eddd3905360c77a459419ca453f654cb06073eb58abdef1ab8630d49ce1866a7"}},{"ruleId":"D1","level":"warning","message":{"text":"StateMachineResource.submitEvent (cyclomatic 20): StateMachineResource.submitEvent has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d955796e0b781ba476f625223e37353a7096f1a69923e766718eef04881e12"}},{"ruleId":"D1","level":"warning","message":{"text":"parseTransformString (cyclomatic 19): parseTransformString has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf7d0a1f5f36f0b0453728da5a7b4621d6217d0b90cc5363f0fc97b219a6981"}},{"ruleId":"D1","level":"warning","message":{"text":"annotateString (cyclomatic 19): annotateString has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f134e426fa0a6201c98ecf77e83764e7d25247223050f2c73ed6f50feb2e41f"}},{"ruleId":"D1","level":"warning","message":{"text":"sortSameAsLast (cyclomatic 19): sortSameAsLast has cyclomatic complexity 19 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/components/hystrixCommand/hystrixCommand.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6bbce59b21beddbef70d46ec3a8b5b4c73ae06a73f66a6d6f5a64235156111b"}},{"ruleId":"D1","level":"warning","message":{"text":"StateMachineResource.submitReplayEvent (cyclomatic 18): StateMachineResource.submitReplayEvent has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f1eb76f131c14901e5bd2ac84e4c9b516fca3f182a945e1f125ac9abef3295a"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 18): (anonymous) has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":5770}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cec686866ed43cbd292d0c9fa8bfd45d284d048ca65835050d2e42505ce7271"}},{"ruleId":"D1","level":"warning","message":{"text":"findRoute (cyclomatic 18): findRoute has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":10271}}}],"partialFingerprints":{"codehealthFindingId/v1":"719e2c1953fff8d0bbf21f9a4d771d5a05ac761196ef3d88f4555699d1f7708c"}},{"ruleId":"D1","level":"warning","message":{"text":"inText (cyclomatic 18): inText has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/codemirror/mode/xml/xml.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4eb6cf711e2e0c56fc97d6e6d6495e7264a6d82367ff2ec698d2d39e284527"}},{"ruleId":"D1","level":"warning","message":{"text":"StateMachineResource.updateEvent (cyclomatic 17): StateMachineResource.updateEvent has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"8203352eb2059efa0d2ef730af94540d94edbe8f31d82f57a5f1424826384090"}},{"ruleId":"D1","level":"warning","message":{"text":"StateMachineResource.updateInternalEvent (cyclomatic 17): StateMachineResource.updateInternalEvent has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"9667f6ccfa336228be078db7fbb7e41827fd21066f60c5078d9d0b3aa91a3039"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":3937}}}],"partialFingerprints":{"codehealthFindingId/v1":"a889af8242990403022d9ac0655567cb602eabe668fd10329452281bc92258a4"}},{"ruleId":"D1","level":"warning","message":{"text":"pointerdown (cyclomatic 17): pointerdown has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":7849}}}],"partialFingerprints":{"codehealthFindingId/v1":"99138660092d31189017a7338eb6ab81a1ed98b1a558af4dd67a196879565d09"}},{"ruleId":"D1","level":"warning","message":{"text":"findOrthogonalRoute (cyclomatic 17): findOrthogonalRoute has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":9891}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe382ba3b5e10563ca47665303c2b84db36941d8bd88c606ba5fad285c3d0ae"}},{"ruleId":"D1","level":"warning","message":{"text":"sortSameAsLast (cyclomatic 17): sortSameAsLast has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/components/hystrixThreadPool/hystrixThreadPool.js"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"35970848d236d689ed315c77ddbfc2305eb9a0c9ab65924aca9830c73dca32e1"}},{"ruleId":"D1","level":"warning","message":{"text":"TransactionInterceptor.invoke (cyclomatic 16): TransactionInterceptor.invoke has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/flipkart/flux/guice/interceptor/TransactionInterceptor.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"56fb7f6c5c027a3cde859a02ac17cfb9bbb5a532b805c913ff4a32cdfebe0e09"}},{"ruleId":"D1","level":"warning","message":{"text":"Event.equals (cyclomatic 16): Event.equals has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"model/src/main/java/com/flipkart/flux/domain/Event.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5dc8952d892df35c9c2576ef596f0714b6a03e996c6aa68b7fee07818a0c286"}},{"ruleId":"D2","level":"warning","message":{"text":"positionRelative (cognitive 73): positionRelative has cognitive complexity 73 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":5900}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3207109ce2b92002756fa887f9bd6711fccc87acfae2b1994f4217426efc72a"}},{"ruleId":"D2","level":"warning","message":{"text":"text (cognitive 68): text has cognitive complexity 68 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":1209}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac44c5a98fa7d783acd54554e8963153366e419fa079f611272b4b4aa139eaed"}},{"ruleId":"D2","level":"warning","message":{"text":"AkkaTask.onReceive (cognitive 60): AkkaTask.onReceive has cognitive complexity 60 (threshold 15). Drivers by points: if/else 38, error handling 14, loops 5, boolean chains 3 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"task/src/main/java/com/flipkart/flux/impl/task/AkkaTask.java"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffe2e3fd198b0c7fd27a9c9d24bbe6694a7cd48177bd8d44f3e13b5b786ffad"}},{"ruleId":"D2","level":"warning","message":{"text":"State.equals (cognitive 55): State.equals has cognitive complexity 55 (threshold 15). Drivers by points: ternaries 34, if/else 21 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"model/src/main/java/com/flipkart/flux/domain/State.java"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a02a5ab7ca735d11349ee76d71c7c494dd3dbc9f5f102d9a88aa2cf66e9a9a3"}},{"ruleId":"D2","level":"warning","message":{"text":"TransactionInterceptor.invoke (cognitive 42): TransactionInterceptor.invoke has cognitive complexity 42 (threshold 15). Drivers by points: if/else 29, error handling 8, match/switch 5 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/flipkart/flux/guice/interceptor/TransactionInterceptor.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae7cba4e6594171ad868c30e2190a75c910d3d07094beecc599311df31629aa"}},{"ruleId":"D2","level":"warning","message":{"text":"breakText (cognitive 42): breakText has cognitive complexity 42 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":2587}}}],"partialFingerprints":{"codehealthFindingId/v1":"da0845358d86261a39f7a462bd28270deae26b621325acc3a7933b7bb3b96d2a"}},{"ruleId":"D2","level":"warning","message":{"text":"number (cognitive 41): number has cognitive complexity 41 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":3184}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce25b367a3fad5ca7eb2c6850ab50b29323796ac557b29c5041ed54d41b2ff7"}},{"ruleId":"D2","level":"warning","message":{"text":"findRoute (cognitive 40): findRoute has cognitive complexity 40 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":10271}}}],"partialFingerprints":{"codehealthFindingId/v1":"236878f71f076ba7e38b509ca419f75fa16939a7aa61f85867f09a6dc41138b8"}},{"ruleId":"D2","level":"warning","message":{"text":"StateMachineResource.submitEvent (cognitive 36): StateMachineResource.submitEvent has cognitive complexity 36 (threshold 15). Drivers by points: if/else 22, error handling 10, boolean chains 4 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"10bb13827325c5faa7a93f05c23c86b89c32bfb6c051348a3512e76fbe72db2c"}},{"ruleId":"D2","level":"warning","message":{"text":"inText (cognitive 36): inText has cognitive complexity 36 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/codemirror/mode/xml/xml.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e266636cece3572b675af4b5ca8b5e58d6c78f47c94e30d31361851f6ee6417"}},{"ruleId":"D2","level":"warning","message":{"text":"pointermove (cognitive 34): pointermove has cognitive complexity 34 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":7930}}}],"partialFingerprints":{"codehealthFindingId/v1":"323048a1f1cf5795c6887508a765f71e9498f672e4e5ea1b5a080a99e9fe668d"}},{"ruleId":"D2","level":"warning","message":{"text":"StateDefinition.equals (cognitive 33): StateDefinition.equals has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 19, if/else 13, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/flipkart/flux/api/StateDefinition.java"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"e584238c7ae95c3ee2f453bd8bab5e6649b6ea97e4d9d257b8daf19d66fc8b7c"}},{"ruleId":"D2","level":"warning","message":{"text":"annotateString (cognitive 33): annotateString has cognitive complexity 33 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"83816faa02429f579b7950e790a87d333f0080267d18028bb487373a72d69d38"}},{"ruleId":"D2","level":"warning","message":{"text":"StateMachine.equals (cognitive 32): StateMachine.equals has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 20, if/else 12 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"model/src/main/java/com/flipkart/flux/domain/StateMachine.java"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c62852ac6f45a5c86317d3ad7d5814eace5b80e1cc880ea44cb7fc242a3873"}},{"ruleId":"D2","level":"warning","message":{"text":"findOrthogonalRoute (cognitive 30): findOrthogonalRoute has cognitive complexity 30 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":9891}}}],"partialFingerprints":{"codehealthFindingId/v1":"840cccb70228c3f8c19f0bc1ebbe02f20a6c5bfb08e59bc2b9b1cbc3c47ac9e4"}},{"ruleId":"D2","level":"warning","message":{"text":"onEndModelChange (cognitive 29): onEndModelChange has cognitive complexity 29 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":7314}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e91055349d4e147ae3ea5974ce40df3e86f839e787aef9e0f2c5a6c7dc2396c"}},{"ruleId":"D2","level":"warning","message":{"text":"getConnectionPoint (cognitive 29): getConnectionPoint has cognitive complexity 29 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":7598}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fbf35752cf6535a6334e7bf779e364b217d44508da50f8eac1c45ce43797888"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkFlowExecutionController.cancelPath (cognitive 28): WorkFlowExecutionController.cancelPath has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16, loops 6, error handling 5, boolean chains 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/controller/WorkFlowExecutionController.java"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e509fce8a107adaf079b15a490d94b1b65a3c0ca072aa31fc92214b4d82dcb85"}},{"ruleId":"D2","level":"warning","message":{"text":"fitToContent (cognitive 27): fitToContent has cognitive complexity 27 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":8387}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b3316d49060fbf972cf4ebe67978e9181c641ec5451767cd149b9b374d936a"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientElbResource.createClientElb (cognitive 24): ClientElbResource.createClientElb has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11, error handling 8, ternaries 3, boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/ClientElbResource.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3c26c2ba9de93e85e2ae26c930cf6ba3ff46e2851057d3a2c0b648ccd904ba"}},{"ruleId":"D2","level":"warning","message":{"text":"StateMachineExecutionEntitiesManager.validateReplayableStates (cognitive 23): StateMachineExecutionEntitiesManager.validateReplayableStates has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, loops 4, boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd2d7e01ba70a6c48235b227e60a738269f7903af9cc05c30412b47c110e83e"}},{"ruleId":"D2","level":"warning","message":{"text":"StateMachinePersistenceService.validateReplayableStates (cognitive 23): StateMachinePersistenceService.validateReplayableStates has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16, loops 4, boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/representation/StateMachinePersistenceService.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"6813b4d1e4172f7a71f64c6c69dcbbcc255288a041502557b47478993f25cadd"}},{"ruleId":"D2","level":"warning","message":{"text":"StateMachineResource.submitReplayEvent (cognitive 23): StateMachineResource.submitReplayEvent has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, error handling 8, boolean chains 2 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"83da9f8819e97df65c9191cb45dc3b2fbfab5bdafbe3b770313aba52e50b8193"}},{"ruleId":"D2","level":"warning","message":{"text":"pointerdown (cognitive 23): pointerdown has cognitive complexity 23 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":7849}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f932cf7014fdf89cdcc5bed802d53f9c929f5fbdaf7098c8497492078a354e"}},{"ruleId":"D2","level":"warning","message":{"text":"StateMachineResource.updateEvent (cognitive 22): StateMachineResource.updateEvent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12, boolean chains 4, error handling 4, loops 2 (nesting depth added 6). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fd549577a53a203118843a16fb6ba764b1e119802afa9f0d39e8d593038e4e"}},{"ruleId":"D2","level":"warning","message":{"text":"pointerup (cognitive 22): pointerup has cognitive complexity 22 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":8102}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e41c92df994b6015592a97be61e539142a33a28e894e42013ccd726f2412c28"}},{"ruleId":"D2","level":"warning","message":{"text":"Event.equals (cognitive 21): Event.equals has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 12, if/else 9 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"model/src/main/java/com/flipkart/flux/domain/Event.java"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15ef1d01c472ad935d6f20d3382c3694ab5666b14eaf6f2b43ae8b2b152fabb"}},{"ruleId":"D2","level":"warning","message":{"text":"DeploymentUnitsManagerImpl.initialize (cognitive 21): DeploymentUnitsManagerImpl.initialize has cognitive complexity 21 (threshold 15). Drivers by points: error handling 12, if/else 4, loops 4, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/deploymentunit/DeploymentUnitsManagerImpl.java"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"a862fe47dd8a7e816ebe25112100a841eaf823cd16533ee2a8fe2e7a5d974985"}},{"ruleId":"D2","level":"warning","message":{"text":"parseTransformString (cognitive 21): parseTransformString has cognitive complexity 21 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21f0d2753632a87877b4aa141a914d70b18463d791cb7cee0e8fd92be244d14"}},{"ruleId":"D2","level":"warning","message":{"text":"State.hashCode (cognitive 19): State.hashCode has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 19. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"model/src/main/java/com/flipkart/flux/domain/State.java"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d3596c10b01e9e739581f974a53725b0366f119326ab955b04810860e1876e"}},{"ruleId":"D2","level":"warning","message":{"text":"StateMachineResource.createStateMachine (cognitive 19): StateMachineResource.createStateMachine has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, ternaries 6, error handling 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8eadcd7124af14ede7e379a04216ad15d20e03ce18ed0a9df894522d65171d"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 18): (anonymous) has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":7156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4789a3dc0db72647b8bfd14874837aaaff90c2c8268f4e1f18833dc158c0e7"}},{"ruleId":"D2","level":"warning","message":{"text":"router (cognitive 18): router has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":10401}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf430c1a22f9f83dbdf2883aaea030ec6b40ee15cade062842f546858d4c03a3"}},{"ruleId":"D2","level":"warning","message":{"text":"sortSameAsLast (cognitive 18): sortSameAsLast has cognitive complexity 18 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/components/hystrixCommand/hystrixCommand.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"5499e4a6aaafbec9bf8d5456eb906b03254c532c9358762158ac65fc35864993"}},{"ruleId":"D2","level":"warning","message":{"text":"VersionedEventData.equals (cognitive 17): VersionedEventData.equals has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 9, if/else 7, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/flipkart/flux/api/VersionedEventData.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35ddce513f7f4c19761f9c07b0a1cfe066a9cd88e5674a8f50742f5d853c056"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkFlowExecutionController.executeStates (cognitive 17): WorkFlowExecutionController.executeStates has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/controller/WorkFlowExecutionController.java"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8de31b90d87185f459cbc6df2a5169d329196116b03136ac4e428bc722824d"}},{"ruleId":"D2","level":"warning","message":{"text":"StateMachineResource.updateInternalEvent (cognitive 17): StateMachineResource.updateInternalEvent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12, boolean chains 3, error handling 1, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4e5e84bf9da7e1021467bab2516186810977673e6f04a20806647831f5e22c"}},{"ruleId":"D2","level":"warning","message":{"text":"containsRect (cognitive 17): containsRect has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"287cbaa01842c5ade79b353952c97229bfbb62c5e683659045f001032c230b42"}},{"ruleId":"D2","level":"warning","message":{"text":"createElement (cognitive 17): createElement has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"122e426548f409cd8218c8af0f9ee51b24d2ef7274bdeeb019849791a3bee5d6"}},{"ruleId":"D2","level":"warning","message":{"text":"flattenObject (cognitive 17): flattenObject has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":2332}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d37f1eb3f38c33da0154716892aa5b12c305b1fb6330a0b5a7e955afa0e4b50"}},{"ruleId":"D2","level":"warning","message":{"text":"linkAllowed (cognitive 17): linkAllowed has cognitive complexity 17 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":8921}}}],"partialFingerprints":{"codehealthFindingId/v1":"653ddcb6d9ae2ea05f3d5229400237c39b9ee267431992cef32bc8491e918c1a"}},{"ruleId":"D2","level":"warning","message":{"text":"DeploymentUnit.populateTaskMethods (cognitive 16): DeploymentUnit.populateTaskMethods has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, loops 7, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/deploymentunit/DeploymentUnit.java"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f2ad4fb5aae3652baec71ff1531ac4fb8f156cee9ecb642e4703b2970a7986"}},{"ruleId":"D2","level":"warning","message":{"text":"RedriverService.redrive (cognitive 16): RedriverService.redrive has cognitive complexity 16 (threshold 15). Drivers by points: loops 6, if/else 5, error handling 4, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scheduler/src/main/java/com/flipkart/flux/redriver/service/RedriverService.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da325228ce1654a34fda18c03dc81cae53c2e42fd0d9269f2010fafa4b02201"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":3937}}}],"partialFingerprints":{"codehealthFindingId/v1":"edaefd8d4a1964fe2588992fa732c788d781207f583baee9086605553a3af3ca"}},{"ruleId":"D2","level":"warning","message":{"text":"processEmbedding (cognitive 16): processEmbedding has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":6247}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a0a09d7013a4953a39dfc8e45bfd90d05a34d5a4af9a7d10f0ea180ab3e7e1"}},{"ruleId":"D2","level":"warning","message":{"text":"sortSameAsLast (cognitive 16): sortSameAsLast has cognitive complexity 16 (threshold 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/components/hystrixThreadPool/hystrixThreadPool.js"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"e94544b5dab96402777ae6f2f3725ec10be41717001ee736c1a6ef4cbaf8f342"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/joint.js: FileTooLong \u2014 6226 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/resources/packaged/webapps/dashboard/WEB-INF/pages/resources/js/joint.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7692082a33dc8027e59f472edcf2eb37444f9bce7925c95a362c3655abec134"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: resource/StateMachineResource.java: FileTooLong \u2014 846 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: StateMachineResource (106-1247). Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ce88b41932f939f7df8eeb70f77c5d82cf715c7ecfa3bb92cd0750a6cfec4a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: State: TooManyMethods \u2014 47 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"model/src/main/java/com/flipkart/flux/domain/State.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a05b90f45eddf3fcbbc9cd3cd8f440f7bbecb707c9173f2e76203392ae12e8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StateDefinition: TooManyMethods \u2014 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/flipkart/flux/api/StateDefinition.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc724d6234de0a0b8fa657b8779d7d2c448f2c71752fac8b72edc618d68322e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): api/src/main/java/com/flipkart/flux/api/StateDefinition.java:123-133 | model/src/main/java/com/flipkart/flux/domain/State.java:182-192 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/flipkart/flux/api/StateDefinition.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc6fa966259f57a9cfb6ebb7b02edcfcce56d018eea77c46dd622a31c7fd2795"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java:232-242 | runtime/src/main/java/com/flipkart/flux/representation/StateMachinePersistenceService.java:258-268 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java:232\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"12eac1adda26eb08d29180c39b017fb546e3f321a7ce788bf43297d54fbfe2f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): api/src/main/java/com/flipkart/flux/api/ExecutionUpdateData.java:61-70 | task/src/main/java/com/flipkart/flux/impl/message/TaskAndEvents.java:91-100 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction \u2014 check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"api/src/main/java/com/flipkart/flux/api/ExecutionUpdateData.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b76e0c17f521b3adb9825ef93c75d601326a52b9445f37235dab5c87f53e181"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): runtime/src/main/java/com/flipkart/flux/guice/module/ExecutionContainerModule.java:82-91 | runtime/src/main/java/com/flipkart/flux/guice/module/OrchestratorContainerModule.java:85-94 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060runtime/src/main/java/com/flipkart/flux/guice/module/ExecutionContainerModule.java:82\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/guice/module/ExecutionContainerModule.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e9f94d22a30c801f31b309a434cb513cac1166eabab854c1b18a5757e9ba23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): runtime/src/main/java/com/flipkart/flux/guice/module/ExecutionContainerModule.java:98-107 | runtime/src/main/java/com/flipkart/flux/guice/module/OrchestratorContainerModule.java:102-113 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/guice/module/ExecutionContainerModule.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9760d81fe7a80340459599bf9e92001cfc19eef9d90fd3d1212b4c62ec2cba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): runtime/src/main/java/com/flipkart/flux/controller/WorkFlowExecutionController.java:154-163 | runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java:158-167 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/controller/WorkFlowExecutionController.java"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ae8ee5774cd1c59890e649385b8ec8103b08f973dd074accd855db77540fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java:335-345 | runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java:454-463 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java:335\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"addf9eddc16a8d36df13f60bbd4104498b4cbb05f7fc81304aa5768de0df1b21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java:638-647 | runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java:744-753 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java:638\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab7403878b810a8a00922f752c7c129e93c290e71f16e79f71dcf27839b65f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/AuditDAOImpl.java:56-64 | persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/AuditDAOV1Impl.java:46-54 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/AuditDAOImpl.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c11253408a56a1feaf081e94a5cd3a3ab4dcc0cdba7f5c5c991841cf5153d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java:248-256 | runtime/src/main/java/com/flipkart/flux/representation/StateMachinePersistenceService.java:274-282 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java:248\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5838b2d71c239466b5b221df16b8e5356d29606b8f56851a61eedb9b7da918"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java:300-307 | runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java:633-641 | runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java:739-747 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java:300\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5002004fafae7c57ede8dbe9750dbd5216c111ebd4a2fcf64d703fc72e96167"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): client/src/main/java/com/flipkart/flux/client/runtime/FluxRuntimeConnectorHttpImpl.java:130-137 | client/src/main/java/com/flipkart/flux/client/runtime/FluxRuntimeConnectorHttpImpl.java:188-195 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060client/src/main/java/com/flipkart/flux/client/runtime/FluxRuntimeConnectorHttpImpl.java:130\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"client/src/main/java/com/flipkart/flux/client/runtime/FluxRuntimeConnectorHttpImpl.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97cfdb2b9431490862e06ae305bf06251adfe2c6747a10e3256b126976b1c03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): common/src/main/java/com/flipkart/flux/guice/interceptor/TransactionInterceptor.java:91-98 | common/src/main/java/com/flipkart/flux/guice/interceptor/TransactionInterceptor.java:109-116 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060common/src/main/java/com/flipkart/flux/guice/interceptor/TransactionInterceptor.java:91\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/flipkart/flux/guice/interceptor/TransactionInterceptor.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"6acb5a03b263b2123c6ba01e7e6809f5be8fd745688cabce79e115a6a455ddea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): runtime/src/main/java/com/flipkart/flux/guice/module/ShardModule.java:243-250 | runtime/src/main/java/com/flipkart/flux/guice/module/ShardModule.java:265-273 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060runtime/src/main/java/com/flipkart/flux/guice/module/ShardModule.java:243\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/guice/module/ShardModule.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"992d447a2585e6c288e809a19bc062ff4629f1c6cd84e743a73cbbe6d46486d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): runtime/src/main/java/com/flipkart/flux/guice/module/ShardModule.java:313-320 | scheduler/src/main/java/com/flipkart/flux/module/SchedulerModule.java:77-84 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/guice/module/ShardModule.java"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e56e98c2dfd19c6341e57181b23be9bacd232e465032c1d9daceb37a661c0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): persistence/src/main/java/com/flipkart/flux/persistence/EntityManager.java:66-73 | persistence/src/main/java/com/flipkart/flux/persistence/MultiEntityManager.java:131-138 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060persistence/src/main/java/com/flipkart/flux/persistence/EntityManager.java:66\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence/src/main/java/com/flipkart/flux/persistence/EntityManager.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae50891a1422a9aa5a267b97e2b8a9a6cee284339d3c815314cc86d44fa5fa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java:164-171 | runtime/src/main/java/com/flipkart/flux/representation/StateMachinePersistenceService.java:111-118 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java:164\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"be69cf08be4d144c9f6b218043da606757bc12277355eeb62dc47648d0378480"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java:204-211 | runtime/src/main/java/com/flipkart/flux/representation/StateMachinePersistenceService.java:242-249 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java:204\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91cb7d3e942ee86b91cb27fcec1b4e6a8fbd1740393bf1c1b4d08fe47190133"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java:215-222 | runtime/src/main/java/com/flipkart/flux/representation/EventPersistenceService.java:46-53 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java:215\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"93729c06010a8923caa9eb843b7d222d669f8b5e57af392ef696bc598d65d610"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): runtime/src/main/java/com/flipkart/flux/resource/ClientElbResource.java:87-94 | runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java:214-221 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060runtime/src/main/java/com/flipkart/flux/resource/ClientElbResource.java:87\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/ClientElbResource.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"170f96ba6576c36bd4dd3a440919cd93f6a76136bcd76e5d7e5bdc70fb1b5676"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java:90-96 | runtime/src/main/java/com/flipkart/flux/representation/StateMachinePersistenceService.java:149-155 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc8d5aec19a97c9f98df707a9f7f5ed7a957a3fbcbea6fd127e6a7fe63408fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java:612-619 | runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java:720-726 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java:612\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec3e6d17a82130127a6f278d7499d29881c261c4e066ef874d6256b01c6f024"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOV1Impl.java:162-167 | persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOV1Impl.java:182-187 | persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOV1Impl.java:195-200 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOV1Impl.java"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"b308c2faed0fb6d24e5727d7b9fa33ba6da48d6ef60fd9d974e3424d616515c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/EventsDAOImpl.java:254-260 | persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/EventsDAOImpl.java:342-347 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/EventsDAOImpl.java:254\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/EventsDAOImpl.java"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb56816f9deb71ad50de7fdbd0e492c086779a83a27028ad1a117d8822ba1b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOV1Impl.java:133-137 | persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOV1Impl.java:212-216 | persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOV1Impl.java:242-246 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOV1Impl.java:133\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOV1Impl.java"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfcb5a75e1323c81af0f84b36c48ba7fae3a16ec3194c29e87defccee6ec4fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StateTraversalPathDAOV1Impl.java:82-86 | persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOV1Impl.java:215-219 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StateTraversalPathDAOV1Impl.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2416c9aeae4dec31e288e387c1048bda6007ed67351639725185a83ba245866"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOV1Impl.java:145-149 | persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOV1Impl.java:158-162 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOV1Impl.java:145\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOV1Impl.java"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f11ebff0a4b5a630a722853c4169630a0f186a238336525cee3ec60c266cda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java:152-156 | runtime/src/main/java/com/flipkart/flux/representation/StateMachinePersistenceService.java:99-103 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java:152\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence/src/main/java/com/flipkart/flux/persistence/StateMachineExecutionEntitiesManager.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"f745caf2d2e6dd2e1b14f783dc212aa8e7dc79ee89f322e74aae3f8a563f9a89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): task/src/main/java/com/flipkart/flux/impl/task/AkkaTask.java:137-141 | task/src/main/java/com/flipkart/flux/impl/task/AkkaTask.java:217-221 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060task/src/main/java/com/flipkart/flux/impl/task/AkkaTask.java:137\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"task/src/main/java/com/flipkart/flux/impl/task/AkkaTask.java"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad55b392174b68a40281cfa01541bd4a6549e3d5b8f71aa28f8cd4b731f3230"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): task/src/main/java/com/flipkart/flux/impl/task/AkkaTask.java:180-185 | task/src/main/java/com/flipkart/flux/impl/task/AkkaTask.java:201-205 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060task/src/main/java/com/flipkart/flux/impl/task/AkkaTask.java:180\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"task/src/main/java/com/flipkart/flux/impl/task/AkkaTask.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b3444563dd81bc9cc6fc87a9cba79eba752770ff170d6dbe4eb8cb4785a2ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): task/src/main/java/com/flipkart/flux/impl/task/HookExecutor.java:47-51 | task/src/main/java/com/flipkart/flux/impl/task/TaskExecutor.java:71-75 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060task/src/main/java/com/flipkart/flux/impl/task/HookExecutor.java:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"task/src/main/java/com/flipkart/flux/impl/task/HookExecutor.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45bb673c58dd7186c2ca1c91667fec2f4f59e478fc46e0f6e48a31b43de2207"}},{"ruleId":"D16","level":"warning","message":{"text":"dormant codebase \u2014 no living knowledge left to concentrate: All 92 significant source file(s) were last meaningfully changed so long ago that no living knowledge remains \u2014 nothing since has been substantial enough to re-establish ownership (a broad, mechanical sweep that touches many files shallowly does not count, and neither does no activity at all). There is no concentration to measure, so the bus factor is not scored. This is not a clean bill: nobody currently holds working knowledge of this code (see D34 Knowledge Freshness)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"569d55ea5cb0330f13c125b289d07e5abdfcceac947a2c2645277937942e7d5f"}},{"ruleId":"D19","level":"note","message":{"text":"The \u0027Why Flux\u0027 rationale mentions event sources (user actions, messages between systems, data changes to business entities) but does not explain why a state-machine-based model is preferable over an event-driven one for each of those use cases.: Expand on the tradeoffs: why a state machine rather than an event stream for each source type. For example, when concurrency and fault tolerance are more important than latency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7abe71822e7488211fb7c617222e305c50fde3d47c8d4b3614747a4a886d1e34"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2dbf58d647bb19097236c41d50a00785dcd8639178d74c4b0396b6c98728c6b0"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"37a90a02a9eec4a7b6cfe92c2b7cda10fe843d6dfc0df25164ecf9e8fc9fbcc4"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"88c01c45a7996b7419134b73e829c8b35de37ffb662a1b12c5c9c982ba3c4a15"},"taxa":[{"id":"CWE-330","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 108 of 108 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 108 separate risks. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b688d2a3ef42541636ee1f8473223b0c7825a5717d19f90ea385c615cab07d3"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/controller/WorkFlowExecutionController.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90dda9c6da32192ff421558a5d519738b17bf22a38fbaf6a9a710df80a2d76e0"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"task/src/main/java/com/flipkart/flux/impl/task/AkkaTask.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af216b9696964dbfbae0826baa5e592a1407c529d404f17a845584a196490048"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: StatesDAOImpl.java \u2194 ReplayEventPersistenceService.java: \u0060persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOImpl.java\u0060 (context persistence-mysql) and \u0060runtime/src/main/java/com/flipkart/flux/representation/ReplayEventPersistenceService.java\u0060 (context runtime) sit in DIFFERENT parts of the tree yet change together 60% of the time (9 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0637751692a808bdb60584817b228cfc558fa760245984edc2b75602a3f0da"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: WorkFlowExecutionController.java \u2194 RedriverRegistryImpl.java: \u0060runtime/src/main/java/com/flipkart/flux/controller/WorkFlowExecutionController.java\u0060 (context runtime) and \u0060task/src/main/java/com/flipkart/flux/impl/redriver/RedriverRegistryImpl.java\u0060 (context task) sit in DIFFERENT parts of the tree yet change together 58% of the time (7 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/controller/WorkFlowExecutionController.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8deb2ba0452d7b4a6ffac8e32c2835b9d2d3ad4574b26827535acd6c376e4b8"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: EventsDAOImpl.java \u2194 WorkFlowExecutionController.java: \u0060persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/EventsDAOImpl.java\u0060 (context persistence-mysql) and \u0060runtime/src/main/java/com/flipkart/flux/controller/WorkFlowExecutionController.java\u0060 (context runtime) sit in DIFFERENT parts of the tree yet change together 51% of the time (29 of the 57 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/EventsDAOImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6a5c65dc8f24b32f0919c12fbe59a034a9c35622bc9e0394db35bde7b58d9a"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: WorkFlowExecutionController.java \u2194 FluxError.java: \u0060runtime/src/main/java/com/flipkart/flux/controller/WorkFlowExecutionController.java\u0060 (context runtime) and \u0060task/src/main/java/com/flipkart/flux/api/core/FluxError.java\u0060 (context task) sit in DIFFERENT parts of the tree yet change together 50% of the time (10 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/controller/WorkFlowExecutionController.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4c1d3ef96bbfb5436adad96536f02a9a22e91f2580f144d958f7cd32881a1b"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: TransactionInterceptor.java \u2194 ParallelScatterGatherQueryHelper.java: \u0060common/src/main/java/com/flipkart/flux/guice/interceptor/TransactionInterceptor.java\u0060 (context common) and \u0060persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/ParallelScatterGatherQueryHelper.java\u0060 (context persistence-mysql) sit in DIFFERENT parts of the tree yet change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"common/src/main/java/com/flipkart/flux/guice/interceptor/TransactionInterceptor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e8526b0713b81c0162c5b8dc0adb0fd41d1411edb92842239935bba8805bc8"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: StateMachineResource.java \u2194 RedriverRegistryImpl.java: \u0060runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java\u0060 (context runtime) and \u0060task/src/main/java/com/flipkart/flux/impl/redriver/RedriverRegistryImpl.java\u0060 (context task) sit in DIFFERENT parts of the tree yet change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/src/main/java/com/flipkart/flux/resource/StateMachineResource.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b140d0d22644675ba49c6e44373467b7897f42325da9ff86a034e0e23b658e8f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: StatesDAOImpl.java \u2194 StateMachinesDAO.java: \u0060persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOImpl.java\u0060 and \u0060persistence/src/main/java/com/flipkart/flux/persistence/dao/iface/StateMachinesDAO.java\u0060 change together 66% of the time (19 of the 29 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence-mysql/src/main/java/com/flipkart/flux/persistence/dao/impl/StatesDAOImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ebcb14643434f56d75769bc3158a3267f72c6577edc271f0eca9c2ca3e4199"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: StateMachinesDAO.java \u2194 StatesDAO.java: \u0060persistence/src/main/java/com/flipkart/flux/persistence/dao/iface/StateMachinesDAO.java\u0060 and \u0060persistence/src/main/java/com/flipkart/flux/persistence/dao/iface/StatesDAO.java\u0060 change together 62% of the time (18 of the 29 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"persistence/src/main/java/com/flipkart/flux/persistence/dao/iface/StateMachinesDAO.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e295bfd464126e8f6acf7a5d1c50b30101b6af43608e56c2b96c2eba49dcc9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: TaskExecutor.java \u2194 TaskRegistry.java: \u0060task/src/main/java/com/flipkart/flux/impl/task/TaskExecutor.java\u0060 and \u0060task/src/main/java/com/flipkart/flux/impl/task/TaskRegistry.java\u0060 change together 57% of the time (8 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"task/src/main/java/com/flipkart/flux/impl/task/TaskExecutor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90f9f50556f33404d9cf1603c84e4f4879ce91350f99ba605a2339777a630f1"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: LocalJvmTask.java \u2194 TaskExecutor.java: \u0060task/src/main/java/com/flipkart/flux/impl/task/LocalJvmTask.java\u0060 and \u0060task/src/main/java/com/flipkart/flux/impl/task/TaskExecutor.java\u0060 change together 57% of the time (13 of the 23 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"task/src/main/java/com/flipkart/flux/impl/task/LocalJvmTask.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f48ef8d2b036b0499c29506d9aebc9b56e6f71f4902905193cee2e405ad000"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-330","guid":"f811ddf9-2e54-865b-9c76-f97905849790","name":"CWE-330","shortDescription":{"text":"CWE-330"},"helpUri":"https://cwe.mitre.org/data/definitions/330.html"},{"id":"CWE-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"CWE-502","shortDescription":{"text":"CWE-502"},"helpUri":"https://cwe.mitre.org/data/definitions/502.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":3,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}