{"results":{"result":{"added-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-url":"https://github.com/CruGlobal/mpdx-react/pull/1227","old-code-health":9.585819783774944,"modified-files":{"code-health":9.576855690738412,"old-code-health":9.585819783774944,"files":[{"file":"next.config.ts","loc":167,"old-loc":164,"code-health":10.0,"old-code-health":10.0},{"file":"src/components/Contacts/ContactDetails/ContactDetailsHeader/DeleteContactModal/DeleteContactModal.tsx","loc":225,"old-loc":196,"code-health":9.094942823036908,"old-code-health":9.146480017370394},{"file":"src/components/Contacts/ContactDetails/ContactDetailsTab/Mailing/EditContactAddressModal/EditContactAddressModal.tsx","loc":421,"old-loc":420,"code-health":9.842730062691357,"old-code-health":9.842730062691357},{"file":"src/components/Settings/Organization/Contacts/ContactRow/ContactRow.tsx","loc":241,"old-loc":240,"code-health":8.867030537929534,"old-code-health":8.872024862996415},{"file":"src/components/Contacts/ContactDetails/ContactDetailsHeader/DeleteContactModal/DeleteContactModal.test.tsx","loc":229,"old-loc":197,"code-health":10.0,"old-code-health":10.0}]},"removed-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-id":"1227","analysis-time":"2024-12-16T15:15:19Z","negative-impact-count":0,"suppressions":{"number-of-types":1,"number-of-files-touched":2,"findings":[{"method":"DeleteContactModal:React.FC<DeleteContactModalProps>","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the React language is a cyclomatic complexity lower than 10.","name":"Complex Method","file":"src/components/Contacts/ContactDetails/ContactDetailsHeader/DeleteContactModal/DeleteContactModal.tsx","change-level":"warning","is-hotspot?":false,"reason":"This component is okat to be a little complex","suppressed-by":"dr-bizz","line":63,"what-changed":"DeleteContactModal:React.FC<DeleteContactModalProps> already has high cyclomatic complexity, and now it increases in Lines of Code from 157 to 167","how-to-fix":"There are many reasons for Complex Method. Sometimes, another design approach is beneficial such as a) modeling state using an explicit state machine rather than conditionals, or b) using table lookup rather than long chains of logic. In other scenarios, the function can be split using [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html). Just make sure you extract natural and cohesive functions. Complex Methods can also be addressed by identifying complex conditional expressions and then using the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring.","change-type":"degraded","suppressed-date":"2024-12-16T15:43:02.000Z","suppression":{"updated-at":"2024-12-16T15:43:02Z","fn-name":"DeleteContactModal:React.FC<DeleteContactModalProps>","biomarker":"Complex Method","reason":"This component is okat to be a little complex","suppressed-by":"dr-bizz","line":null,"id":13098,"file-name":"src/components/Contacts/ContactDetails/ContactDetailsHeader/DeleteContactModal/DeleteContactModal.tsx"}},{"method":"ContactRow:React.FC<Props>","why-it-occurs":"A Complex Method has a high cyclomatic complexity. The recommended threshold for the React language is a cyclomatic complexity lower than 10.","name":"Complex Method","file":"src/components/Settings/Organization/Contacts/ContactRow/ContactRow.tsx","change-level":"warning","is-hotspot?":false,"reason":"This component is okat to be a little complex","suppressed-by":"dr-bizz","line":99,"what-changed":"ContactRow:React.FC<Props> already has high cyclomatic complexity, and now it increases in Lines of Code from 146 to 147","how-to-fix":"There are many reasons for Complex Method. Sometimes, another design approach is beneficial such as a) modeling state using an explicit state machine rather than conditionals, or b) using table lookup rather than long chains of logic. In other scenarios, the function can be split using [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html). Just make sure you extract natural and cohesive functions. Complex Methods can also be addressed by identifying complex conditional expressions and then using the [DECOMPOSE CONDITIONAL](https://refactoring.com/catalog/decomposeConditional.html) refactoring.","change-type":"degraded","suppressed-date":"2024-12-16T15:43:13.000Z","suppression":{"updated-at":"2024-12-16T15:43:13Z","fn-name":"ContactRow:React.FC<Props>","biomarker":"Complex Method","reason":"This component is okat to be a little complex","suppressed-by":"dr-bizz","line":null,"id":13099,"file-name":"src/components/Settings/Organization/Contacts/ContactRow/ContactRow.tsx"}}]},"affected-hotspots":0,"commits":["63d0daa940f9bfd467d76e081260f013966a700b","2c356eb934001bcee0a9f91fe9f294cfa74d35fd","827d40df92cc9cb01de3744abe1aba5b0323ef70","321969e905e8d297ea6639db1f7d426f720d3a69","e3a03379f980fe6b5d0ddb183883dcfba33d76f8","b208af1f8c0b091439b19b5bd76e42c6f6f38dc3"],"is-negative-review":false,"negative-findings":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"positive-impact-count":0,"repo":"mpdx-react","code-health":9.576855690738412,"version":"3.0","authors":["Daniel Bisgrove"],"directives":{"added":[],"removed":[]},"positive-findings":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"notices":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"external-review-provider":"GitHub"},"analysistime":"2024-12-16T15:15:18.000Z","project-name":"mpdx-react","repository":"https://github.com/CruGlobal/mpdx-react.git"}}