Skip to content

Commit

Permalink
Only use exclude to exclude lines with words that result in false pos…
Browse files Browse the repository at this point in the history
…itives for codespell.
  • Loading branch information
hsorby committed May 8, 2024
1 parent 79015eb commit 6470f55
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .codespellexclude
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@
<variable units="dimensionless" name="ths"/>
auto ue = std::any_cast<libcellml::UnitsItemPtr>(expectedItems[id][index].second);
* Fixed typos: occurence -> occurRence by `@agarny <https://github.com/agarny>`_ [`#794 <https://github.com/cellml/libcellml/pull/794>`_].
std::vector<size_t> mErrors;
mErrors.push_back(index);
mErrors.erase(mErrors.begin() + ptrdiff_t(index));
mIssues.erase(mIssues.begin() + ptrdiff_t(mErrors.at(index)));
mErrors.clear();
if (index < pFunc()->mErrors.size()) {
issue = pFunc()->mIssues.at(pFunc()->mErrors.at(index));
return pFunc()->mErrors.size();
1 change: 0 additions & 1 deletion .github/workflows/spell-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ jobs:
check_filenames: true
skip: ./.git,./tests/gtest/include/gtest/gtest.h,./tests/gtest/src/gtest-all.cc,./src/dtds/mathml2/*
exclude_file: .codespellexclude
ignore_words_list: mErrors

0 comments on commit 6470f55

Please sign in to comment.