{"results":{"result":{"added-files":{"code-health":9.613148721617174,"old-code-health":0.0,"files":[{"file":"src/Paramore.Brighter.BoxProvisioning/BoxProvisioningHostedService.cs","loc":45,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning/BoxProvisioningOptions.cs","loc":12,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning/BrighterBuilderBoxProvisioningExtensions.cs","loc":23,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxMigrationRunner.cs","loc":269,"code-health":8.545379580978913},{"file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxProvisioningExtensions.cs","loc":87,"code-health":9.6882083290695},{"file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlInboxMigrations.cs","loc":45,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlInboxProvisioner.cs","loc":63,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlOutboxMigrations.cs","loc":100,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlOutboxProvisioner.cs","loc":63,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlPayloadModeValidator.cs","loc":38,"code-health":9.6882083290695},{"file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxMigrationRunner.cs","loc":256,"code-health":8.545379580978913},{"file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxProvisioningExtensions.cs","loc":87,"code-health":9.6882083290695},{"file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlInboxMigrations.cs","loc":25,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlInboxProvisioner.cs","loc":63,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlOutboxMigrations.cs","loc":99,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlOutboxProvisioner.cs","loc":63,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlBoxMigrationRunner.cs","loc":228,"code-health":9.387218218812514},{"file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlBoxProvisioningExtensions.cs","loc":87,"code-health":9.6882083290695},{"file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlInboxMigrations.cs","loc":46,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlInboxProvisioner.cs","loc":64,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlOutboxMigrations.cs","loc":104,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlOutboxProvisioner.cs","loc":64,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteBoxMigrationRunner.cs","loc":284,"code-health":9.536386775820924},{"file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteBoxProvisioningExtensions.cs","loc":79,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteInboxMigrations.cs","loc":38,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteInboxProvisioner.cs","loc":69,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteOutboxMigrations.cs","loc":93,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteOutboxProvisioner.cs","loc":72,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.Spanner/SpannerBoxMigrationRunner.cs","loc":148,"code-health":9.387218218812514},{"file":"src/Paramore.Brighter.BoxProvisioning.Spanner/SpannerConnectionHelper.cs","loc":14,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.Spanner/SpannerInboxProvisioner.cs","loc":68,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.Spanner/SpannerOutboxProvisioner.cs","loc":72,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlPayloadModeValidator.cs","loc":41,"code-health":9.6882083290695},{"file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlPayloadModeValidator.cs","loc":38,"code-health":9.6882083290695},{"file":"src/Paramore.Brighter.BoxProvisioning.Spanner/SpannerBoxProvisioningExtensions.cs","loc":79,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.Spanner/SpannerPayloadModeValidator.cs","loc":40,"code-health":9.6882083290695},{"file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqlitePayloadModeValidator.cs","loc":37,"code-health":9.6882083290695},{"file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxDetectionHelpers.cs","loc":108,"code-health":9.6882083290695},{"file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlBoxDetectionHelpers.cs","loc":98,"code-health":9.6882083290695},{"file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxDetectionHelpers.cs","loc":106,"code-health":9.6882083290695},{"file":"src/Paramore.Brighter.BoxProvisioning.Spanner/SpannerBoxDetectionHelpers.cs","loc":65,"code-health":10.0},{"file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteBoxDetectionHelpers.cs","loc":99,"code-health":9.6882083290695},{"file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlMigrationLockName.cs","loc":29,"code-health":10.0}]},"external-review-url":"https://github.com/BrighterCommand/Brighter/pull/4039","old-code-health":10.0,"modified-files":{"code-health":10.0,"old-code-health":10.0,"files":[{"file":"src/Paramore.Brighter.Outbox.Spanner/SpannerOutboxBuilder.cs","loc":64,"old-loc":60,"code-health":10.0,"old-code-health":10.0}]},"removed-files":{"code-health":0.0,"old-code-health":0.0,"files":[]},"external-review-id":"4039","analysis-time":"2026-05-04T20:04:58Z","negative-impact-count":61,"suppressions":{"number-of-types":0,"number-of-files-touched":0,"findings":[]},"affected-hotspots":0,"commits":["379940579c5bbc9aa40fbe998858250dae89e531","8d9ca1c425602c4be30eadd3c3dab50f72b125a9","d29583c4300b584ff17c54b36645f6f19ce4874a","51ac271b5fb537422c5697cebb5f052884eabf64","60d567b8a42f69c8b65d700f2793ef420c40dcab","0d93fc6699d5d46a40eded6fedc3e9d6850d782e","f870c02bbe889f2f0440072dbda95fe2c7a30321","a91a250f79e1315f4f002e789ef72f05bf8331de","fd8cbe50b66f27a9d1ab81ba3208f89a69e4342f","4d0a8feba1934dd74cdaecca6cc05d771d6c451e","7158dbdf8714659d4892a192556ff4d68a718306","74d92c786a645471f06b055190661edb9c49f8b0","518a8fe97ba10691a3bc90c89ae171263fffe933","e9d952f9ce377c3e51b4eabf48317706721658b9","9ce5e71a8c488b0c3693eb223dce8d693ddeaffb","50d6aee1575506e8856accdce732f3faff53f9e9","f97cff68dd584fd0014996794198e6c57ae314fc","a43b81ccce6e3ddffd68838a4c11cb71a677286e","6e013129c53d195012693d11da0e7b2986b1ace0","4041d32edb42994fa31755951febfaaafd19d2f0","335d245de4989f4ab92b5ceaaee16cb9a14af25d","bb52c818b2c59289f3335e44c06b1d52530cc811","253c6562d488cab1e5c2882f8001d252de727bb9","f80ee2e3457f1d41333d019d491c66a5c2e91c65","cbe15c5096b112867b40c604b185228a9a6e8ff6","2eab57d3e42d393d0bbf945ebecc27cd316b2187","85dea304d62095056cd9ec0a554454a3181169f2","92ec95c2af6a24494c16a2df52313efd12b9a617","62bb677fa8d7188db260bc26a9a421422798047a","a6ed373e234d15614241be2a69bbe4193b16eabd","0c544dd9a79f61682a2ebfe5068601258020bbb1","11f7aeabc904a5b41a2aff02e0755a7b48754819","745aecc28819deacd671aecfeae0369e5318a58b","05aeeebe61b30b7d05a9d1cafb01e53f345f9c91","e347222e66f8119564c5c7f9f2180f53a7b13fac","6ac3093b477f7d520efb740afdddd57f2d77bdc9","43de453c3b74730cbda74f81879ea0bf1d180840","bae956c3d197d13d71710b2c2e561ca8891bf8ef","4f806df9d0a5ac1d8d2ffd1f7864fe77bf51079e","297ca030f57c5937a1aca7e482e8fb1c09ce0126","0088abe540c8d702d70f0c9715f54de0031eb496","394bf491196d5f0acdb309f5324a88f87d88b631","be81d9ba9296c3c39b7b64062a3d09e6070f5065","5c775451739dd292c1cdb3e012c17f8ee37838f9","4db713c86f71e4cda679e1488405cb3a12beeb91","b3ef1ebcc64d36c748cab70144e502aa83f5c5c4","ce3a42e4baec2a5699f4c40b8ff2b637e458df25","91fd1badc30534c2ebd4efccb3f42d4726377bef","1eeb63f84b89b02345304f5473fa587e43b3e7d4","deace50e848404ef1d7bd581b131bc4ff1d462c5","9f9d4e94233d053c657f342afc30f4e59293898a","ee18d8d59b9c603942d31058d95ec0bce2d2be5d","b0adc114d9f26aa0fad4d7c956bc799ee3e8f96e","42a05154b927bfd06b7a7b1a5b85c9811d3be1b9","30fbad0b24c530ac120e9f2351c9e3cd82f94222","705e8946a09495fe7202db520c39c1addd3119ba","8dac91bb7a5cdea1c503e03cadca86a0ee7a4bee","36f941b1a446acd77855285fcce12df2b4deb6c0","2376998a83284fa163971849f3004fa9a97e29db","09907f765c71067f561401b5e4f3d2e55621ff39","2e201f2d01e042f5e22575b732f0a7c4c7dcd340","3109da5bcc38399dfd27e2bedc6a1e0caa83fb6b","f963c737049af2cc98051d66e1f9d5a41395c153","9e352d6ad3a45686527c76da29e3fa6859d5e577","81d70f4cbc18a26ebff6870f37f2609e9906c186","88889798110c520369497663c17b6ad6561d3a15","ab030561302973ea3f556bfe91ae35ae9404b79e","dd836c6bde10a6485e5caac190f656efad706a33","6d61d772a52529830e05a4fc9c6791a11959c3ba","1d522c2a423f65b008e9ea1b133265387035febb","8c2d84c0ca1a56eda4a405c2bf403796f968b1db","d72d2c428819eb0c03967c2fd2da4e5e0f62f368","8ff9809b3ec116af7f9ee227803458c64d235d0a","a34cef6856261a5fdf5817c1c0421cb5e39b4721","76f9bd6a9c83be60c6a957e07c9bb9abb6a422f4","389ae04a5d138d7b740034b4c3b94e8896146b33","29645afb48602590a7410c9e9174e76edd0dbe4b","6bc55a8c42004ee1a3d73472bfebb6b1a5362633","da46dcca047061e5c407500c04741143930c8dfe","1d4de1862e773301fd0ba57b4740679692be53d1","b2e4316bd5cc9fa5bf1ed6214ff639636a5345e6","e947302dc1fa00cb12b4726214aac6391699f241","0377254b00f970c2c88078fe73d975221a9cd1a3","97e6b400b26081b70578c5ececb7161eab58df0e","55d739afcc6cb106cf57b140bc727d06a3943ba7","2c8ff4d741af5b4ed4840656d8043f15d9278c76","6e87f493ba0df65ac2f5cf10ba0bf70d517f72fc","08a2f9176486ecb224f3bb75dae2e8d64f220351","2753fa3630395542b7fed316bd731a9f7a5e0d8c","78d3f606a28f20aaf2ccab06eee4250fe2fbb4ea","ad7c7b3b5f6740d5b2038784a2c646caf5eda464","06d35740dc5aed737376322709ac04e79c92f44b","e61cde3c9e967c61093c33eb40b20367f91791c5","c0dacb684647bcacd22f8a7bdc79245275c45baa","26aea6aab57c53fcb857a3507a0b7593b4cd4562","a063c3111acceefee68ff5f7ee7d9a6bf5081e50","a4dbe725c88500fd9c84a82fad88b5941dbf709a","1307ecbdad63b2f1ad5e94d2cbefada605dc2f51","59e743195164008d3fbaa778028ac695b90e8a19","c3f0c6e70a427b568794b9880747307de3742e99","5ced21cd418d9a23e24f996fc29d653ef528855e","e42b8c5ef297b0175dc791d5b19977b687770d57","f7d6e7a555825898f3ed6e4cf8280258d8388658","d71162ed0fb92375f33f9ed80663a8a45c87bb7d","7c6b32fe864a8de68a5ba193c06f268fa56caee4","950a12b3ff13be838675d5d17371d66416cc2166","be910cf16e708018f225673b3bb3932d6b3482cc","b8a629dc3f54bc6fe9df023462ae93a4c691e16e","86265524d4796e1361d933715b5db6560cf42c74","7d69bf70dcff806a8b81ec68ff08369cc5c2e58a","dda187313e2467f87b92fe96222310bcbab31d19","929f5ca43fe0fb01c36de39ca2d2c0722075e754"],"is-negative-review":true,"negative-findings":{"number-of-types":5,"number-of-files-touched":17,"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":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":320,"what-changed":"The module contains 2 functions with similar structure: InsertHistoryRowAsync,IsMigrationAppliedAsync","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 code health issue is measured as the average number of function arguments across the whole file. A function with many arguments can be simplified either by a) splitting the function if it has too many responsibilities, or b) by introducing an abstraction (class, record, struct, etc.) which encapsulates the arguments. ","name":"Missing Arguments Abstractions","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"what-changed":"The average number of function arguments in this module is 4.82 across 11 functions. The average arguments threshold is 4.00","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":"introduced"},{"why-it-occurs":"Code that uses a high degree of built-in, primitives such as integers, strings, floats, lacks a domain language that encapsulates the validation and semantics of function arguments. Primitive Obsession has several consequences: 1) In a statically typed language, the compiler will detect less erroneous assignments. 2) Security impact since the possible value range of a variable/argument isn't retricted.\n\nIn this module, 34 % of all functions have primitive types as arguments.","name":"Primitive Obsession","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxMigrationRunner.cs","refactoring-examples":[{"diff":"diff --git a/primitive-obsession.ts b/primitive-obsession.ts\nindex 38bae186cc..24116eddcc 100644\n--- a/primitive-obsession.ts\n+++ b/primitive-obsession.ts\n@@ -1,8 +1,8 @@\n-// Problem: It's hard to know what this function does, and what values are valid as parameters.\n-function getPopularRepositories(String baseURL, String query, Integer pages, Integer pageSize, String sortorder): Json {\n-\tlet pages == null ? 10 : pages\n-\tlet pageSize == null ? 10 : pageSize\n-  return httpClient.get(`${baseURL}?q=${query}&pages=${pages}&pageSize=${pageSize}&sortorder=${sortorder}`)\n+// Refactoring: extract the pagination & API logic into a class, and it will\n+// attract validation and other logic related to the specific query. It's now\n+// easier to use and to maintain the getPopularRepositories function!\n+function getPopularRepositories(query: PaginatedRepoQuery): Json {\n+  return httpClient.get(query.getURL())\n     .map(json => json.repositories)\n     .filter(repository => repositry.stargazersCount > 1000)\n }\n","language":"c#","improvement-type":"Primitive Obsession"}],"change-level":"warning","is-hotspot?":false,"what-changed":"In this module, 34.0% of all function arguments are primitive types, threshold = 30.0%","how-to-fix":"Primitive Obsession indicates a missing domain language. Introduce data types that encapsulate the details and constraints of your domain. For example, instead of `int userId`, consider `User clicked`.","change-type":"introduced"},{"method":"MigrateAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":55,"what-changed":"MigrateAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"RunFreshPathAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":119,"what-changed":"RunFreshPathAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"RunBootstrapPathAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":145,"what-changed":"RunBootstrapPathAsync has 7 arguments, max arguments = 4","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":"introduced"},{"method":"RunNormalPathAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":185,"what-changed":"RunNormalPathAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"IsMigrationAppliedAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":320,"what-changed":"IsMigrationAppliedAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"InsertHistoryRowAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":338,"what-changed":"InsertHistoryRowAsync has 7 arguments, max arguments = 4","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":"introduced"},{"method":"AddMsSqlOutbox","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxProvisioningExtensions.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":32,"what-changed":"AddMsSqlOutbox has 5 arguments, max arguments = 4","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":"introduced"},{"method":"AddMsSqlInbox","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxProvisioningExtensions.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":80,"what-changed":"AddMsSqlInbox has 5 arguments, max arguments = 4","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":"introduced"},{"method":"ValidateAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlPayloadModeValidator.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":23,"what-changed":"ValidateAsync has 6 arguments, max arguments = 4","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":"introduced"},{"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":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":305,"what-changed":"The module contains 2 functions with similar structure: InsertHistoryRowAsync,IsMigrationAppliedAsync","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 code health issue is measured as the average number of function arguments across the whole file. A function with many arguments can be simplified either by a) splitting the function if it has too many responsibilities, or b) by introducing an abstraction (class, record, struct, etc.) which encapsulates the arguments. ","name":"Missing Arguments Abstractions","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"what-changed":"The average number of function arguments in this module is 4.91 across 11 functions. The average arguments threshold is 4.00","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":"introduced"},{"why-it-occurs":"Code that uses a high degree of built-in, primitives such as integers, strings, floats, lacks a domain language that encapsulates the validation and semantics of function arguments. Primitive Obsession has several consequences: 1) In a statically typed language, the compiler will detect less erroneous assignments. 2) Security impact since the possible value range of a variable/argument isn't retricted.\n\nIn this module, 35 % of all functions have primitive types as arguments.","name":"Primitive Obsession","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxMigrationRunner.cs","refactoring-examples":[{"diff":"diff --git a/primitive-obsession.ts b/primitive-obsession.ts\nindex 38bae186cc..24116eddcc 100644\n--- a/primitive-obsession.ts\n+++ b/primitive-obsession.ts\n@@ -1,8 +1,8 @@\n-// Problem: It's hard to know what this function does, and what values are valid as parameters.\n-function getPopularRepositories(String baseURL, String query, Integer pages, Integer pageSize, String sortorder): Json {\n-\tlet pages == null ? 10 : pages\n-\tlet pageSize == null ? 10 : pageSize\n-  return httpClient.get(`${baseURL}?q=${query}&pages=${pages}&pageSize=${pageSize}&sortorder=${sortorder}`)\n+// Refactoring: extract the pagination & API logic into a class, and it will\n+// attract validation and other logic related to the specific query. It's now\n+// easier to use and to maintain the getPopularRepositories function!\n+function getPopularRepositories(query: PaginatedRepoQuery): Json {\n+  return httpClient.get(query.getURL())\n     .map(json => json.repositories)\n     .filter(repository => repositry.stargazersCount > 1000)\n }\n","language":"c#","improvement-type":"Primitive Obsession"}],"change-level":"warning","is-hotspot?":false,"what-changed":"In this module, 35.2% of all function arguments are primitive types, threshold = 30.0%","how-to-fix":"Primitive Obsession indicates a missing domain language. Introduce data types that encapsulate the details and constraints of your domain. For example, instead of `int userId`, consider `User clicked`.","change-type":"introduced"},{"method":"MigrateAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":54,"what-changed":"MigrateAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"RunFreshPathAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":127,"what-changed":"RunFreshPathAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"RunBootstrapPathAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":153,"what-changed":"RunBootstrapPathAsync has 7 arguments, max arguments = 4","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":"introduced"},{"method":"RunNormalPathAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":193,"what-changed":"RunNormalPathAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"IsMigrationAppliedAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":305,"what-changed":"IsMigrationAppliedAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"InsertHistoryRowAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":323,"what-changed":"InsertHistoryRowAsync has 7 arguments, max arguments = 4","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":"introduced"},{"method":"AddPostgreSqlOutbox","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxProvisioningExtensions.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":32,"what-changed":"AddPostgreSqlOutbox has 5 arguments, max arguments = 4","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":"introduced"},{"method":"AddPostgreSqlInbox","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxProvisioningExtensions.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":80,"what-changed":"AddPostgreSqlInbox has 5 arguments, max arguments = 4","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":"introduced"},{"why-it-occurs":"Code that uses a high degree of built-in, primitives such as integers, strings, floats, lacks a domain language that encapsulates the validation and semantics of function arguments. Primitive Obsession has several consequences: 1) In a statically typed language, the compiler will detect less erroneous assignments. 2) Security impact since the possible value range of a variable/argument isn't retricted.\n\nIn this module, 42 % of all functions have primitive types as arguments.","name":"Primitive Obsession","file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlBoxMigrationRunner.cs","refactoring-examples":[{"diff":"diff --git a/primitive-obsession.ts b/primitive-obsession.ts\nindex 38bae186cc..24116eddcc 100644\n--- a/primitive-obsession.ts\n+++ b/primitive-obsession.ts\n@@ -1,8 +1,8 @@\n-// Problem: It's hard to know what this function does, and what values are valid as parameters.\n-function getPopularRepositories(String baseURL, String query, Integer pages, Integer pageSize, String sortorder): Json {\n-\tlet pages == null ? 10 : pages\n-\tlet pageSize == null ? 10 : pageSize\n-  return httpClient.get(`${baseURL}?q=${query}&pages=${pages}&pageSize=${pageSize}&sortorder=${sortorder}`)\n+// Refactoring: extract the pagination & API logic into a class, and it will\n+// attract validation and other logic related to the specific query. It's now\n+// easier to use and to maintain the getPopularRepositories function!\n+function getPopularRepositories(query: PaginatedRepoQuery): Json {\n+  return httpClient.get(query.getURL())\n     .map(json => json.repositories)\n     .filter(repository => repositry.stargazersCount > 1000)\n }\n","language":"c#","improvement-type":"Primitive Obsession"}],"change-level":"warning","is-hotspot?":false,"what-changed":"In this module, 41.7% of all function arguments are primitive types, threshold = 30.0%","how-to-fix":"Primitive Obsession indicates a missing domain language. Introduce data types that encapsulate the details and constraints of your domain. For example, instead of `int userId`, consider `User clicked`.","change-type":"introduced"},{"method":"MigrateAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":53,"what-changed":"MigrateAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"RunFreshPathAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":106,"what-changed":"RunFreshPathAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"RunBootstrapPathAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":130,"what-changed":"RunBootstrapPathAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"RunNormalPathAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":169,"what-changed":"RunNormalPathAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"IsMigrationAppliedAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":249,"what-changed":"IsMigrationAppliedAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"InsertHistoryRowAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":265,"what-changed":"InsertHistoryRowAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"AddMySqlOutbox","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlBoxProvisioningExtensions.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":32,"what-changed":"AddMySqlOutbox has 5 arguments, max arguments = 4","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":"introduced"},{"method":"AddMySqlInbox","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlBoxProvisioningExtensions.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":80,"what-changed":"AddMySqlInbox has 5 arguments, max arguments = 4","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":"introduced"},{"method":"BeginImmediateWithRetryAsync","why-it-occurs":"A Bumpy Road is a function that contains multiple chunks of nested conditional logic inside the same function. The deeper the nesting and the more bumps, the lower the code health.\n\nA bumpy code road represents a lack of encapsulation which becomes an obstacle to comprehension. In imperative languages there’s also an increased risk for feature entanglement, which leads to complex state management. CodeScene considers the following rules for the code health impact: 1) The deeper the nested conditional logic of each bump, the higher the tax on our working memory. 2) The more bumps inside a function, the more expensive it is to refactor as each bump represents a missing abstraction. 3) The larger each bump – that is, the more lines of code it spans – the harder it is to build up a mental model of the function. The nesting depth for what is considered a bump is  levels of conditionals.","name":"Bumpy Road Ahead","file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":282,"what-changed":"BeginImmediateWithRetryAsync has 2 blocks with nested conditional logic. Any nesting of 2 or deeper is considered. Threshold is 2 blocks per function","how-to-fix":"Bumpy Road implementations indicate a lack of encapsulation. Check out the detailed description of the [Bumpy Road code health issue](https://codescene.com/blog/bumpy-road-code-complexity-in-context/).\n\nA Bumpy Road often suggests that the function/method does too many things. The first refactoring step is to identify the different possible responsibilities of the function. Consider extracting those responsibilities into smaller, cohesive, and well-named functions. The [EXTRACT FUNCTION](https://refactoring.com/catalog/extractFunction.html) refactoring is the primary response.","change-type":"introduced"},{"method":"MigrateAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":90,"what-changed":"MigrateAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"RunFreshPathAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":152,"what-changed":"RunFreshPathAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"RunBootstrapPathAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":178,"what-changed":"RunBootstrapPathAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"RunNormalPathAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":214,"what-changed":"RunNormalPathAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"ApplyOrSkipAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":234,"what-changed":"ApplyOrSkipAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"IsMigrationAppliedAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":376,"what-changed":"IsMigrationAppliedAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"InsertHistoryRowAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":392,"what-changed":"InsertHistoryRowAsync has 6 arguments, max arguments = 4","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":"introduced"},{"why-it-occurs":"Code that uses a high degree of built-in, primitives such as integers, strings, floats, lacks a domain language that encapsulates the validation and semantics of function arguments. Primitive Obsession has several consequences: 1) In a statically typed language, the compiler will detect less erroneous assignments. 2) Security impact since the possible value range of a variable/argument isn't retricted.\n\nIn this module, 44 % of all functions have primitive types as arguments.","name":"Primitive Obsession","file":"src/Paramore.Brighter.BoxProvisioning.Spanner/SpannerBoxMigrationRunner.cs","refactoring-examples":[{"diff":"diff --git a/primitive-obsession.ts b/primitive-obsession.ts\nindex 38bae186cc..24116eddcc 100644\n--- a/primitive-obsession.ts\n+++ b/primitive-obsession.ts\n@@ -1,8 +1,8 @@\n-// Problem: It's hard to know what this function does, and what values are valid as parameters.\n-function getPopularRepositories(String baseURL, String query, Integer pages, Integer pageSize, String sortorder): Json {\n-\tlet pages == null ? 10 : pages\n-\tlet pageSize == null ? 10 : pageSize\n-  return httpClient.get(`${baseURL}?q=${query}&pages=${pages}&pageSize=${pageSize}&sortorder=${sortorder}`)\n+// Refactoring: extract the pagination & API logic into a class, and it will\n+// attract validation and other logic related to the specific query. It's now\n+// easier to use and to maintain the getPopularRepositories function!\n+function getPopularRepositories(query: PaginatedRepoQuery): Json {\n+  return httpClient.get(query.getURL())\n     .map(json => json.repositories)\n     .filter(repository => repositry.stargazersCount > 1000)\n }\n","language":"c#","improvement-type":"Primitive Obsession"}],"change-level":"warning","is-hotspot?":false,"what-changed":"In this module, 44.4% of all function arguments are primitive types, threshold = 30.0%","how-to-fix":"Primitive Obsession indicates a missing domain language. Introduce data types that encapsulate the details and constraints of your domain. For example, instead of `int userId`, consider `User clicked`.","change-type":"introduced"},{"method":"MigrateAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.Spanner/SpannerBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":43,"what-changed":"MigrateAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"FreshInstallAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.Spanner/SpannerBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":80,"what-changed":"FreshInstallAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"BootstrapExistingTableAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.Spanner/SpannerBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":101,"what-changed":"BootstrapExistingTableAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"InsertHistoryRowAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.Spanner/SpannerBoxMigrationRunner.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":180,"what-changed":"InsertHistoryRowAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"ValidateAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlPayloadModeValidator.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":15,"what-changed":"ValidateAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"ValidateAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlPayloadModeValidator.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":14,"what-changed":"ValidateAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"ValidateAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.Spanner/SpannerPayloadModeValidator.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":15,"what-changed":"ValidateAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"ValidateAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqlitePayloadModeValidator.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":15,"what-changed":"ValidateAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"DoesTableExistAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxDetectionHelpers.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":42,"what-changed":"DoesTableExistAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"DoesHistoryExistAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxDetectionHelpers.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":64,"what-changed":"DoesHistoryExistAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"GetMaxVersionAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxDetectionHelpers.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":90,"what-changed":"GetMaxVersionAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"GetTableColumnsAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxDetectionHelpers.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":110,"what-changed":"GetTableColumnsAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"DetectCurrentVersionAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MsSql/MsSqlBoxDetectionHelpers.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":142,"what-changed":"DetectCurrentVersionAsync has 7 arguments, max arguments = 4","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":"introduced"},{"method":"DetectCurrentVersionAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.MySql/MySqlBoxDetectionHelpers.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":142,"what-changed":"DetectCurrentVersionAsync has 6 arguments, max arguments = 4","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":"introduced"},{"method":"DoesTableExistAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxDetectionHelpers.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":49,"what-changed":"DoesTableExistAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"DoesHistoryExistAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxDetectionHelpers.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":69,"what-changed":"DoesHistoryExistAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"GetMaxVersionAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxDetectionHelpers.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":95,"what-changed":"GetMaxVersionAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"GetTableColumnsAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxDetectionHelpers.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":115,"what-changed":"GetTableColumnsAsync has 5 arguments, max arguments = 4","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":"introduced"},{"method":"DetectCurrentVersionAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.PostgreSql/PostgreSqlBoxDetectionHelpers.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":147,"what-changed":"DetectCurrentVersionAsync has 7 arguments, max arguments = 4","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":"introduced"},{"method":"DetectCurrentVersionAsync","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 C# language is 4 function arguments.","name":"Excess Number of Function Arguments","file":"src/Paramore.Brighter.BoxProvisioning.Sqlite/SqliteBoxDetectionHelpers.cs","refactoring-examples":null,"change-level":"warning","is-hotspot?":false,"line":133,"what-changed":"DetectCurrentVersionAsync has 6 arguments, max arguments = 4","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":"introduced"}]},"positive-impact-count":0,"repo":"Brighter","code-health":9.619891227558487,"version":"3.0","authors":["Ian Cooper"],"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-05-04T20:04:57.000Z","project-name":"Brighter","repository":"https://github.com/BrighterCommand/Brighter.git"}}