el-falso / gdlinter

This plugin runs `gdlint` on save to automatically lint your GD Script as you code.
https://godotengine.org/asset-library/asset/2520
MIT License
15 stars 5 forks source link

Adding max_returns rule #14

Closed pongsixtyfour closed 2 months ago

pongsixtyfour commented 3 months ago

max_rules trigger on gdscript_formatter plugin and gdlinter threw an error not knowing about the rule.

GTcreyon commented 2 months ago

A description needs to be added to error_descriptions.gd too, I think.

el-falso commented 2 months ago

Thank you for making me aware of this, seems like their Wiki wasn't up to date when I created this addon nor it is now. But I found the mentioned rule in the source code. I will merge this PR in the next days, maybe I miss some more rules. Time for a new release