Fix grammar in doc comments: restrictive "which" → "that", possessives, and related issues#946
Open
alexander-yevsyukov wants to merge 17 commits into
Open
Fix grammar in doc comments: restrictive "which" → "that", possessives, and related issues#946alexander-yevsyukov wants to merge 17 commits into
alexander-yevsyukov wants to merge 17 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #946 +/- ##
=======================================
Coverage 94.04% 94.04%
=======================================
Files 192 192
Lines 4149 4149
Branches 339 339
=======================================
Hits 3902 3902
Misses 147 147
Partials 100 100 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR primarily standardizes doc-comment grammar across the repository by replacing restrictive which with that and fixing a few possessive cases (which → whose), alongside broad license-header normalization (copyright year and http→https).
Changes:
- Performed a large-scale KDoc/Javadoc grammar sweep (
which→that, plus a fewwhich→whose) acrossannotations/,base/,environment/, andformat/. - Normalized many file headers (copyright year to 2026 and Apache License URL to
https). - Included a version bump in
version.gradle.ktsand added@Serialannotations to severalserialVersionUIDdeclarations (not doc-only).
Reviewed changes
Copilot reviewed 110 out of 110 changed files in this pull request and generated 8 comments.
Show a summary per file
| File | Description |
|---|---|
| version.gradle.kts | Bumps versionToPublish snapshot version. |
| format/src/test/kotlin/io/spine/format/FormatTest.kt | KDoc grammar updates in test base class documentation. |
| format/src/main/kotlin/io/spine/format/parse/Parser.kt | KDoc grammar and header normalization. |
| environment/src/main/java/io/spine/environment/TestsProperty.java | Javadoc grammar tweaks and header URL/year normalization. |
| environment/src/main/java/io/spine/environment/Environment.java | Javadoc grammar tweaks and header URL/year normalization. |
| buildSrc/src/main/kotlin/Strings.kt | KDoc grammar tweaks and header normalization. |
| buildSrc/src/main/kotlin/LicenseSettings.kt | Header formatting normalization + KDoc grammar tweak. |
| buildSrc/src/main/kotlin/io/spine/gradle/testing/TestKitCoverage.kt | KDoc grammar tweak. |
| buildSrc/src/main/kotlin/io/spine/gradle/RunGradle.kt | KDoc grammar tweaks and header normalization. |
| buildSrc/src/main/kotlin/io/spine/gradle/report/license/Paths.kt | KDoc grammar tweak. |
| buildSrc/src/main/kotlin/io/spine/gradle/report/license/ModuleDataExtensions.kt | KDoc grammar tweak and header normalization. |
| buildSrc/src/main/kotlin/io/spine/gradle/report/license/LicenseReporter.kt | KDoc grammar tweaks. |
| buildSrc/src/main/kotlin/io/spine/gradle/repo/Repository.kt | KDoc grammar tweaks, header normalization, whitespace cleanup. |
| buildSrc/src/main/kotlin/io/spine/gradle/publish/SpinePublishing.kt | KDoc grammar tweak. |
| buildSrc/src/main/kotlin/io/spine/gradle/publish/PublishingExts.kt | KDoc grammar tweak. |
| buildSrc/src/main/kotlin/io/spine/gradle/publish/PublicationHandler.kt | KDoc grammar tweak. |
| buildSrc/src/main/kotlin/io/spine/gradle/publish/JarDsl.kt | KDoc grammar tweak and header normalization. |
| buildSrc/src/main/kotlin/io/spine/gradle/publish/IncrementGuard.kt | KDoc grammar tweaks. |
| buildSrc/src/main/kotlin/io/spine/gradle/publish/GitHubPackages.kt | KDoc grammar tweaks and header normalization. |
| buildSrc/src/main/kotlin/io/spine/gradle/publish/CustomPublicationHandler.kt | KDoc grammar tweak and header normalization. |
| buildSrc/src/main/kotlin/io/spine/gradle/publish/CheckVersionIncrement.kt | Header normalization + KDoc grammar tweak. |
| buildSrc/src/main/kotlin/io/spine/gradle/javascript/task/Assemble.kt | KDoc grammar tweak. |
| buildSrc/src/main/kotlin/io/spine/gradle/javascript/JsExtension.kt | KDoc grammar tweaks and header normalization. |
| buildSrc/src/main/kotlin/io/spine/gradle/javascript/JsEnvironment.kt | KDoc grammar tweak and header normalization. |
| buildSrc/src/main/kotlin/io/spine/gradle/javadoc/ExcludeInternalDoclet.kt | KDoc grammar tweaks. |
| buildSrc/src/main/kotlin/io/spine/gradle/java/Tasks.kt | KDoc grammar tweak and header normalization. |
| buildSrc/src/main/kotlin/io/spine/gradle/github/pages/UpdateGitHubPages.kt | KDoc grammar tweaks. |
| buildSrc/src/main/kotlin/io/spine/gradle/github/pages/TaskName.kt | KDoc grammar tweak and header normalization. |
| buildSrc/src/main/kotlin/io/spine/gradle/dart/task/IntegrationTest.kt | KDoc grammar tweak. |
| buildSrc/src/main/kotlin/io/spine/gradle/dart/DartExtension.kt | KDoc grammar tweaks and header normalization. |
| buildSrc/src/main/kotlin/io/spine/gradle/dart/DartEnvironment.kt | KDoc grammar tweaks and header normalization. |
| buildSrc/src/main/kotlin/io/spine/gradle/ConfigTester.kt | KDoc grammar tweaks. |
| buildSrc/src/main/kotlin/io/spine/dependency/lib/Kotlin.kt | KDoc grammar tweak. |
| buildSrc/src/main/kotlin/io/spine/dependency/lib/CommonsCli.kt | KDoc grammar tweak. |
| buildSrc/src/main/kotlin/io/spine/dependency/Dependency.kt | KDoc grammar tweaks and whitespace cleanup. |
| buildSrc/src/main/kotlin/io/spine/dependency/boms/BomsPlugin.kt | KDoc grammar tweak and header normalization. |
| buildSrc/src/main/kotlin/DokkaExts.kt | KDoc grammar tweak. |
| buildSrc/src/main/kotlin/BuildExtensions.kt | Punctuation tweak for non-restrictive clause. |
| base/src/test/kotlin/io/spine/type/MessageClassSpec.kt | Adds @Serial to serialVersionUID and normalizes headers/docs. |
| base/src/test/kotlin/io/spine/base/ThrowableExtsTest.kt | KDoc grammar tweaks + adds @Serial to stub serialVersionUID fields. |
| base/src/test/kotlin/io/spine/base/MistakeSpec.kt | Adds @Serial to serialVersionUID. |
| base/src/test/kotlin/io/spine/base/EntityStateSpec.kt | Fixes typo (“mor”→“more”) + adds @Serial constants. |
| base/src/test/java/io/spine/type/TypeNameTest.java | Javadoc grammar tweaks and header URL/year normalization. |
| base/src/test/java/io/spine/query/RecordQueryTest.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/kotlin/io/spine/string/Stringify.kt | KDoc grammar tweaks and header URL/year normalization. |
| base/src/main/kotlin/io/spine/string/Separator.kt | KDoc grammar tweak and header normalization. |
| base/src/main/kotlin/io/spine/security/CallerProvider.kt | KDoc grammar tweaks and header normalization. |
| base/src/main/kotlin/io/spine/protobuf/ProtoConverter.kt | KDoc grammar tweak and header normalization. |
| base/src/main/kotlin/io/spine/io/Glob.kt | KDoc grammar tweaks and header normalization. |
| base/src/main/kotlin/io/spine/collect/IterableExts.kt | KDoc grammar tweak and header normalization. |
| base/src/main/kotlin/io/spine/code/proto/FileDescriptorSetReader.kt | KDoc grammar tweak, header normalization, and spacing. |
| base/src/main/kotlin/io/spine/code/proto/DescriptorSetReferenceFile.kt | KDoc grammar tweak and header normalization. |
| base/src/main/kotlin/io/spine/base/Mistake.kt | Adds @Serial to serialVersionUID and header normalization. |
| base/src/main/kotlin/io/spine/base/EntityState.kt | KDoc grammar tweak. |
| base/src/main/java/io/spine/value/ComparableStringValue.java | Javadoc grammar tweak + adds @Serial to serialVersionUID. |
| base/src/main/java/io/spine/util/Predicates2.java | Javadoc grammar tweak. |
| base/src/main/java/io/spine/util/Preconditions2.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/type/UnpublishedLanguageException.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/type/Type.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/type/SerializableMessage.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/type/KnownMessage.java | Javadoc grammar tweak and header normalization. |
| base/src/main/java/io/spine/type/ApiOption.java | Javadoc grammar tweaks + whitespace cleanup in method body. |
| base/src/main/java/io/spine/string/Diags.java | Javadoc grammar tweaks and header URL/year normalization. |
| base/src/main/java/io/spine/query/SubjectParameter.java | Javadoc grammar tweaks and header URL/year normalization. |
| base/src/main/java/io/spine/query/SortBy.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/query/RecordQueryBuilder.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/query/RecordQuery.java | Javadoc grammar tweaks and header URL/year normalization. |
| base/src/main/java/io/spine/query/RecordPredicates.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/query/RecordCriterion.java | Possessive fix (which→whose) + header URL/year normalization. |
| base/src/main/java/io/spine/query/RecordColumns.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/query/QueryPredicate.java | Javadoc grammar tweaks and header URL/year normalization. |
| base/src/main/java/io/spine/query/QueryCriterion.java | Javadoc grammar tweak (needs follow-up correction). |
| base/src/main/java/io/spine/query/QueryBuilder.java | Javadoc grammar tweaks and header URL/year normalization. |
| base/src/main/java/io/spine/query/package-info.java | Package-level Javadoc grammar tweaks and header URL/year normalization. |
| base/src/main/java/io/spine/query/OrExpression.java | Possessive fix (which→whose) + header URL/year normalization. |
| base/src/main/java/io/spine/query/IdParameter.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/query/IdCriterion.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/query/EntitySubjectParameter.java | Possessive fix (which→whose) + header URL/year normalization. |
| base/src/main/java/io/spine/query/EntityQueryBuilder.java | Javadoc grammar tweaks and header URL/year normalization. |
| base/src/main/java/io/spine/query/EntityCriterion.java | Possessive fix (which→whose) + header URL/year normalization. |
| base/src/main/java/io/spine/query/EntityColumn.java | Javadoc grammar tweaks and header URL/year normalization. |
| base/src/main/java/io/spine/query/CustomSubjectParameter.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/query/CustomCriterion.java | Javadoc grammar tweaks and header URL/year normalization. |
| base/src/main/java/io/spine/query/CustomColumn.java | Javadoc grammar tweaks and header URL/year normalization. |
| base/src/main/java/io/spine/query/Columns.java | Javadoc grammar tweaks. |
| base/src/main/java/io/spine/query/CartesianProducts.java | Javadoc grammar tweak (needs follow-up correction) and header URL/year normalization. |
| base/src/main/java/io/spine/query/AndExpression.java | Javadoc grammar tweak (needs follow-up correction) and header URL/year normalization. |
| base/src/main/java/io/spine/query/AbstractQueryBuilder.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/query/AbstractQuery.java | Javadoc grammar tweaks and header URL/year normalization. |
| base/src/main/java/io/spine/protobuf/AnyPacker.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/code/proto/TypeSet.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/code/proto/SourceFile.java | Javadoc grammar tweak. |
| base/src/main/java/io/spine/code/proto/Option.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/code/proto/FileSet.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/code/proto/FileDescriptors.java | Javadoc grammar tweaks, header URL/year normalization, and spacing. |
| base/src/main/java/io/spine/code/proto/FieldTypes.java | Javadoc grammar tweaks. |
| base/src/main/java/io/spine/code/proto/FieldDeclaration.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/code/proto/EntityStateOption.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/code/proto/ColumnOption.java | Javadoc grammar tweak and header URL/year normalization. |
| base/src/main/java/io/spine/code/java/ClassName.java | Javadoc grammar tweaks and header URL/year normalization. |
| base/src/main/java/io/spine/code/fs/AbstractFileName.java | Adds @Serial to serialVersionUID. |
| base/src/main/java/io/spine/base/SubscribableField.java | Javadoc grammar tweaks and header URL/year normalization. |
| base/src/main/java/io/spine/base/Routable.java | Javadoc grammar tweak and header normalization. |
| base/src/main/java/io/spine/base/RejectionThrowable.java | Javadoc grammar tweak (needs follow-up correction) + spacing. |
| base/src/main/java/io/spine/base/MessageFile.java | Possessive fix (which→whose) + header URL/year normalization. |
| base/src/main/java/io/spine/base/Field.java | Javadoc grammar tweaks and header URL/year normalization. |
| annotations/src/test/java/io/spine/annotation/GeneratedJavaSpec.java | Javadoc grammar tweak and header normalization. |
| annotations/src/main/kotlin/io/spine/annotation/Modified.kt | KDoc grammar tweaks and header normalization. |
| annotations/src/main/kotlin/io/spine/annotation/GeneratedMixin.kt | KDoc grammar tweaks and header normalization. |
| annotations/src/main/kotlin/io/spine/annotation/Generated.kt | KDoc grammar tweak and header normalization. |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…iterion` "whose actual value to use later" → "whose actual value is used later" Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment on lines
36
to
38
| * Thrown when a Protobuf type having the {@code internal_type} option is sent | ||
| * to a bounded context which declares it. Or, when the declaring bounded context attempts | ||
| * to a bounded context that declares it. Or, when the declaring bounded context attempts | ||
| * to send this type outside. |
Comment on lines
49
to
51
| /** | ||
| * A utility class which allows to obtain Protobuf file descriptors. | ||
| * A utility class that allows to obtain Protobuf file descriptors. | ||
| */ |
armiol
approved these changes
Jun 16, 2026
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.
This branch carries several independent improvements; the doc grammar sweep is the main new work.
Doc-comment grammar fixes (new in this branch)
which(no comma) withthatin KDoc/Javadoc acrossannotations/,base/,buildSrc/,environment/, andformat/.column which actual value→column whose actual value is used,entities which column value→entities whose column value,file which name→file whose name,annotation which simple name→annotation whose simple name.ComparableStringValue: remove erroneous comma beforewhich, change tothat.ThrowableExtsTest:which→that."for mor details"→"for more details"inEntityStateSpec.entity that thrown→entity that threwinRejectionThrowable.expressions that results→expressions that resultinCartesianProducts.Left untouched: prepositional phrases (
in which,of which, etc.), interrogative determiners (Defines which fields,Controls which class), and non-restrictive, whichclauses that already had a comma.Other notable changes
@Serialannotations: added toserialVersionUIDfields in several classes.Further steps
which-fixerskill underagents.buildSrclanguage fixes toconfig.🤖 Generated with Claude Code
🙌🏻 Updated by @alexander-yevsyukov