Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,9 @@ def check_chain(node: ast.Subscript, chain_length: int = 0):
chain_length += 1
current = current.value

print(chain_length)
if chain_length >= threshold:
# Create a descriptive message for the detected long chain
message = f"Dictionary chain too long ({chain_length}/{threshold})"
print(node.lineno)
# Instantiate a Smell object with details about the detected issue
smell = LECSmell(
path=str(file_path),
Expand Down
Loading