-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
feat: added lint from stdin #5095
Conversation
Signed-off-by: roi.kramer <roi.kramer@codefresh.io>
4a30a01
to
d0f2866
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.
Only gave this a quick pass, but looks great so far! Will give a more detailed look later
Look great! Rather than say “error in object #1” can we say “error in WorkflowTemplate named foo”? |
Hmm, the thing is, the objects don't always have a name to recognize them by, for example:
This doesn't have a |
Signed-off-by: roi.kramer <roi.kramer@codefresh.io>
9e0ed6e
to
2120f13
Compare
Signed-off-by: roi.kramer <roi.kramer@codefresh.io>
Signed-off-by: roi.kramer <roi.kramer@codefresh.io>
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.
Looking great, just some more minor changes
I think they must have either I think this is fantastic BTW. I just want to give |
…nto lint-from-stdin Signed-off-by: roi.kramer <roi.kramer@codefresh.io>
…nto lint-from-stdin Signed-off-by: roi.kramer <roi.kramer@codefresh.io>
d72a7b6
to
c4b7e0d
Compare
…nto lint-from-stdin Signed-off-by: roi.kramer <roi.kramer@codefresh.io> Signed-off-by: arckey <roi.kramer@codefresh.io>
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.
There’s a go library called go-color we should adopt for colourising terminal output.
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. @alexec Any final comments?
@arckey Please make sure you make the DCO check happy. It seems that some commits are not signed: https://github.com/argoproj/argo-workflows/pull/5095/checks?check_run_id=1916767542 |
Questions:
I don' think we need I think Should we add |
Signed-off-by: arckey <roikramer120@gmail.com>
1f1f460
to
a7eadf1
Compare
sorry, did not have time to finish this today, will close everything tomorrow :) |
about the above points:
|
|
Oh |
Oh, as e2e test automatically add it, you can probably remove it. |
|
Examples should lint. How about adding |
Lets do this! |
@alexec Haven't made the last changes we discussed about, but I guess I can do that with a follow up PR 😉 |
Checklist: