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.
|
def _set_project_root(self, project_root): |
|
# TODO: sanitize project root with defaults |
|
self.project_root = project_root |
This has to be handled better.