-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GD-139: Do code cleanup to remove errors and warnings (#141)
# Why By default addons are excluded from code validation, after inclusion the plugin displays over 1800 warnings and some errors ![image](https://user-images.githubusercontent.com/347037/223846970-74dc362b-dcd2-48a0-9a6b-7137e4c1671b.png) # What - fix the errors - reduce the warnings - update inline documentation - apply formatting rules # Open issues -Only 23 warnings left, covered by the listed Godot issues ![image](https://user-images.githubusercontent.com/347037/224134816-2f3729bd-4aac-4cc5-af6d-3934b49a1b2f.png) - invalid warnings about enum [74593](godotengine/godot#74593) - INT_AS_ENUM_WITHOUT_CAST - INT_AS_ENUM_WITHOUT_MATCH - disable warnings not work [56592](godotengine/godot#56592) - shadowed_global_identifier
- Loading branch information
1 parent
f25c7dd
commit 5f7bcbf
Showing
149 changed files
with
2,109 additions
and
1,378 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,30 @@ | ||
## A fuzzer implementation to provide default implementation | ||
class_name Fuzzers | ||
extends Resource | ||
|
||
## Generates an random string with min/max length and given charset | ||
static func rand_str(min_length :int, max_length, charset := StringFuzzer.DEFAULT_CHARSET) -> Fuzzer: | ||
return StringFuzzer.new(min_length, max_length, charset) | ||
|
||
# Generates an random integer in a range form to | ||
|
||
## Generates an random integer in a range form to | ||
static func rangei(from: int, to: int) -> Fuzzer: | ||
return IntFuzzer.new(from, to) | ||
|
||
# Generates an random Vector2 in a range form to | ||
|
||
## Generates an random Vector2 in a range form to | ||
static func rangev2(from: Vector2, to: Vector2) -> Fuzzer: | ||
return Vector2Fuzzer.new(from, to) | ||
|
||
# Generates an random Vector3 in a range form to | ||
|
||
## Generates an random Vector3 in a range form to | ||
static func rangev3(from: Vector3, to: Vector3) -> Fuzzer: | ||
return Vector3Fuzzer.new(from, to) | ||
|
||
# Generates an integer in a range form to that can be divided exactly by 2 | ||
## Generates an integer in a range form to that can be divided exactly by 2 | ||
static func eveni(from: int, to: int) -> Fuzzer: | ||
return IntFuzzer.new(from, to, IntFuzzer.EVEN) | ||
|
||
# Generates an integer in a range form to that cannot be divided exactly by 2 | ||
## Generates an integer in a range form to that cannot be divided exactly by 2 | ||
static func oddi(from: int, to: int) -> Fuzzer: | ||
return IntFuzzer.new(from, to, IntFuzzer.ODD) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,41 @@ | ||
# An Assertion Tool to verify boolean values | ||
## An Assertion Tool to verify boolean values | ||
class_name GdUnitBoolAssert | ||
extends GdUnitAssert | ||
|
||
|
||
# Verifies that the current value is null. | ||
## Verifies that the current value is null. | ||
func is_null() -> GdUnitBoolAssert: | ||
return self | ||
|
||
# Verifies that the current value is not null. | ||
|
||
## Verifies that the current value is not null. | ||
func is_not_null() -> GdUnitBoolAssert: | ||
return self | ||
|
||
# Verifies that the current value is equal to the given one. | ||
|
||
## Verifies that the current value is equal to the given one. | ||
@warning_ignore("unused_parameter") | ||
func is_equal(expected) -> GdUnitBoolAssert: | ||
return self | ||
|
||
# Verifies that the current value is not equal to the given one. | ||
|
||
## Verifies that the current value is not equal to the given one. | ||
@warning_ignore("unused_parameter") | ||
func is_not_equal(expected) -> GdUnitBoolAssert: | ||
return self | ||
|
||
# Verifies that the current value is true. | ||
|
||
## Verifies that the current value is true. | ||
func is_true() -> GdUnitBoolAssert: | ||
return self | ||
|
||
# Verifies that the current value is false. | ||
|
||
## Verifies that the current value is false. | ||
func is_false() -> GdUnitBoolAssert: | ||
return self | ||
|
||
|
||
## Overrides the default failure message by given custom message. | ||
@warning_ignore("unused_parameter") | ||
func override_failure_message(message :String) -> GdUnitBoolAssert: | ||
return self |
Oops, something went wrong.