Skip to content

fix(enforcement): CONFIG_FILENAMES is a framework ClassVar hook - #511

Merged
marlon-costa-dc merged 1 commit into
0.12.0-devfrom
fix/classvar-exempt-config-filenames
Sep 26, 2026
Merged

marlon-costa-dc merged 1 commit into
0.12.0-devfrom
fix/classvar-exempt-config-filenames

Conversation

@marlon-costa-dc

@marlon-costa-dc marlon-costa-dc commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

ENFORCE-079 flagged a consumer's CONFIG_FILENAMES ClassVar override, but the name is FlextConfig's own loader hook (read through cls) — relocating it to _constants would break the framework read. Exempted alongside the other framework idioms in the SSOT set. Evidence: 31 classvar/exempt/placement tests green.


Summary by cubic

Fixes ENFORCE-079 by exempting CONFIG_FILENAMES from ClassVar relocation enforcement.

FlextConfig declares CONFIG_FILENAMES and its loader reads it through cls, so a consumer override must stay on the config class; relocating it to _constants would break the framework read.

Written for commit f977352. Summary will update on new commits.

Review in cubic

FlextConfig declares CONFIG_FILENAMES and its loader reads it through
cls, so a consumer override must stay on the config class; relocating it
to _constants breaks the framework read. Exempt it like the other
framework idioms.
@sonarqubecloud

Copy link
Copy Markdown

@marlon-costa-dc
marlon-costa-dc merged commit 0e6ea41 into 0.12.0-dev Sep 26, 2026
8 of 10 checks passed
@marlon-costa-dc
marlon-costa-dc deleted the fix/classvar-exempt-config-filenames branch September 26, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant