bone-forge/addons/SimpleFormatOnSave/formatter.gd
2025-06-27 14:07:21 +02:00

10 lines
253 B
GDScript

class_name Formatter
const RuleSpacing = preload("./rules/spacing.gd")
const RuleBlankLines = preload("./rules/blank_lines.gd")
func format_code(code: String) -> String:
code = RuleSpacing.apply(code)
code = RuleBlankLines.apply(code)
return code