Browse Source

Fix various typos with codespell

And include #72377.

Co-authored-by: Wiktor Kocielski <[email protected]>
Rémi Verschelde 2 years ago
parent
commit
312011fade

+ 1 - 1
doc/classes/Dictionary.xml

@@ -286,7 +286,7 @@
 		<method name="make_read_only">
 		<method name="make_read_only">
 			<return type="void" />
 			<return type="void" />
 			<description>
 			<description>
-				Makes the dictionary read-only, i.e. disabled modifying of the dictionary's contents. Does not apply to nested content, e.g. content of nested dicitonaries.
+				Makes the dictionary read-only, i.e. disables modification of the dictionary's contents. Does not apply to nested content, e.g. content of nested dictionaries.
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="merge">
 		<method name="merge">

+ 1 - 1
doc/classes/StreamPeerTLS.xml

@@ -25,7 +25,7 @@
 			<param index="1" name="common_name" type="String" />
 			<param index="1" name="common_name" type="String" />
 			<param index="2" name="client_options" type="TLSOptions" default="null" />
 			<param index="2" name="client_options" type="TLSOptions" default="null" />
 			<description>
 			<description>
-				Connects to a peer using an underlying [StreamPeer] [param stream] and verifying the remote certificate is correcly signed for the given [param common_name]. You can pass the optional [param client_options] parameter to customize the trusted certification authorities, or disable the common name verification. See [method TLSOptions.client] and [method TLSOptions.client_unsafe].
+				Connects to a peer using an underlying [StreamPeer] [param stream] and verifying the remote certificate is correctly signed for the given [param common_name]. You can pass the optional [param client_options] parameter to customize the trusted certification authorities, or disable the common name verification. See [method TLSOptions.client] and [method TLSOptions.client_unsafe].
 			</description>
 			</description>
 		</method>
 		</method>
 		<method name="disconnect_from_stream">
 		<method name="disconnect_from_stream">

+ 1 - 1
editor/connections_dialog.cpp

@@ -354,7 +354,7 @@ void ConnectDialog::_update_method_tree() {
 		return;
 		return;
 	}
 	}
 
 
