unb-cic-esw/facebook-page-post-scraper

View on GitHub
scraper/token_manager.py

Summary

Maintainability
A
0 mins
Test Coverage

Showing 1 of 2 total issues

Cyclomatic complexity is too high in function update_token_file. (6)
Open

def update_token_file(file='config.ini', **kwargs):
"""Atualiza o token no arquivo config.ini."""
config = ConfigParser()
config.read(path + file)
 
 
Severity: Minor
Found in scraper/token_manager.py by radon

Identical blocks of code found in 2 locations. Consider refactoring.
Wontfix

sys.path.append(
os.path.dirname(
os.path.dirname(os.path.realpath(__file__))
Severity: Minor
Found in scraper/token_manager.py and 1 other location - About 45 mins to fix
server/rest.py on lines 5..7

There are no issues that match your filters.

Category
Status