-
Notifications
You must be signed in to change notification settings - Fork 44
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
ci: Add error message format check #901
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #901 +/- ##
========================================
Coverage 59.79% 59.79%
========================================
Files 156 156
Lines 17415 17415
========================================
Hits 10414 10414
Misses 6065 6065
Partials 936 936
|
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.
question: The linter chosen seems fairly ineffective and seems to have allowed many errors to remain capitalised. Does it only check edited lines? If not is there perhaps a better linter we can use?
What is also strange is that a run with a different linter, |
I'll see if I missed something. |
2b1ada0
to
ad9ca11
Compare
I did a few tests and it seems that the linters really suck when not using the stdlib errors package. So as an alternative I opted to check the string format of the first argument of our error creation functions. It seems to work relatively well. |
@AndrewSisley are you ok with the latest changes? |
Looks good to me! Cheers for finding a better linter for this :) |
ad9ca11
to
46bc0eb
Compare
46bc0eb
to
28070ee
Compare
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
Relevant issue(s) Resolves sourcenetwork#161 Description This PR adds a linter rule that checks for proper formatting of the error message.
Relevant issue(s)
Resolves #161
Description
This PR adds a linter rule that checks for proper formatting of the error message.
Tasks
How has this been tested?
Specify the platform(s) on which this was tested: