-
-
Notifications
You must be signed in to change notification settings - Fork 47
Fix #126 improve error messages including classname when possible #281
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
Fix #126 improve error messages including classname when possible #281
Conversation
annervisser
commented
Aug 16, 2022
- Added ViolationDescription, as input for a Violation
- Added a description to the ViolationDescription
- Only for Expressions where it made sense
|
I was trying out Arkitect, and it looks like a great tool 😄. The php config is great, so much better than Yaml. I bumped into these messages not being quite as descriptive as I'd like. So I picked up this issue. Let me know if this is something you'd like to merge and if anything needs to be changed 👍 |
|
Hi @annervisser, thanks for this PR. |
1e14309 to
b791c37
Compare
|
@AlessandroMinoccheri done! |
…ossible Added ViolationDescription, as input for a Violation Added a description to the ViolationDescription - Only for Expressions where it made sense
b791c37 to
78b739b
Compare
|
|
Thank you @annervisser for your PR! I think that is absolutely necessary to explicit which dependency is raising the error. I am not sure about the wording:
It seems that "depends on..." is part of the rule, but it's the opposite, it's the violation 🤔 Maybe we could write something like this? Other ideas?
|
|
@fain182 I agree the wording is a bit weird right now. I would be okay with your suggestion of putting it at the end with the line number An alternative would be to change the wording to make it clear that they're violations (change As you said the current wording implies we're outputting rules, despite actually outputting violations. Currently this is already noticeable through the fact that a rule can be listed multiple times per file (when a rule has multiple violations) What do you think? |
|
I agree with your idea @annervisser, we are showing violations, not rules right now 👍 |
|
@fain182 done in |
c9b3be0 to
6817886
Compare
|
This is why you write tests 🙈 |
Codecov Report
@@ Coverage Diff @@
## main #281 +/- ##
============================================
+ Coverage 93.62% 93.73% +0.11%
- Complexity 370 376 +6
============================================
Files 57 58 +1
Lines 988 1006 +18
============================================
+ Hits 925 943 +18
Misses 63 63
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
AlessandroMinoccheri
left a comment
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.
LGTM 👍