Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Commit

Permalink
Added gdlint to hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Oberaigner committed Mar 13, 2024
1 parent d2bece0 commit 986fd7c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ repos:
language: system
types: [gdscript]
pass_filenames: true
- id: gdlint
name: gdlint
description: lint gdscript files
entry: gdlint
language: system
types: [gdscript]
pass_filenames: true
- id: fmt
name: fmt
description: Format files with cargo fmt.
Expand Down
2 changes: 1 addition & 1 deletion godot/addons/format_on_save/format_on_save.gd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
class_name FormatOnSave extends EditorPlugin

const SUCCESS: int = 0
const AUTO_RELOAD_SETTING: String = "text_editor/behavior/files/auto_reload_scripts_on_external_change"
const AUTO_RELOAD_SETTING = "text_editor/behavior/files/auto_reload_scripts_on_external_change"
var original_auto_reload_setting: bool


Expand Down
2 changes: 1 addition & 1 deletion godot/src/AddStatement.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ func _ready():


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
func _process(_delta):
pass
2 changes: 1 addition & 1 deletion godot/src/TestAPI.gd
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ func _ready():


# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(delta):
func _process(_delta):
print(API.damage(2))

0 comments on commit 986fd7c

Please sign in to comment.