Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Add sanitization for project_root in agent configuration #16

Open
@sanketsaurav

Description

@sanketsaurav

The agent must be configured with the absolute path of the project repository, and the value must be validated before setting. This is important because all source-code usage inference depends on the file location, for which we must know the base path of the application.

Presently, the project_root is directly being set after the user.

beacon-py/beacon/agent.py

Lines 150 to 152 in e29df95

def _set_project_root(self, project_root):
# TODO: sanitize project root with defaults
self.project_root = project_root

This has to be handled better.

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