Cleanup: spelling & duplicate terms (check_spelling.py)

This commit is contained in:
Campbell Barton
2025-05-30 10:59:58 +10:00
parent 9ecee59ee7
commit 50f3240abd
16 changed files with 26 additions and 26 deletions

View File

@@ -989,7 +989,7 @@ endif()
option(WITH_STRSIZE_DEBUG "\ option(WITH_STRSIZE_DEBUG "\
Ensure string operations on fixed size buffers \ Ensure string operations on fixed size buffers \
(works well with with \"WITH_COMPILER_ASAN\" & valgrind to detect incorrect buffer size arguments)" (works well with \"WITH_COMPILER_ASAN\" & valgrind to detect incorrect buffer size arguments)"
OFF) OFF)
mark_as_advanced(WITH_STRSIZE_DEBUG) mark_as_advanced(WITH_STRSIZE_DEBUG)

View File

@@ -823,7 +823,7 @@ def _stale_pending_check_and_remove_once():
if stale_handle.is_modified(): if stale_handle.is_modified():
stale_handle.state_store(check_exists=False) stale_handle.state_store(check_exists=False)
except Exception as ex: except Exception as ex:
print("Unexpected error clearing stale data, this is is a bug!", str(ex)) print("Unexpected error clearing stale data, this is a bug!", str(ex))
if is_empty: if is_empty:
try: try:
@@ -1126,7 +1126,7 @@ def _initialize_extensions_compat_ensure_up_to_date(extensions_directory, extens
if _extension_compat_cache_update_needed(cache_data, blender_id, extensions_enabled, print_debug): if _extension_compat_cache_update_needed(cache_data, blender_id, extensions_enabled, print_debug):
cache_data = None cache_data = None
except Exception: except Exception:
print("Extension: unexpected error reading cache, this is is a bug! (regenerating)") print("Extension: unexpected error reading cache, this is a bug! (regenerating)")
import traceback import traceback
traceback.print_exc() traceback.print_exc()
cache_data = None cache_data = None
@@ -1217,7 +1217,7 @@ def _initialize_extensions_compat_data(
print_debug, print_debug,
) )
except Exception: except Exception:
print("Extension: unexpected error detecting cache, this is is a bug!") print("Extension: unexpected error detecting cache, this is a bug!")
import traceback import traceback
traceback.print_exc() traceback.print_exc()
updated = False updated = False
@@ -1236,7 +1236,7 @@ def _initialize_extensions_compat_data(
error_fn=error_fn, error_fn=error_fn,
) )
except Exception: except Exception:
print("Extension: unexpected error updating wheels, this is is a bug!") print("Extension: unexpected error updating wheels, this is a bug!")
import traceback import traceback
traceback.print_exc() traceback.print_exc()

View File

@@ -232,7 +232,7 @@ void BKE_report_path_template_errors(ReportList *reports,
* Format the given floating point value with the provided format specifier. The format specifier * Format the given floating point value with the provided format specifier. The format specifier
* is e.g. the "##.###" in "{name:##.###}". * is e.g. the "##.###" in "{name:##.###}".
* *
* \return Nullopt if the format specifier is invalid. * \return #std::nullopt if the format specifier is invalid.
*/ */
std::optional<std::string> BKE_path_template_format_float(blender::StringRef format_specifier, std::optional<std::string> BKE_path_template_format_float(blender::StringRef format_specifier,
double value); double value);

View File

@@ -1171,7 +1171,7 @@ Mesh *mesh_get_eval_deform(Depsgraph *depsgraph,
/* There is no such a concept as deformed mesh in edit mode. /* There is no such a concept as deformed mesh in edit mode.
* Explicitly disallow this request so that the evaluated result is not modified with evaluated * Explicitly disallow this request so that the evaluated result is not modified with evaluated
* result from the wrong mode. */ * result from the wrong mode. */
BLI_assert_msg(0, "Request of derformed mesh of object which is in edit mode"); BLI_assert_msg(0, "Request of deformed mesh of object which is in edit mode");
return nullptr; return nullptr;
} }

View File

@@ -1135,7 +1135,7 @@ static void drw_callbacks_pre_scene_2D(DRWContext &draw_ctx)
DRW_submission_end(); DRW_submission_end();
} }
/* State is reset later at the begining of `draw_ctx.engines_draw_scene()`. */ /* State is reset later at the beginning of `draw_ctx.engines_draw_scene()`. */
} }
static void drw_callbacks_post_scene_2D(DRWContext &draw_ctx, View2D &v2d) static void drw_callbacks_post_scene_2D(DRWContext &draw_ctx, View2D &v2d)

View File

@@ -179,8 +179,8 @@ void RIGIDBODY_OT_world_export(wmOperatorType *ot)
ot->idname = "RIGIDBODY_OT_world_export"; ot->idname = "RIGIDBODY_OT_world_export";
ot->name = "Export Rigid Body World"; ot->name = "Export Rigid Body World";
ot->description = ot->description =
"Export Rigid Body world to the simulator's own fileformat (i.e. '.bullet' for Bullet " "Export Rigid Body world to the simulator's own file-format "
"Physics)"; "(i.e. '.bullet' for Bullet Physics)";
/* callbacks */ /* callbacks */
ot->invoke = rigidbody_world_export_invoke; ot->invoke = rigidbody_world_export_invoke;

