Skip to content

Commit 133baa8

Browse files
committed
refactor: replace Codeanalyzer constructor parameters with AnalysisOptions dataclass
BREAKING CHANGE: Codeanalyzer constructor now takes a single AnalysisOptions parameter instead of 9 individual parameters, improving API design and maintainability. - Add new codeanalyzer.options module with AnalysisOptions dataclass - Refactor Codeanalyzer.__init__ to accept AnalysisOptions parameter - Update CLI to create AnalysisOptions instance from command arguments - Improve type safety and configuration management - Enhance code organization and maintainability - Update version to 0.1.12 in pyproject.toml - Add comprehensive changelog documentation - Remove obsolete test_numpy_constraints.py file Closes #12
1 parent efd63a9 commit 133baa8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [0.1.12] - 2025-07-21
99

1010
### Changed
11-
- **BREAKING CHANGE**: Refactored `Codeanalyzer` constructor to use `AnalysisOptions` dataclass [in response to #19](https://github.com/codellm-devkit/codeanalyzer-python/issues/19)
11+
- **BREAKING CHANGE**: Refactored `Codeanalyzer` constructor to use `AnalysisOptions` dataclass [in response to #12](https://github.com/codellm-devkit/codeanalyzer-python/issues/12)
1212
- Replaced multiple individual parameters with single `AnalysisOptions` object for cleaner API
1313
- Improved type safety and configuration management through centralized options structure
1414
- Enhanced maintainability and extensibility for future configuration additions
1515
- Updated CLI integration to create and pass `AnalysisOptions` instance
1616
- Maintained backward compatibility in terms of functionality while improving code architecture
1717

1818
### Added
19-
- New `AnalysisOptions` dataclass in `codeanalyzer.options` module [in response to #19](https://github.com/codellm-devkit/codeanalyzer-python/issues/19)
19+
- New `AnalysisOptions` dataclass in `codeanalyzer.options` module [in response to #12](https://github.com/codellm-devkit/codeanalyzer-python/issues/12)
2020
- Centralized configuration structure with all analysis parameters
2121
- Type-safe configuration with proper defaults and validation
2222
- Support for `OutputFormat` enum integration

0 commit comments

Comments
 (0)