Replies: 1 comment 2 replies
-
Thanks comment. I think this is a good idea. However, we also want Sabik to be a helper to analyze and find refactoring targets, not a linter. What do you think about my opinion? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To enhance the quality and maintainability of our codebase, we could implement a configuration file that sets acceptable limits for key metrics. The configuration file would allow us to specify the following parameters:
check: a boolean flag that determines whether to throw an error when the limits are exceeded. This flag is particularly useful for continuous integration and deployment checks
cyclomaticComplexity: a number that defines the overall acceptable limit for cyclomatic complexity
cognitiveComplexity: a number that defines the overall acceptable limit for cognitive complexity
halsteadComplexityMeasures: a number that defines the overall acceptable limit for halstead complexity measures
lineOfCode: a number that defines the overall acceptable limit for lines of code within a function or method
maintainability: a number that defines the overall acceptable limit for maintainability
By implementing this configuration file, we can ensure that our code adheres to specific quality standards and limit the risk of introducing technical debt. The configuration file can be integrated into our development workflow and used to guide code reviews and feedback. This will ultimately lead to a more consistent and maintainable codebase.
An possible format
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions