{"results":{"result":{"added-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-url":"https://github.com/cleder/fastkml/pull/529","old-code-health":8.87907565233191,"modified-files":{"code-health":8.85752564914838,"old-code-health":8.87907565233191,"files":[{"file":"fastkml/kml.py","loc":250,"old-loc":252,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"fastkml/validator.py","loc":138,"old-loc":109,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"tests/atom_test.py","loc":130,"old-loc":127,"code-health":9.387218218812514,"old-code-health":9.387218218812514},{"file":"tests/base.py","loc":73,"old-loc":27,"code-health":10.0,"old-code-health":10.0},{"file":"tests/base_test.py","loc":130,"old-loc":113,"code-health":10.0,"old-code-health":10.0},{"file":"tests/config_test.py","loc":69,"old-loc":40,"code-health":9.387218218812514,"old-code-health":10.0},{"file":"tests/containers_test.py","loc":126,"old-loc":123,"code-health":9.387218218812514,"old-code-health":9.387218218812514},{"file":"tests/data_test.py","loc":247,"old-loc":244,"code-health":10.0,"old-code-health":10.0},{"file":"tests/features_test.py","loc":188,"old-loc":185,"code-health":10.0,"old-code-health":10.0},{"file":"tests/geometries/boundaries_test.py","loc":107,"old-loc":104,"code-health":9.387218218812514,"old-code-health":9.387218218812514},{"file":"tests/geometries/coordinates_test.py","loc":53,"old-loc":50,"code-health":10.0,"old-code-health":10.0},{"file":"tests/geometries/geometry_test.py","loc":510,"old-loc":503,"code-health":8.545379580978913,"old-code-health":8.545379580978913},{"file":"tests/geometries/linearring_test.py","loc":76,"old-loc":73,"code-health":9.387218218812514,"old-code-health":9.387218218812514},{"file":"tests/geometries/linestring_test.py","loc":182,"old-loc":179,"code-health":9.387218218812514,"old-code-health":9.387218218812514},{"file":"tests/geometries/multigeometry_test.py","loc":365,"old-loc":356,"code-health":8.901500267455772,"old-code-health":8.901500267455772},{"file":"tests/geometries/point_test.py","loc":219,"old-loc":216,"code-health":10.0,"old-code-health":10.0},{"file":"tests/geometries/polygon_test.py","loc":213,"old-loc":210,"code-health":9.387218218812514,"old-code-health":9.387218218812514},{"file":"tests/gx/data_test.py","loc":158,"old-loc":155,"code-health":10.0,"old-code-health":10.0},{"file":"tests/gx/track_test.py","loc":562,"old-loc":555,"code-health":6.430986678246929,"old-code-health":6.430986678246929},{"file":"tests/hypothesis/atom_test.py","loc":75,"old-loc":65,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"tests/hypothesis/container_test.py","loc":140,"old-loc":130,"code-health":10.0,"old-code-health":10.0},{"file":"tests/hypothesis/data_test.py","loc":214,"old-loc":192,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"tests/hypothesis/feature_test.py","loc":477,"old-loc":443,"code-health":9.096655465156704,"old-code-health":9.096655465156704},{"file":"tests/hypothesis/geometry_test.py","loc":466,"old-loc":419,"code-health":8.031638343271364,"old-code-health":8.031638343271364},{"file":"tests/hypothesis/gx/data_test.py","loc":69,"old-loc":59,"code-health":10.0,"old-code-health":10.0},{"file":"tests/hypothesis/gx/track_test.py","loc":135,"old-loc":125,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"tests/hypothesis/kml_test.py","loc":59,"old-loc":52,"code-health":10.0,"old-code-health":10.0},{"file":"tests/hypothesis/links_test.py","loc":84,"old-loc":77,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"tests/hypothesis/model_test.py","loc":316,"old-loc":294,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"tests/hypothesis/multi_geometry_test.py","loc":695,"old-loc":640,"code-health":7.350443064218534,"old-code-health":7.350443064218534},{"file":"tests/hypothesis/network_link_control_test.py","loc":184,"old-loc":168,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"tests/hypothesis/overlay_test.py","loc":319,"old-loc":294,"code-health":9.387218218812514,"old-code-health":9.387218218812514},{"file":"tests/hypothesis/style_test.py","loc":516,"old-loc":476,"code-health":8.545379580978913,"old-code-health":8.545379580978913},{"file":"tests/hypothesis/times_test.py","loc":62,"old-loc":52,"code-health":10.0,"old-code-health":10.0},{"file":"tests/hypothesis/views_test.py","loc":260,"old-loc":241,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"tests/kml_test.py","loc":669,"old-loc":594,"code-health":6.658910951571553,"old-code-health":7.072358824515575},{"file":"tests/links_test.py","loc":63,"old-loc":60,"code-health":10.0,"old-code-health":10.0},{"file":"tests/model_test.py","loc":127,"old-loc":124,"code-health":10.0,"old-code-health":10.0},{"file":"tests/network_link_control_test.py","loc":174,"old-loc":171,"code-health":9.387218218812514,"old-code-health":9.387218218812514},{"file":"tests/overlays_test.py","loc":371,"old-loc":364,"code-health":9.387218218812514,"old-code-health":9.387218218812514},{"file":"tests/repr_eq_test.py","loc":1898,"old-loc":1895,"code-health":9.6882083290695,"old-code-health":9.6882083290695},{"file":"tests/styles_test.py","loc":667,"old-loc":664,"code-health":6.10565678389873,"old-code-health":6.10565678389873},{"file":"tests/times_test.py","loc":356,"old-loc":353,"code-health":9.387218218812514,"old-code-health":9.387218218812514},{"file":"tests/utils_test.py","loc":169,"old-loc":166,"code-health":9.581652546385712,"old-code-health":9.581652546385712},{"file":"tests/validator_test.py","loc":143,"old-loc":91,"code-health":9.387218218812514,"old-code-health":9.387218218812514},{"file":"tests/views_test.py","loc":178,"old-loc":175,"code-health":10.0,"old-code-health":10.0}]},"removed-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-id":"529","analysis-time":"2026-07-05T20:15:13Z","negative-impact-count":2,"suppressions":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"affected-hotspots":1,"commits":["fa8c4e885753a50bed663447c256b6c4f3c1721c"],"is-negative-review":true,"negative-findings":{"number-of-types":2,"number-of-files-touched":2,"findings":[{"why-it-occurs":"Duplicated code often leads to code that's harder to change since the same logical change has to be done in multiple functions. More duplication gives lower code health.","name":"Code Duplication","file":"tests/config_test.py","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":60,"what-changed":"The module contains 2 functions with similar structure: test_register_namespaces,test_register_namespaces_pyuppsala","how-to-fix":"A certain degree of duplicated code might be acceptable. The problems start when it is the same behavior that is duplicated across the functions in the module, ie. a violation of the Don't Repeat Yourself (DRY) principle. DRY violations lead to code that is changed together in predictable patterns, which is both expensive and risky. DRY violations can be identified using CodeScene's X-Ray analysis to detect clusters of change coupled functions with high code similarity. [Read More](https://codescene.com/blog/software-revolution-part3/)\n\nOnce you have identified the similarities across functions, look to extract and encapsulate the concept that varies into its own function(s). These shared abstractions can then be re-used, which minimizes the amount of duplication and simplifies change.","change-type":"introduced"},{"why-it-occurs":"This module has 628 lines of code (comments stripped away). This puts the module at risk of evolving into a Brain Class. Brain Classes are problematic since changes become more complex over time, harder to test, and challenging to refactor. Act now to prevent future maintenance issues.","name":"Lines of Code in a Single File","file":"tests/kml_test.py","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"what-changed":"This module has 628 lines of code, improve code health by reducing it to 600","how-to-fix":"Look for opportunities to modularize the design. This is done by identifying groups of functions that represent different responsibilities and/or operate on different data. Once you have identified the different responsibilities, then use refactorings like [EXTRACT CLASS](https://refactoring.com/catalog/extractClass.html).","change-type":"introduced"}]},"positive-impact-count":0,"repo":"fastkml","code-health":8.85752564914838,"version":"3.0","authors":["Christian Ledermann"],"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":"2026-07-05T20:15:13.000Z","project-name":"cleder","repository":"https://github.com/cleder/fastkml.git"}}