View File

@@ -5136,7 +5136,7 @@ static void SCREEN_OT_header_toggle_menus(wmOperatorType *ot)
/* identifiers */ /* identifiers */
ot->name = "Expand/Collapse Header Menus"; ot->name = "Expand/Collapse Header Menus";
ot->idname = "SCREEN_OT_header_toggle_menus"; ot->idname = "SCREEN_OT_header_toggle_menus";
ot->description = "Expand or collapse the header pulldown menus"; ot->description = "Expand or collapse the header pull-down menus";
/* API callbacks. */ /* API callbacks. */
ot->exec = header_toggle_menus_exec; ot->exec = header_toggle_menus_exec;

View File

@@ -769,7 +769,7 @@ static wmOperatorStatus sample_color_modal(bContext *C, wmOperator *op, const wm
if (!data->sample_palette) { if (!data->sample_palette) {
data->sample_palette = true; data->sample_palette = true;
sample_color_update_header(data, C); sample_color_update_header(data, C);
BKE_report(op->reports, RPT_INFO, "Sampling color for pallette"); BKE_report(op->reports, RPT_INFO, "Sampling color for palette");
} }
WM_event_add_notifier(C, NC_BRUSH | NA_EDITED, brush); WM_event_add_notifier(C, NC_BRUSH | NA_EDITED, brush);
} }

View File

@@ -783,7 +783,7 @@ class Preprocessor {
const string ns_keyword = "namespace "; const string ns_keyword = "namespace ";
size_t pos = out_str.rfind(ns_keyword, out_str.size() - parent_scope.size()); size_t pos = out_str.rfind(ns_keyword, out_str.size() - parent_scope.size());
if (pos == string::npos) { if (pos == string::npos) {
report_error(match, "Couldn't find `namespace` keyword at begining of scope."); report_error(match, "Couldn't find `namespace` keyword at beginning of scope.");
break; break;
} }
size_t start = pos + ns_keyword.size(); size_t start = pos + ns_keyword.size();

View File

@@ -8336,8 +8336,8 @@ static void def_cmp_color_spill(BlenderRNA * /*brna*/, StructRNA *srna)
"rna_node_property_to_input_setter<bool, node_input_use_spill_strength>"); "rna_node_property_to_input_setter<bool, node_input_use_spill_strength>");
RNA_def_property_ui_text(prop, RNA_def_property_ui_text(prop,
"Unspill", "Unspill",
"Compensate all channels (differently) by hand. (Deprecated: Use Use " "Compensate all channels (differently) by hand. "
"Spill Strength input instead.)"); "(Deprecated: Use \"Use Spill Strength\" input instead.)");
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
prop = RNA_def_property(srna, "unspill_red", PROP_FLOAT, PROP_NONE); prop = RNA_def_property(srna, "unspill_red", PROP_FLOAT, PROP_NONE);
@@ -9472,7 +9472,7 @@ static void def_cmp_zcombine(BlenderRNA * /*brna*/, StructRNA *srna)
RNA_def_property_ui_text(prop, RNA_def_property_ui_text(prop,
"Use Alpha", "Use Alpha",
"Take alpha channel into account when doing the Z operation. " "Take alpha channel into account when doing the Z operation. "
"(Deprecated: Use Use Alpha input instead.)"); "(Deprecated: Use \"Use Alpha\" input instead.)");
RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update");
prop = RNA_def_property(srna, "use_antialias_z", PROP_BOOLEAN, PROP_NONE); prop = RNA_def_property(srna, "use_antialias_z", PROP_BOOLEAN, PROP_NONE);

View File

@@ -173,7 +173,7 @@ static constexpr auto PROP_PROPORTIONAL_DESCR = "";
static constexpr auto PROP_TEXTEDIT_UPDATE_DESCR = ""; static constexpr auto PROP_TEXTEDIT_UPDATE_DESCR = "";
static constexpr auto PROP_PATH_OUTPUT_DESCR = ""; static constexpr auto PROP_PATH_OUTPUT_DESCR = "";
static constexpr auto PROP_PATH_RELATIVE_DESCR = static constexpr auto PROP_PATH_RELATIVE_DESCR =
"This path supports relative prefix \"//\" which is expanded the the directory " "This path supports relative prefix \"//\" which is expanded the directory "
"where the current \".blend\" file is located."; "where the current \".blend\" file is located.";
static constexpr auto PROP_PATH_SUPPORTS_TEMPLATES_DESCR = static constexpr auto PROP_PATH_SUPPORTS_TEMPLATES_DESCR =
"This path supports the \"{variable_name}\" template syntax, which substitutes the " "This path supports the \"{variable_name}\" template syntax, which substitutes the "

View File

@@ -1677,8 +1677,8 @@ static void rna_def_ui_layout(BlenderRNA *brna)
{int(blender::ui::EmbossType::Pulldown), {int(blender::ui::EmbossType::Pulldown),
"PULLDOWN_MENU", "PULLDOWN_MENU",
0, 0,
"Pulldown Menu", "Pull-down Menu",
"Draw pulldown menu style"}, "Draw pull-down menu style"},
{int(blender::ui::EmbossType::PieMenu), {int(blender::ui::EmbossType::PieMenu),
"RADIAL_MENU", "RADIAL_MENU",
0, 0,

View File

@@ -5272,7 +5272,7 @@ static void rna_def_userdef_view(BlenderRNA *brna)
RNA_def_property_ui_text( RNA_def_property_ui_text(
prop, prop,
"Open on Mouse Over", "Open on Mouse Over",
"Open menu buttons and pulldowns automatically when the mouse is hovering"); "Open menu buttons and pull-downs automatically when the mouse is hovering");
prop = RNA_def_property(srna, "open_toplevel_delay", PROP_INT, PROP_NONE); prop = RNA_def_property(srna, "open_toplevel_delay", PROP_INT, PROP_NONE);
RNA_def_property_int_sdna(prop, nullptr, "menuthreshold1"); RNA_def_property_int_sdna(prop, nullptr, "menuthreshold1");

View File

@@ -369,7 +369,7 @@ static std::optional<ProcessedPythonCompatibleFormat> preprocess_python_compatib
{ {
const FormatPatternInfo *allowed_pattern = get_pattern_by_type(type); const FormatPatternInfo *allowed_pattern = get_pattern_by_type(type);
if (!allowed_pattern) { if (!allowed_pattern) {
/* The type can't be formatted. The user shouln't be able to trigger this error but nice to /* The type can't be formatted. The user shouldn't be able to trigger this error but nice to
* handle it anyway. */ * handle it anyway. */
if (!r_error) { if (!r_error) {
r_error = fmt::format(fmt::runtime(TIP_("Type \"{}\" can't be formatted")), type.name()); r_error = fmt::format(fmt::runtime(TIP_("Type \"{}\" can't be formatted")), type.name());
@@ -480,7 +480,7 @@ static void format_with_fmt(const fmt::format_string<> format,
} }
} }
catch (const fmt::format_error &error) { catch (const fmt::format_error &error) {
/* Invalid patterns should have been caughed before already. */ /* Invalid patterns should have been caught before already. */
BLI_assert_unreachable(); BLI_assert_unreachable();
} }
}); });

View File

@@ -1113,8 +1113,8 @@ static int arg_handle_command_set(int argc, const char **argv, void *data)
static const char arg_handle_disable_depsgraph_on_file_load_doc[] = static const char arg_handle_disable_depsgraph_on_file_load_doc[] =
"\n" "\n"
"\tBackround mode: Do not systematically build and evaluate ViewLayers' dependency graphs\n" "\tBackground mode: Do not systematically build and evaluate ViewLayers' dependency graphs\n"
"\twhen loading a blendfile in background mode (`-b` or `-c` options).\n" "\twhen loading a blend-file in background mode (`-b` or `-c` options).\n"
"\n" "\n"
"\tScripts requiring evaluated data then need to explicitly ensure that\n" "\tScripts requiring evaluated data then need to explicitly ensure that\n"
"\tan evaluated depsgraph is available\n" "\tan evaluated depsgraph is available\n"
@@ -1132,7 +1132,7 @@ static int arg_handle_disable_depsgraph_on_file_load(int /*argc*/,
static const char arg_handle_disable_liboverride_auto_resync_doc[] = static const char arg_handle_disable_liboverride_auto_resync_doc[] =
"\n" "\n"
"\tDo not perform library override automatic resync when loading a new blendfile.\n" "\tDo not perform library override automatic resync when loading a new blend-file.\n"
"\n" "\n"
"\tNOTE: this is an alternative way to get the same effect as when setting the\n" "\tNOTE: this is an alternative way to get the same effect as when setting the\n"
"\t`No Override Auto Resync` User Preferences Debug option."; "\t`No Override Auto Resync` User Preferences Debug option.";

View File

@@ -311,7 +311,7 @@ SECTIONS = (
"Bi-directional text support (right-to-left) for Arabic & Hebrew script. " "Bi-directional text support (right-to-left) for Arabic & Hebrew script. "
"Intended for complex text shaping (not yet supported)."), "Intended for complex text shaping (not yet supported)."),
("gmp", "Arbitrary precision arithmetic library."), ("gmp", "Arbitrary precision arithmetic library."),
("harfbuzz", "Text shaping engine for for complex script."), ("harfbuzz", "Text shaping engine for complex script."),
("haru", "PDF generation library."), ("haru", "PDF generation library."),
("hiprt", "Ray-tracing for AMD GPU's. Used by Cycles."), ("hiprt", "Ray-tracing for AMD GPU's. Used by Cycles."),
("imath", "Library used by OpenEXR image-format."), ("imath", "Library used by OpenEXR image-format."),