-	// Get methods from each class in the heirarchy.
+	// Get methods from each class in the hierarchy.
 	StringName current_class = target->get_class_name();
 	StringName current_class = target->get_class_name();
 	do {
 	do {
 		TreeItem *class_item = method_tree->create_item(root_item);
 		TreeItem *class_item = method_tree->create_item(root_item);

+ 2 - 2
editor/editor_node.cpp

@@ -6206,7 +6206,7 @@ void EditorNode::reload_instances_with_path_in_edited_scenes(const String &p_ins
 						List<PropertyInfo> pinfo;
 						List<PropertyInfo> pinfo;
 						modifiable_node->get_property_list(&pinfo);
 						modifiable_node->get_property_list(&pinfo);
 
 
-						// Get names of all valid property names (TODO: make this more efficent).
+						// Get names of all valid property names (TODO: make this more efficient).
 						List<String> property_names;
 						List<String> property_names;
 						for (const PropertyInfo &E2 : pinfo) {
 						for (const PropertyInfo &E2 : pinfo) {
 							if (E2.usage & PROPERTY_USAGE_STORAGE) {
 							if (E2.usage & PROPERTY_USAGE_STORAGE) {
@@ -6224,7 +6224,7 @@ void EditorNode::reload_instances_with_path_in_edited_scenes(const String &p_ins
 						for (const ConnectionWithNodePath &E2 : E.value.connections_to) {
 						for (const ConnectionWithNodePath &E2 : E.value.connections_to) {
 							Connection conn = E2.connection;
 							Connection conn = E2.connection;
 
 
-							// Get the node the callable is targetting.
+							// Get the node the callable is targeting.
 							Node *target_node = cast_to<Node>(conn.callable.get_object());
 							Node *target_node = cast_to<Node>(conn.callable.get_object());
 
 
 							// If the callable object no longer exists or is marked for deletion,
 							// If the callable object no longer exists or is marked for deletion,

+ 1 - 1
editor/input_event_configuration_dialog.cpp

@@ -201,7 +201,7 @@ void InputEventConfigurationDialog::_on_listen_input_changed(const Ref<InputEven
 	}
 	}
 
 
 	if (k.is_valid()) {
 	if (k.is_valid()) {
-		k->set_pressed(false); // To avoid serialisation of 'pressed' property - doesn't matter for actions anyway.
+		k->set_pressed(false); // To avoid serialization of 'pressed' property - doesn't matter for actions anyway.
 		if (key_mode->get_selected_id() == KEYMODE_KEYCODE) {
 		if (key_mode->get_selected_id() == KEYMODE_KEYCODE) {
 			k->set_physical_keycode(Key::NONE);
 			k->set_physical_keycode(Key::NONE);
 			k->set_key_label(Key::NONE);
 			k->set_key_label(Key::NONE);

+ 1 - 1
misc/scripts/codespell.sh

@@ -1,5 +1,5 @@
 #!/bin/sh
 #!/bin/sh
-SKIP_LIST="./.*,./bin,.platform/web/node_modules,./platform/android/java/lib/src/com,./thirdparty,*.gen.*,*.po,*.pot,*.rc,package-lock.json,./core/string/locales.h,./AUTHORS.md,./COPYRIGHT.txt,./DONORS.md,./misc/dist/linux/org.godotengine.Godot.desktop,./misc/scripts/codespell.sh"
+SKIP_LIST="./.*,./bin,./editor/project_converter_3_to_4.cpp,./platform/web/node_modules,./platform/android/java/lib/src/com,./thirdparty,*.gen.*,*.po,*.pot,*.rc,package-lock.json,./core/string/locales.h,./AUTHORS.md,./COPYRIGHT.txt,./DONORS.md,./misc/dist/linux/org.godotengine.Godot.desktop,./misc/scripts/codespell.sh"
 IGNORE_LIST="alo,ba,childs,complies,curvelinear,doubleclick,expct,fave,findn,gird,gud,inout,lod,nd,numer,ois,readded,ro,sav,statics,te,varius,varn,wan"
 IGNORE_LIST="alo,ba,childs,complies,curvelinear,doubleclick,expct,fave,findn,gird,gud,inout,lod,nd,numer,ois,readded,ro,sav,statics,te,varius,varn,wan"
 
 
 codespell -w -q 3 -S "${SKIP_LIST}" -L "${IGNORE_LIST}" --builtin "clear,rare,en-GB_to_en-US"
 codespell -w -q 3 -S "${SKIP_LIST}" -L "${IGNORE_LIST}" --builtin "clear,rare,en-GB_to_en-US"

+ 1 - 1
modules/enet/enet_multiplayer_peer.cpp

@@ -363,7 +363,7 @@ Error ENetMultiplayerPeer::put_packet(const uint8_t *p_buffer, int p_buffer_size
 
 
 #ifdef DEBUG_ENABLED
 #ifdef DEBUG_ENABLED
 	if ((packet_flags & ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT) && p_buffer_size > ENET_HOST_DEFAULT_MTU) {
 	if ((packet_flags & ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT) && p_buffer_size > ENET_HOST_DEFAULT_MTU) {
-		WARN_PRINT_ONCE(vformat("Sending %d bytes unrealiably which is above the MTU (%d), this will result in higher packet loss", p_buffer_size, ENET_HOST_DEFAULT_MTU));
+		WARN_PRINT_ONCE(vformat("Sending %d bytes unreliably which is above the MTU (%d), this will result in higher packet loss", p_buffer_size, ENET_HOST_DEFAULT_MTU));
 	}
 	}
 #endif
 #endif
 
 

+ 1 - 1
modules/mono/utils/naming_utils.cpp

@@ -109,7 +109,7 @@ Vector<String> _split_pascal_case(const String &p_identifier) {
 				if (!is_digit(p_identifier[i])) {
 				if (!is_digit(p_identifier[i])) {
 					// These conditions only apply when the separator is not a digit.
 					// These conditions only apply when the separator is not a digit.
 					if (i - current_part_start == 1) {
 					if (i - current_part_start == 1) {
-						// Upper character was only the beggining of a word.
+						// Upper character was only the beginning of a word.
 						prev_was_upper = false;
 						prev_was_upper = false;
 						continue;
 						continue;
 					}
 					}