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

Add sanitization for project_root in agent configuration #16

Open
sanketsaurav opened this issue Dec 9, 2018 · 0 comments
Open

Add sanitization for project_root in agent configuration #16

sanketsaurav opened this issue Dec 9, 2018 · 0 comments

Comments

@sanketsaurav
Copy link
Contributor

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.

@dolftax dolftax added this to the v1.0.0 milestone Dec 16, 2018
@dolftax dolftax removed this from the 0.1.0 milestone Jan 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants