Skip to content
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

Clean up doc/dev documentation files #6195

Open
wants to merge 3 commits into
base: dev-2.x
Choose a base branch
from

Conversation

sam-k
Copy link

@sam-k sam-k commented Oct 24, 2024

Summary

Cleans up miscellaneous typos, grammatical errors, style inconsistencies, etc. in documentation. This will improve readability for those accessing and referencing the docs, especially for new contributors.

There doesn't appear to be a formatter-enforced line length, so this PR uses 80 characters as that seems to be the loose consensus across other Markdown files in this directory. For stylistic choices like list indents or Oxford commas, this PR makes no decision and preserves existing usage. In general, this PR always favors consistency with existing choices over any standardization of style.

For now, I've touched only the doc/dev Markdown files. I can clean up the Markdown files for other docs as well in the future.

@sam-k sam-k requested a review from a team as a code owner October 24, 2024 21:22
Comment on lines -126 to +132
9. getter and setters
8. `private`/package methods
10. `private` enums (avoid `public`)
11. interfaces
12. `private static` classes (avoid `public`)
13. instance classes (avoid)
9. Getter and setters
10. `private`/package methods
11. `private` enums (avoid `public`)
12. Interfaces
13. `private static` classes (avoid `public`)
14. Instance classes (avoid)
Copy link
Member

Choose a reason for hiding this comment

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

Looks like when I applied #6125 (comment), it somehow messed up the order numbers.

conflicts. Adding fields and methods to the end of the list will cause merge conflicts more often
than inserting methods and fields in an ordered list. Fields and methods can be sorted in "feature"
sections or alphabetically, but stick to it and respect it when adding new methods and fields.
than will inserting methods and fields in an ordered list. Fields and methods can be sorted in
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
than will inserting methods and fields in an ordered list. Fields and methods can be sorted in
than inserting methods and fields in an ordered list. Fields and methods can be sorted in

Copy link
Member

Choose a reason for hiding this comment

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

Correct me if I'm wrong, but I think this word is not needed here.

are non-null if they are not marked as `@Nullable`. However, there are places where the
`@Nullable` annotation is missing even if it should have been used. Those can be updated
to use the `@Nullable` annotation.
Use of `@NonNull` annotation is not allowed. It should be assumed methods/parameters/fields are
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Use of `@NonNull` annotation is not allowed. It should be assumed methods/parameters/fields are
Use of `@Nonnull` annotation is not allowed. It should be assumed methods/parameters/fields are

Copy link
Member

Choose a reason for hiding this comment

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

The javax annotation is @Nonnull, Lombok's annotation is @NonNull (although we shouldn't use that one either).

Naming convention for builders with and without a context.

#### Graph Build and tests run without a context
#### Graph builds and tests run without a context
Copy link
Member

Choose a reason for hiding this comment

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

I think we probably should stick to title case in all subtitles as well.

@optionsome
Copy link
Member

Thanks a lot for reading through the documentation and fixing all sorts of mistakes. I added a few comments after reading your suggestions.

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