{"results":{"result":{"added-files":{"code-health":10.0,"old-code-health":0.0,"files":[{"file":"lib/open_api_typesense/operations/stemming.ex","loc":80,"code-health":10.0},{"file":"lib/open_api_typesense/schemas/config_schema.ex","loc":13,"code-health":10.0},{"file":"lib/open_api_typesense/schemas/multi_search_result_item.ex","loc":55,"code-health":10.0},{"file":"lib/open_api_typesense/schemas/schema_change_status.ex","loc":17,"code-health":10.0},{"file":"lib/open_api_typesense/schemas/stemming_dictionary.ex","loc":13,"code-health":10.0},{"file":"lib/open_api_typesense/schemas/stemming_dictionary_words.ex","loc":13,"code-health":10.0}]},"external-review-url":"https://github.com/jaeyson/open_api_typesense/pull/28","old-code-health":9.013145836865714,"modified-files":{"code-health":9.314199002253813,"old-code-health":9.013145836865714,"files":[{"file":"lib/open_api_typesense/operations/analytics.ex","loc":143,"old-loc":324,"code-health":9.096655465156704,"old-code-health":9.096655465156704},{"file":"lib/open_api_typesense/operations/collections.ex","loc":214,"old-loc":483,"code-health":8.816158827775617,"old-code-health":8.545379580978913},{"file":"lib/open_api_typesense/operations/conversations.ex","loc":123,"old-loc":271,"code-health":9.096655465156704,"old-code-health":9.096655465156704},{"file":"lib/open_api_typesense/operations/curation.ex","loc":80,"old-loc":178,"code-health":10.0,"old-code-health":9.096655465156704},{"file":"lib/open_api_typesense/operations/debug.ex","loc":31,"old-loc":59,"code-health":10.0,"old-code-health":10.0},{"file":"lib/open_api_typesense/operations/documents.ex","loc":393,"old-loc":782,"code-health":8.283981080161325,"old-code-health":8.031638343271364},{"file":"lib/open_api_typesense/operations/health.ex","loc":22,"old-loc":50,"code-health":10.0,"old-code-health":10.0},{"file":"lib/open_api_typesense/operations/keys.ex","loc":88,"old-loc":202,"code-health":10.0,"old-code-health":9.387218218812514},{"file":"lib/open_api_typesense/operations/operations.ex","loc":165,"old-loc":341,"code-health":9.096655465156704,"old-code-health":9.096655465156704},{"file":"lib/open_api_typesense/operations/override.ex","loc":27,"old-loc":62,"code-health":10.0,"old-code-health":10.0},{"file":"lib/open_api_typesense/operations/presets.ex","loc":93,"old-loc":209,"code-health":10.0,"old-code-health":9.387218218812514},{"file":"lib/open_api_typesense/operations/stopwords.ex","loc":100,"old-loc":220,"code-health":10.0,"old-code-health":9.387218218812514},{"file":"lib/open_api_typesense/operations/synonyms.ex","loc":101,"old-loc":237,"code-health":10.0,"old-code-health":9.096655465156704},{"file":"lib/open_api_typesense/schemas/field.ex","loc":73,"old-loc":64,"code-health":10.0,"old-code-health":10.0},{"file":"lib/open_api_typesense/schemas/multi_search_collection_parameters.ex","loc":214,"old-loc":208,"code-health":9.608927141875917,"old-code-health":10.0},{"file":"lib/open_api_typesense/schemas/multi_search_result.ex","loc":19,"old-loc":19,"code-health":10.0,"old-code-health":10.0},{"file":"lib/open_api_typesense/schemas/multi_search_searches_parameter.ex","loc":16,"old-loc":13,"code-health":10.0,"old-code-health":10.0},{"file":"lib/open_api_typesense/schemas/search_parameters.ex","loc":217,"old-loc":214,"code-health":9.603465296750686,"old-code-health":9.608927141875917},{"file":"lib/open_api_typesense/schemas/search_result.ex","loc":49,"old-loc":49,"code-health":10.0,"old-code-health":10.0}]},"removed-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-id":"28","analysis-time":"2025-03-10T12:55:44Z","negative-impact-count":0,"suppressions":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"affected-hotspots":11,"commits":["adea59690c6f91e397636b694259e502a2fe037f"],"is-negative-review":false,"negative-findings":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"positive-impact-count":16,"repo":"open_api_typesense","code-health":9.369725916441826,"version":"3.0","authors":["jaeyson"],"directives":{"added":[],"removed":[]},"positive-findings":{"number-of-types":2,"number-of-files-touched":8,"findings":[{"method":"get_collections","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":"lib/open_api_typesense/operations/collections.ex","change-level":"improvement","is-hotspot?":true,"what-changed":"reduced similar code in: get_collections","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":"improved"},{"name":"Code Duplication","file":"lib/open_api_typesense/operations/curation.ex","change-type":"fixed","change-level":"improvement","is-hotspot?":true,"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.","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.","what-changed":"The module no longer contains too many functions with similar structure"},{"method":"upsert_search_override","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the Elixir language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"lib/open_api_typesense/operations/curation.ex","change-level":"improvement","is-hotspot?":true,"line":179,"what-changed":"upsert_search_override is no longer above the threshold for number of arguments","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"fixed"},{"method":"upsert_search_override","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the Elixir language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"lib/open_api_typesense/operations/curation.ex","change-level":"improvement","is-hotspot?":true,"line":184,"what-changed":"upsert_search_override is no longer above the threshold for number of arguments","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"fixed"},{"method":"search","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":"lib/open_api_typesense/operations/documents.ex","change-level":"improvement","is-hotspot?":true,"what-changed":"reduced similar code in: search","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":"improved"},{"method":"update_document","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the Elixir language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"lib/open_api_typesense/operations/documents.ex","change-level":"improvement","is-hotspot?":true,"line":768,"what-changed":"update_document is no longer above the threshold for number of arguments","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"fixed"},{"method":"update_document","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the Elixir language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"lib/open_api_typesense/operations/documents.ex","change-level":"improvement","is-hotspot?":true,"line":773,"what-changed":"update_document is no longer above the threshold for number of arguments","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"fixed"},{"method":"upsert_search_override","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the Elixir language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"lib/open_api_typesense/operations/documents.ex","change-level":"improvement","is-hotspot?":true,"line":888,"what-changed":"upsert_search_override is no longer above the threshold for number of arguments","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"fixed"},{"method":"upsert_search_override","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the Elixir language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"lib/open_api_typesense/operations/documents.ex","change-level":"improvement","is-hotspot?":true,"line":893,"what-changed":"upsert_search_override is no longer above the threshold for number of arguments","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"fixed"},{"name":"Code Duplication","file":"lib/open_api_typesense/operations/keys.ex","change-type":"fixed","change-level":"improvement","is-hotspot?":true,"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.","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.","what-changed":"The module no longer contains too many functions with similar structure"},{"method":"config","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":"lib/open_api_typesense/operations/operations.ex","change-level":"improvement","is-hotspot?":true,"what-changed":"reduced similar code in: config","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":"improved"},{"name":"Code Duplication","file":"lib/open_api_typesense/operations/presets.ex","change-type":"fixed","change-level":"improvement","is-hotspot?":true,"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.","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.","what-changed":"The module no longer contains too many functions with similar structure"},{"name":"Code Duplication","file":"lib/open_api_typesense/operations/stopwords.ex","change-type":"fixed","change-level":"improvement","is-hotspot?":true,"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.","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.","what-changed":"The module no longer contains too many functions with similar structure"},{"name":"Code Duplication","file":"lib/open_api_typesense/operations/synonyms.ex","change-type":"fixed","change-level":"improvement","is-hotspot?":true,"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.","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.","what-changed":"The module no longer contains too many functions with similar structure"},{"method":"upsert_search_synonym","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the Elixir language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"lib/open_api_typesense/operations/synonyms.ex","change-level":"improvement","is-hotspot?":true,"line":245,"what-changed":"upsert_search_synonym is no longer above the threshold for number of arguments","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"fixed"},{"method":"upsert_search_synonym","why-it-occurs":"Functions with many arguments indicate either a) low cohesion where the function has too many responsibilities, or b) a missing abstraction that encapsulates those arguments.\n\nThe threshold for the Elixir language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"lib/open_api_typesense/operations/synonyms.ex","change-level":"improvement","is-hotspot?":true,"line":250,"what-changed":"upsert_search_synonym is no longer above the threshold for number of arguments","how-to-fix":"Start by investigating the responsibilities of the function. Make sure it doesn't do too many things, in which case it should be split into smaller and more cohesive functions. Consider the refactoring [INTRODUCE PARAMETER OBJECT](https://refactoring.com/catalog/introduceParameterObject.html) to encapsulate arguments that refer to the same logical concept.","change-type":"fixed"}]},"notices":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"external-review-provider":"GitHub"},"analysistime":"2025-03-10T12:55:43.000Z","project-name":"open_api_typesense","repository":"https://github.com/jaeyson/open_api_typesense.git"}}