cyberark/cyberark-conjur-cli

View on GitHub
conjur/logic/credential_provider/file_credentials_provider.py

Summary

Maintainability
A
35 mins
Test Coverage
D
61%

Showing 1 of 1 total issue

Function is_exists has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

def is_exists(self, conjur_url: str) -> bool:
if not os.path.exists(DEFAULT_NETRC_FILE) or os.path.getsize(DEFAULT_NETRC_FILE) == 0:
return False
 
netrc_auth = ""
Severity: Minor
Found in conjur/logic/credential_provider/file_credentials_provider.py - About 35 mins to fix
Category
Status