Textual Changes
@@ -16,7 +16,7 @@ init(autoreset=True)
DEFAULT_SEVERITY = "none" # equivalent to a score of 0.0 in the CVSS v3.0 Ratings
-OUTPUT_VIOLATION_LEN = force_int(os.getenv('CHECKOV_OUTPUT_VIOLATION_LENGTH')) or 50
+OUTPUT_CODE_LINE_LIMIT = force_int(os.getenv('CHECKOV_OUTPUT_CODE_LINE_LIMIT')) or 50
class Record:
check_id = ""
@@ -120,8 +120,9 @@ class Record:
color_codes = (Fore.WHITE if colorized else "", Fore.YELLOW if colorized else "")
last_line_number_len = len(str(code_block[-1][0]))
- if len(code_block) >= OUTPUT_VIOLATION_LEN:
- return f'\t\t{color_codes[1]}Text is too long.'
+ if len(code_block) >= OUTPUT_CODE_LINE_LIMIT:
+ return f'\t\t{color_codes[1]}Code lines for this resource are too many. ' \
+ f'Please use IDE of your choice to review the file.'
for line_num, line in code_block:
spaces = " " * (last_line_number_len - len(str(line_num)))
