-
Notifications
You must be signed in to change notification settings - Fork 123
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 a lint
check for empty and missing environment files
#3204
base: main
Are you sure you want to change the base?
Conversation
6819c26
to
e1db5ce
Compare
ef711a8
to
c2b295a
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.
Thanks for improving this! Added a couple comments. Would be good to handle the non-existent file as part of the lint
report instead of bailing out with a catched exception.
Would you mind adding a simple test coverage? You could just extend the existing test. Also, what about adding a short release note?
lint
check for empty and missing environment files
c2b295a
to
1db47af
Compare
@mcasquer, what do you think about adding a simple test and a short release note? |
Perfect, I will add them along with the above suggestions ! |
fbf2a76
to
22a3061
Compare
3cd24be
to
b5890c4
Compare
b5890c4
to
2ec0304
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.
Now looks good, thanks! Added just a few minor adjustments in 2ec0304.
New function that raises a failure if the size of the environment file, if this one exists, is zero. Signed-off-by: mcasquer <mcasquer@redhat.com>
2ec0304
to
da8f662
Compare
/packit test |
/packit build |
Test
Both commands should give the same result as the |
New function that raises a failure if the size of
the environment file, if this one exists, is zero.
Pull Request Checklist