Skip to content

Refactor configuration dict into CompilationDatabase #100

Open
@Pennycook

Description

@Pennycook

Feature/behavior summary

The configuration dictionary used by Code Base Investigator 1.x stores a subset of the information available in a compilation database. Rather than maintain support for two data formats and move back and forth between them, we should adopt compilation databases as the only representation of a compilation.

Request attributes

  • Would this be a refactor of existing code?
  • Does this proposal require new package dependencies?
  • Would this change break backwards compatibility?

Related issues

No response

Solution description

  • Introduce a CompilationDatabase class that stores CompileCommand objects and is interoperable with JSON.
  • Rewrite external interface(s) to use a CompilationDatabase and update the tests.
  • Rewrite internal interface(s) to use a CompilationDatabase (replacing functionality from config.py).

Additional notes

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrefactorImprovements to code structure

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions