We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a8f464 commit ecac80dCopy full SHA for ecac80d
codeflash/code_utils/formatter.py
@@ -144,10 +144,11 @@ def format_code(
144
145
max_diff_lines = min(int(original_code_lines * 0.3), 50)
146
147
- if diff_lines_count > max_diff_lines and max_diff_lines != -1:
+ if diff_lines_count > max_diff_lines:
148
logger.debug(
149
f"Skipping formatting {path}: {diff_lines_count} lines would change (max: {max_diff_lines})"
150
)
151
+ return original_code
152
except FileNotFoundError as e:
153
logger.warning(f"Formatter not found, skipping diff check: {e}")
154
# Continue without formatting checks
0 commit comments