-
Notifications
You must be signed in to change notification settings - Fork 62
Conversation
Feedback from DIrk on 🚀 chat:
|
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.
Can you please move this script to kubecf-tools?
Looks like something we can reuse in other projects.
As Dirk mentioned, hard-coding I've checked the current repo for all
If we exclude the docs directory, it reduces slightly:
So we could hardcode these as exceptions:
These last 2 hits should then be removed by #1179. So I think there are 2 issues still to be discussed:
My suggestion would be to have a local file in the repo being linted, e.g. |
This is what I'm suggesting:
It allows to have comments in The nice thing about this approach is that each repo can have its own exceptions file. Note that you need to disable history expansion if you want to use the negative lookahead assertion from the commandline, otherwise Finally, I think the exit code should always be |
+1 on a more generic solution
|
Excellent, then I think we can just put my suggestion into The only improvement that just came to my mind is that the script should not throw an error when
That way a repo doesn't need to create a |
Updated consuming cloudfoundry-incubator/kubecf-tools#4. Cheers! |
Add .http_exceptions for kubecf. Add `make httplint` target, and include it in `make lint`.
9551c6e
to
1afd732
Compare
Description
Lint for SUSE URLs with http against the appropriate files.
Motivation and Context
Fixes: #1195
How Has This Been Tested?
Fix the URLs, then:
Screenshots (if appropriate):
Types of changes
Checklist: