File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
addons/GDQuest_GDScript_formatter Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -521,6 +521,15 @@ func lint_code(script: GDScript) -> Array:
521521 var output : Array = []
522522 var formatter_arguments : Array = ["lint" , ProjectSettings .globalize_path (script_path )]
523523
524+ var max_line_length := get_editor_setting (SETTING_LINT_LINE_LENGTH ) as int
525+ formatter_arguments .append ("--max-line-length" )
526+ formatter_arguments .append (str (max_line_length ))
527+
528+ var ignored_rules := get_editor_setting (SETTING_LINT_IGNORED_RULES ) as String
529+ if not ignored_rules .is_empty ():
530+ formatter_arguments .append ("--disable" )
531+ formatter_arguments .append (ignored_rules )
532+
524533 var exit_code := OS .execute (get_editor_setting (SETTING_FORMATTER_PATH ), formatter_arguments , output )
525534 if exit_code == OK :
526535 return [] # No issues found
You can’t perform that action at this time.
0 commit comments