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

Determine naming convention for issues/violations/errors/checks #404

Closed
fpgmaas opened this issue May 16, 2023 · 3 comments
Closed

Determine naming convention for issues/violations/errors/checks #404

fpgmaas opened this issue May 16, 2023 · 3 comments
Labels

Comments

@fpgmaas
Copy link
Owner

fpgmaas commented May 16, 2023

Question

Right now, we use a combination of the words issue, violation, check, error code. It would be good to determine a standard naming convention. My proposal would be to use "rule" to refer to DEP001, DEP002, etc. and "violation"(as already implemented in the code by @mkniewallner) to refer to specific violations in the code/configuration files.

@mkniewallner
Copy link
Collaborator

Agree, we should be more consistent in our naming. I must say that we didn't really discuss if "violation" is what we want to go with when starting using that over the codebase, but I think that it goes well with the usage of "rule" (at least compared to using "issue"), so using "rule" and "violation" is something I would agree with.

@fpgmaas
Copy link
Owner Author

fpgmaas commented May 17, 2023

If we go for 'rule' and 'violation', we need to make some small changes. For example, a 'missing dependency' is an issue, whereas 'Project should not contain missing dependencies' is a rule that can be violated. So e.g. in the docs, we'd replace this:

with

Code Description More information
DEP001 Project should not contain missing dependencies link
DEP002 Project should not contain unused dependencies link
DEP003 Project should not contain unnecessary transitive dependencies link
DEP004 Project should not use development dependencies in non-development code link

see here.

@fpgmaas
Copy link
Owner Author

fpgmaas commented Jun 19, 2023

Going for "rule" and "violation".

@fpgmaas fpgmaas closed this as completed Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants