Skip to content

Commit

Permalink
Change 'class-definitions-order' behavior regarding static class vari…
Browse files Browse the repository at this point in the history
…ables, fixes #331
  • Loading branch information
Scony committed Oct 7, 2024
1 parent e204a49 commit 31ae4f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Changed formatting of some uni-statement lambdas
- Changed formatting of multi-statement, inline lambdas
- Changed formatting of dot-chains containing a lambda(s)
- Changed linter check `class-definitions-order` in a way that static class variables are recommended to be placed just after constants

## [4.3.1] 2024-08-24

Expand Down
2 changes: 1 addition & 1 deletion gdtoolkit/linter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@
"signals",
"enums",
"consts",
"staticvars",
"exports",
"pubvars",
"prvvars",
"onreadypubvars",
"onreadyprvvars",
"staticvars",
"others",
],
# useless-super-delegation
Expand Down
1 change: 1 addition & 0 deletions tests/linter/test_class_checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
signal s
enum { A, B, C }
const X = 1
static var sx
@export_group("Foo")
@export var k = 1
var x = 1
Expand Down

0 comments on commit 31ae4f4

Please sign in to comment.