-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: optimize docmap parameter handling with DocMapConfig class
Introduce a configuration class to improve code organization and satisfy pylint requirements. This change reduces function complexity and improves maintainability without changing functionality. Key changes: - Add DocMapConfig dataclass to encapsulate documentation mapping parameters - Update generate_docmap_content to use configuration object - Modify main.py to construct and use DocMapConfig - Move parameter validation and defaults to configuration class Benefits: - Resolves pylint warnings about argument count and local variables - Improves code readability and maintainability - Makes parameter handling more explicit and type-safe - Achieves perfect pylint score (10.00/10) No functional changes or behavior modifications were made to the application's core features.
- Loading branch information
1 parent
a0b2a19
commit 93e639b
Showing
4 changed files
with
64 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters