-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from el-falso/development
bump version to 2.0
- Loading branch information
Showing
16 changed files
with
819 additions
and
133 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
class_name GDLinterIgnore | ||
extends Resource | ||
|
||
@export_group("Name Checks") | ||
@export var _function_name: bool = false | ||
@export var _class_name: bool = false | ||
@export var _sub_class_name: bool = false | ||
@export var _signal_name: bool = false | ||
@export var _class_variable_name: bool = false | ||
@export var _class_load_variable_name: bool = false | ||
@export var _function_variable_name: bool = false | ||
@export var _function_preload_variable_name: bool = false | ||
@export var _function_argument_name: bool = false | ||
@export var _loop_variable_name: bool = false | ||
@export var _enum_name: bool = false | ||
@export var _enum_element_name: bool = false | ||
@export var _constant_name: bool = false | ||
@export var _load_constant_name: bool = false | ||
|
||
@export_group("Basic Checks") | ||
@export var _duplicated_load: bool = false | ||
@export var _expression_not_assigned: bool = false | ||
@export var _unnecessary_pass: bool = false | ||
@export var _unused_argument: bool = false | ||
@export var _comparison_with_itself: bool = false | ||
|
||
@export_group("Class Checks") | ||
@export var _private_method_call: bool = false | ||
@export var _class_definitions_order: bool = false | ||
|
||
@export_group("Design Checks") | ||
@export var _max_public_methods: bool = false | ||
@export var _function_arguments_number: bool = false | ||
|
||
@export_group("Format Checks") | ||
@export var _max_file_lines: bool = false | ||
@export var _trailing_whitespace: bool = false | ||
@export var _max_line_length: bool = false | ||
@export var _mixed_tabs_and_spaces: bool = false | ||
|
||
@export_group("Misc Checks") | ||
@export var _no_elif_return: bool = false | ||
@export var _no_else_return: bool = false | ||
|
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[gd_resource type="Resource" script_class="GDLinterIgnore" load_steps=2 format=3 uid="uid://6ip8eigu30by"] | ||
|
||
[ext_resource type="Script" path="res://addons/gdLinter/Settings/ignore.gd" id="1_8j37n"] | ||
|
||
[resource] | ||
script = ExtResource("1_8j37n") | ||
_function_name = false | ||
_class_name = false | ||
_sub_class_name = false | ||
_signal_name = false | ||
_class_variable_name = false | ||
_class_load_variable_name = false | ||
_function_variable_name = false | ||
_function_preload_variable_name = false | ||
_function_argument_name = false | ||
_loop_variable_name = false | ||
_enum_name = false | ||
_enum_element_name = false | ||
_constant_name = false | ||
_load_constant_name = false | ||
_duplicated_load = false | ||
_expression_not_assigned = false | ||
_unnecessary_pass = false | ||
_unused_argument = false | ||
_comparison_with_itself = false | ||
_private_method_call = false | ||
_class_definitions_order = false | ||
_max_public_methods = false | ||
_function_arguments_number = false | ||
_max_file_lines = false | ||
_trailing_whitespace = false | ||
_max_line_length = false | ||
_mixed_tabs_and_spaces = false | ||
_no_elif_return = false | ||
_no_else_return = false |
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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
@tool | ||
extends MarginContainer | ||
|
||
var _owner: GDLinterIgnoreWindow = owner | ||
|
||
@onready var duplicated_load: CheckBox = %DuplicatedLoad | ||
@onready var expression_not_assigned: CheckBox = %ExpressionNotAssigned | ||
@onready var unnecessary_pass: CheckBox = %UnnecessaryPass | ||
@onready var unused_argument: CheckBox = %UnusedArgument | ||
@onready var comparision_with_itself: CheckBox = %ComparisionWithItself | ||
|
||
|
||
func init() -> void: | ||
_owner = owner | ||
duplicated_load.button_pressed = _owner.ignore.get("_duplicated_load") | ||
expression_not_assigned.button_pressed = _owner.ignore.get("_expression_not_assigned") | ||
unnecessary_pass.button_pressed = _owner.ignore.get("_unnecessary_pass") | ||
unused_argument.button_pressed = _owner.ignore.get("_unused_argument") | ||
comparision_with_itself.button_pressed = _owner.ignore.get("_comparison_with_itself") | ||
|
||
|
||
func _on_duplicated_load_toggled(toggled_on: bool) -> void: | ||
_owner.ignore.set("_duplicated_load", toggled_on) | ||
|
||
|
||
func _on_expression_not_assigned_toggled(toggled_on: bool) -> void: | ||
_owner.ignore.set("_expression_not_assigned", toggled_on) | ||
|
||
|
||
func _on_unnecessary_pass_toggled(toggled_on: bool) -> void: | ||
_owner.ignore.set("_unnecessary_pass", toggled_on) | ||
|
||
|
||
func _on_unused_argument_toggled(toggled_on: bool) -> void: | ||
_owner.ignore.set("_unused_argument", toggled_on) | ||
|
||
|
||
func _on_comparision_with_itself_toggled(toggled_on: bool) -> void: | ||
_owner.ignore.set("_comparison_with_itself", toggled_on) |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@tool | ||
extends MarginContainer | ||
|
||
var _owner: GDLinterIgnoreWindow = owner | ||
|
||
@onready var private_method_call: CheckBox = %PrivateMethodCall | ||
@onready var class_definition_order: CheckBox = %ClassDefinitionOrder | ||
|
||
|
||
func init() -> void: | ||
_owner = owner | ||
private_method_call.button_pressed = _owner.ignore.get("_private_method_call") | ||
class_definition_order.button_pressed = _owner.ignore.get("_class_definitions_order") | ||
|
||
|
||
func _on_private_method_call_toggled(toggled_on: bool) -> void: | ||
_owner.ignore.set("_private_method_call", toggled_on) | ||
|
||
|
||
func _on_class_definition_order_toggled(toggled_on: bool) -> void: | ||
_owner.ignore.set("_class_definitions_order", toggled_on) |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
@tool | ||
extends MarginContainer | ||
|
||
var _owner: GDLinterIgnoreWindow = owner | ||
|
||
@onready var max_public_methods: CheckBox = %MaxPublicMethods | ||
@onready var function_argument_number: CheckBox = %FunctionArgumentNumber | ||
|
||
|
||
func init() -> void: | ||
_owner = owner | ||
max_public_methods.button_pressed = _owner.ignore.get("_max_public_methods") | ||
function_argument_number.button_pressed = _owner.ignore.get("_function_arguments_number") | ||
|
||
|
||
func _on_max_public_methods_toggled(toggled_on: bool) -> void: | ||
_owner.ignore.set("_max_public_methods", toggled_on) | ||
|
||
|
||
func _on_function_argument_number_toggled(toggled_on: bool) -> void: | ||
_owner.ignore.set("_function_arguments_number", toggled_on) |
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
Oops, something went wrong.