-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix typos and improve documentation across various files #8230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
ebb9c7d
96e1c88
0594db4
d2ef857
aba577e
cfbab24
4aa3d58
74a1386
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| [default] | ||
| # Ignore patterns that match commit hashes and Git-related identifiers | ||
| extend-ignore-re = [ | ||
| # Git commit hashes in parentheses: (7553ede), (88d0ded), etc. | ||
| "\\([a-f0-9]{7,40}\\)", | ||
| # Git commit hashes in square brackets: [7553ede], [88d0ded], etc. | ||
| "\\[[a-f0-9]{7,40}\\]", | ||
| # Full GitHub commit URLs | ||
| "github\\.com/[^/]+/[^/]+/commit/[a-f0-9]{7,40}", | ||
| # Commit hash at end of markdown links: ...commit/abcd123) | ||
| "commit/[a-f0-9]{7,40}\\)", | ||
| ] | ||
|
|
||
| [files] | ||
| extend-exclude = [ | ||
| # Exclude lock files | ||
| "package-lock.json", | ||
| "yarn.lock", | ||
| "pnpm-lock.yaml", | ||
| # Exclude build artifacts | ||
| "dist/", | ||
| "build/", | ||
| "*.min.js", | ||
| # Exclude node_modules | ||
| "node_modules/", | ||
| # Exclude Xcode project files that contain hex identifiers - these files have | ||
| # automatically generated hex IDs that look like typos but must not be changed | ||
| "**/project.pbxproj", | ||
| "**/*.xcscheme", | ||
| "**/*.storyboard", | ||
| # Exclude all CHANGELOG files - they contain commit hashes and historical text | ||
| # that should not be modified by typo fixes | ||
| "CHANGELOG.md", | ||
| "*/CHANGELOG.md", | ||
| ] | ||
|
|
||
| [default.extend-words] | ||
| # Add any custom words that should not be corrected | ||
| # Format: incorrectword = "incorrectword" | ||
| thn = "thn" | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,18 +72,18 @@ public final class JSValueEncoder: TopLevelEncoder { | |
| /// - Parameter optionalEncodingStrategy: The strategy to use when encoding `nil` values. Defaults to ``OptionalEncodingStrategy-swift.enum/undefined`` | ||
| /// - Parameter dateEncodingStrategy: Defaults to `DateEncodingStrategy.deferredToDate` | ||
| /// - Parameter dataEncodingStrategy: Defaults to `DataEncodingStrategy.deferredToData` | ||
| /// - Parameter nonConformingFloatEncodingStategy: Defaults to ``NonConformingFloatEncodingStrategy-swift.enum/deferred`` | ||
| /// - Parameter nonConformingFloatEncodingStrategy: Defaults to ``NonConformingFloatEncodingStrategy-swift.enum/deferred`` | ||
| public init( | ||
| optionalEncodingStrategy: OptionalEncodingStrategy = .undefined, | ||
| dateEncodingStrategy: DateEncodingStrategy = .deferredToDate, | ||
| dataEncodingStrategy: DataEncodingStrategy = .deferredToData, | ||
| nonConformingFloatEncodingStategy: NonConformingFloatEncodingStrategy = .deferred | ||
| nonConformingFloatEncodingStrategy: NonConformingFloatEncodingStrategy = .deferred | ||
| ) { | ||
| self.options = .init( | ||
| optionalStrategy: optionalEncodingStrategy, | ||
| dateStrategy: dateEncodingStrategy, | ||
| dataStrategy: dataEncodingStrategy, | ||
| nonConformingFloatStrategy: nonConformingFloatEncodingStategy | ||
| nonConformingFloatStrategy: nonConformingFloatEncodingStrategy | ||
|
Comment on lines
76
to
+86
|
||
| ) | ||
| } | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thnis added to the custom dictionary but doesn’t appear to exist anywhere in the repository (and looks like a typo of "then"). Consider removing it until there is a concrete false-positive to suppress, to avoid masking real typos.