Skip to content

feat(config): generic resource detector loading in declarative config #5053

@MikeGoldsmith

Description

@MikeGoldsmith

Currently _run_detectors() in _resource.py has a hardcoded if branch for each supported detector type. As more detectors are added, this pattern becomes repetitive.

A follow-up to generalise the loading logic — e.g. iterating over detector_config fields and loading detectors by name (including out-of-source/contrib detectors) — would make the code easier to extend.

Raised in: #5004 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions