Skip to content

Fix spelling typos flagged by misspell linter - #33780

Open
adrastogi wants to merge 1 commit into
mainfrom
adityar-microsoft-fix-misspell-typos
Open

adrastogi wants to merge 1 commit into
mainfrom
adityar-microsoft-fix-misspell-typos

Conversation

@adrastogi

Copy link
Copy Markdown
Contributor

Description

Fixes the 37 genuine spelling typos that the misspell linter (golangci/misspell v0.8.0, run by reviewdog/action-misspell in .github/workflows/lint.yml) reports on main under the updated linter configuration. Every change is limited to a comment, docstring, string literal, or local identifier:

  • Comments / docs: automaticly, overriden, expecially, substract, accomodate, allignment, similiar, seperated, succesful, varient, compliation, Explaination, stlye, neccessary, specifiying, verison, implmented, initalizer, aggresive
  • String literal: TensorRT EP error message Unkown or unsupported preview feature → Unknown ... (no test asserts on this text)
  • Local identifiers (renamed consistently; no other references in the repo): avaliable_smem_size → available_smem_size (function parameter), redundent_clip_node → redundant_clip_node, writen → written
  • Test output: Hang occured → Hang occurred

No functional changes.

Validation:

  • misspell.exe -i nto,spectre,interm <all tracked files except package-lock.json, docfx.vendor.js, csharp/ApiDocs/_exported_templates> (misspell v0.8.0): 37 findings before → 0 findings after.
  • lintrunner <changed files>: passed ("No lint issues").

Motivation and Context

Pairs with #33779, which reconfigures the misspell step (no locale, ignore nto,spectre,interm, exclude lockfiles/vendored templates) and makes the PR check blocking. With both PRs merged, main is clean for the misspell linter.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 31, 2026 01:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The spelling-cleanup change has no active review issues.

No open issues 🎉

What changed in this PR

This PR corrects spelling across ONNX Runtime to support the blocking misspell check introduced by companion PR #33779. Changes preserve execution logic and public interfaces.

Changes:

  • Correct typos in comments, documentation, and docstrings.
  • Fix spelling in a TensorRT error message and Python test output.
  • Consistently rename misspelled local variables and function parameters.
File Description
pyproject.toml Corrects a lint-configuration comment.
onnxruntime/​test/​shared_lib/​test_model_builder_api.cc Corrects “initializer” in a helper comment.
onnxruntime/​test/​python/​onnxruntime_test_python_ort_parallel.py Corrects the hang-detection output message.
onnxruntime/​test/​framework/​allocation_planner_test.cc Corrects a free-list comment.
onnxruntime/​python/​tools/​transformers/​models/​stable_diffusion/​README.md Corrects “version” in setup documentation.
onnxruntime/​python/​tools/​qnn/​preprocess.py Corrects an argument docstring.
onnxruntime/​core/​providers/​webnn/​builders/​impl/​expand_op_builder.cc Corrects a constant-initializer comment.
onnxruntime/​core/​providers/​webgpu/​shader_helper.h Corrects shader-generation comments.
onnxruntime/​core/​providers/​webgpu/​program_manager.cc Corrects cache and string-format comments.
onnxruntime/​core/​providers/​vitisai/​vitisai_execution_provider.h Corrects a compilation-related comment.
onnxruntime/​core/​providers/​tensorrt/​tensorrt_execution_provider.cc Corrects “Unknown” in a preview-feature error.
onnxruntime/​core/​providers/​qnn/​builder/​opbuilder/​lstm_op_builder.cc Corrects spelling in LSTM output comments.
onnxruntime/​core/​providers/​partitioning_utils.cc Renames the redundant-clip local variable consistently.
onnxruntime/​core/​providers/​migraphx/​migraphx_provider_factory.cc Renames a local character-count variable to written.
onnxruntime/​core/​providers/​cuda/​nn/​conv.cc Corrects a fusion comment.
onnxruntime/​core/​providers/​cuda/​nn/​conv_transpose.cc Corrects padding and fusion comments.
onnxruntime/​core/​providers/​cpu/​ml/​tree_ensemble_attribute.h Corrects a membership-value comment.
onnxruntime/​core/​providers/​coreml/​builders/​impl/​normalization_op_builder.cc Corrects a normalization-attribute comment.
onnxruntime/​core/​mlas/​lib/​qlutgemm.cpp Corrects “alignment” in buffer documentation.
onnxruntime/​core/​graph/​graph_utils.h Corrects initializer-copy documentation.
onnxruntime/​contrib_ops/​webgpu/​moe/​final_mix.wgsl.template Corrects a token-offset comment.
onnxruntime/​contrib_ops/​cuda/​llm/​cutlass_extensions/​gemm/​kernel/​fused_moe_kernel.cuh Corrects the available-shared-memory parameter name.
onnxruntime/​contrib_ops/​cuda/​llm/​cutlass_extensions/​gemm/​kernel/​fused_moe_kernel_traits.cuh Applies the same parameter spelling correction.
onnxruntime/​contrib_ops/​cuda/​fused_conv.cc Corrects a padding comment.
include/​onnxruntime/​ep/​adapter/​kernel_registry.h Corrects a control-flow kernel comment.
include/​onnxruntime/​core/​providers/​cann/​cann_provider_options.h Corrects a subgraph-generation comment.

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants