![]() |
FOSSology
4.5.1
Open Source License Compliance by Open Source Software
|
Public Member Functions | |
def | __init__ (self, CliOptions cli_options, ApiConfig api_config) |
def | __del__ (self) |
str | get_diff_dir (self) |
Private Member Functions | |
bool | __is_excluded_path (self, str path) |
Setup temp_dir using the diff or current MR :ivar temp_dir: Temporary directory location for storing MR changes. :ivar allowlist: Allow list from JSON :ivar api_config: ApiConfig :ivar cli_options: CliOptions object
Definition at line 21 of file RepoSetup.py.
def FoScanner.RepoSetup.RepoSetup.__init__ | ( | self, | |
CliOptions | cli_options, | ||
ApiConfig | api_config | ||
) |
Create a temp dir :param cli_options: CliOptions object to get allow list from :param api_config: API configuration for the CI
Definition at line 31 of file RepoSetup.py.
def FoScanner.RepoSetup.RepoSetup.__del__ | ( | self | ) |
Clean the created temp dir
Definition at line 44 of file RepoSetup.py.
|
private |
Check if the path is allow listed The function used fnmatch to check if the path is in allow list or not. :param path: path to check :return: True if the path is in allow list, False otherwise
Definition at line 50 of file RepoSetup.py.
str FoScanner.RepoSetup.RepoSetup.get_diff_dir | ( | self | ) |
Populate temp dir using the gitlab API `merge_requests` :return: temp dir path
Definition at line 66 of file RepoSetup.py.