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

Add style guide #17

Open
rennergade opened this issue Jan 6, 2025 · 7 comments
Open

Add style guide #17

rennergade opened this issue Jan 6, 2025 · 7 comments
Assignees

Comments

@rennergade
Copy link
Contributor

We want to find and add a style guide for the projects to the docs.

@m-hemmings
Copy link

Suggest we begin with this:
https://doc.rust-lang.org/nightly/style-guide/advice.html

And see what, if anything, we want to change

@JustinCappos
Copy link
Member

JustinCappos commented Jan 14, 2025 via email

@rickmcgeer
Copy link

rickmcgeer commented Jan 14, 2025 via email

@rennergade
Copy link
Contributor Author

I use clippy with a specific set of settings (listed in fdtables). Is this something we can do throughout? Any complaints / thoughts?

This seems great. I quickly looked at the fdtables repo and didn't see this. Could you share and we can add this in some way?

@rennergade
Copy link
Contributor Author

We probably want to go back to using cargofmt as well.

@JustinCappos
Copy link
Member

JustinCappos commented Jan 14, 2025

I use clippy with a specific set of settings (listed in fdtables). Is this something we can do throughout? Any complaints / thoughts?

This seems great. I quickly looked at the fdtables repo and didn't see this. Could you share and we can add this in some way?

It's in the comments at the top of lib.rs for fdtables. Lines 21-77

We can think of this as a base and adjust as is needed. Most likely, we want to centralize this so we don't need to update it a ton of places if we ever change it.

@rennergade
Copy link
Contributor Author

Thanks!

Link to clippy code so we can easily reference this from the thread: https://github.com/JustinCappos/fdtables/blob/main/src/lib.rs#L21

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

No branches or pull requests

4 participants