-
Notifications
You must be signed in to change notification settings - Fork 15
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
refactor: maintainability improvements #114
Conversation
Thanks @carlocorradini but you really should have checked before going to the effort of putting this together. I don't have the time to reply to each individual change just now, but most of these changes are not things I want. |
@obmarg |
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.
Sorry for the delay getting back to you @carlocorradini - been a busy week at work.
- Added Dependabot
Automatically monitor and fix vulnerable dependencies
I'm planning to use renovate for this, see #90. I just need to find the time to finish configuring it as I want.
- Added CODEOWNERS
File to define individuals or teams that are responsible for code in a repository
You can keep this, but I'm not sure what the purpose is. It's my repo, obviously I am the owner.
- Better CI/CD (see
.github/workflows
)
In what way is this better? I may be missing something, but it looks like you just rename the files? If there are improvements I'm missing let me know, but I'd rather not rename the files without a good reason, so if you can revert that please.
- Added clippy
A collection of lints to catch common mistakes and improve your Rust code.
Seelints
inCargo.toml
Some code has been refactored (no breaking changes) to fix all lints
I already use clippy on this repo, but I'm generally happy with its default settings. I'll comment in Cargo.toml
with more details though.
- Added .vscode directory
- Added extensions.json file
Workspace recommended extensions- Added settings.json
I'd rather not dictate a users vscode settings - can you remove this please?
_Workspace settings_
- Added EditorConfig
maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs
I won't be using this myself so I'm not sure that there's any benefit to others using it? It could easily not match the settings I've got. I'm not that bothered about most of the settings in there either tbh - rustfmt deals with the majority of the formatting in the repo.
- Added .gitattributes
Defining attributes per path
Is there anything particularly useful in this? It's got more entries than there are files in this repository - and the vast majority of entries in this file are not likely to every be present in this repo.
Cargo.lock
should be ignored in libraries (added in.gitignore
)
I disagree, can you put the Cargo.lock
back please.
- Fixed some typos
Cool, thanks.
- Better
README.md
(all*.md
files in general) with better badges.
I don't think the formatting changes are an improvement, can you revert those. I was also kind of fine with the badges as they were, what is better about these?
Sorry for the late reply; I'll fix them as soon as possible. |
|
|
For all markdown files I've fixed some blanks that have been left and checked the formatting/styling with markdownlint (i.e. added a blank between a title and text). Moreover, fixed |
First off - it doesn't really matter what a cargo issue from 2014 says. It's my project and I want to commit Secondly, this has not been the official stance for coming up to a year. Third, that is not the behaviour for a new library project: |
@obmarg Awesome 🥳 |
@obmarg Everything should be fixed now 🤗🥳 |
@obmarg Done 😊 |
Done 👍 |
Not much value in documenting that a function which returns a Result will return Err when it errors. Kind of a given imo
This PR makes a few changes to the repository to make it easier to manage and/or utilize generally:
Changes
Automatically monitor and fix vulnerable dependencies
File to define individuals or teams that are responsible for code in a repository
.github/workflows
)A collection of lints to catch common mistakes and improve your Rust code.
See
lints
inCargo.toml
Some code has been refactored (no breaking changes) to fix all lints
Workspace recommended extensions
Workspace settings
maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs
Defining attributes per path
.gitignore
Cargo.lock
should be ignored in libraries (added in.gitignore
)README.md
(all*.md
files in general) with better badges.Let me know what you think 🤗🥳🤯