Skip to content

Conversation

@ilya-bobyr
Copy link
Contributor

@ilya-bobyr ilya-bobyr commented Jul 29, 2025

Format doc-comments and comment to be 100 characters wide.

Use quotes when referencing feature names.
`"no_std"` feature, rather than "`no_std`" feature, or `no_std` feature.
This seems to be the common convention.

Also added a few automatic links in the doc comments, where previously it was just quoted name of a type.


Not sure what do you guys think about this kind of changes.
Some people call it "churn" and do not accept them.

I personally think that it would be much better if these things would be automatically enforced, similar to how fmt deals with many other formatting details.
But it does not seem like it can do it.

If merged, I would next add a .git-blame-ignore-revs and add this commit SHA in there.
GitHub will pick it up automatically:
https://docs.github.com/en/repositories/working-with-files/using-files/viewing-and-understanding-files#ignore-commits-in-the-blame-view

Git in general will require a bit of manual configuration, but it seems to be a pretty common approach:
https://git-scm.com/docs/git-blame#Documentation/git-blame.txt---ignore-revs-filefile

@ilya-bobyr ilya-bobyr requested review from febo and joncinque July 29, 2025 03:33
Copy link
Collaborator

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looks good to me! Just a couple of small things.

We should be able to enforce this with https://github.com/rust-lang/rustfmt/blob/master/Configurations.md#comment_width, no? Pinocchio just doesn't have a rustfmt.toml like Agave or the SDK

As for the blame skip, I'm not too fussed about it personally.

Format doc-comments and comment to be 100 characters wide.

Use quotes when referencing feature names.  `` `"std"` feature ``,
rather than `` "`std`" feature ``, or `` `std` feature ``.
This seems to be the common convention.

Also added a few automatic links in the doc comments, where previously
it was just quoted name of a type.
@ilya-bobyr ilya-bobyr force-pushed the pr/docs-entrypoint-format branch from 6511483 to 3e01692 Compare July 30, 2025 01:54
@ilya-bobyr ilya-bobyr requested a review from joncinque July 30, 2025 01:54
Copy link
Collaborator

@joncinque joncinque left a comment

Choose a reason for hiding this comment

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

Looks great!

@ilya-bobyr ilya-bobyr merged commit 35b1709 into anza-xyz:main Jul 30, 2025
10 checks passed
@ilya-bobyr ilya-bobyr deleted the pr/docs-entrypoint-format branch July 30, 2025 19:09
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