Fix typo from occured to occurred#19485
Open
BaseMax wants to merge 1 commit intogithub:mainfrom
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This pull request fixes a spelling mistake by replacing "occured" with "occurred" in typo mappings and test files.
- Updated typo mapping in the CodeQL TypoDatabase
- Corrected spelling in JavaScript test file
- Corrected spelling in JavaDoc comments in the Java stub file
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| shared/typos/codeql/typos/TypoDatabase.qll | Updated typo mapping for the "occured" typo |
| javascript/ql/test/query-tests/Security/CWE-912/tst.js | Corrected static error message strings |
| java/ql/test/stubs/jabsorb-1.3.2/org/jabsorb/serializer/ObjectMatch.java | Updated JavaDoc comments to fix the typo |
Comments suppressed due to low confidence (1)
shared/typos/codeql/typos/TypoDatabase.qll:5560
- The mapping now uses the correct spelling for both the wrong and right values. If the intent is to catch the typo, the wrong value should remain as 'occured' so that mistyped strings are properly detected.
wrong = "occurred" and right = "occurred"
Contributor
|
There are three files with usages of "occured". In one it is deliberate and another file is a stub (i.e. copied from external code, with method bodies removed), so it probably shouldn't be changed. Only the ones in |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fix typo from
occuredtooccurred