-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
libcurl option manpages consistency cleanup #7656
Conversation
Congratulations 🎉. DeepCode analyzed your code in 0.658 seconds and we found no issues. Enjoy a moment of no bugs ☀️. 👉 View analysis in DeepCode’s Dashboard | Configure the bot👉 The DeepCode service and API will be deprecated in August, 2021. Here is the information how to migrate. Thank you for using DeepCode 🙏 ❤️ !If you are using our plugins, you might be interested in their successors: Snyk's JetBrains plugin and Snyk's VS Code plugin. |
62a7b14
to
7f8179d
Compare
I'm not following. Availability of what? The particular options? We do provide the CURL_AT_LEAST_VERSION() macro for easier version checks if that's what mean.
Right, that’s exactly what I was thinking of, including the relevant CURL_AT_LEAST_VERSION(); snippet ready to be copy/pasted into code. That being said, it might be a tad repetitive and not really worth it since it’s so simple to use.
Just thinking about how we can lower the barrier to using libcurl as much as possible.
|
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.
Whats in here looks good to me now, unless there are plans to expand it I think this is ready.
This is enough for this PR, no expansion planned. I'll just need to make sure all builds work properly with this. |
This comment has been minimized.
This comment has been minimized.
It is also the problem of build-time vs run-time. Using CURL_AT_LEAST_VERSION() will certainly make your program build with older libcurls but for cases where you build your program with a new libcurl and run it with an old, you need other checks so the CURL_AT_LEAST_VERSION() won't be enough so it would be very important to not mislead the user into believing so. I'm not sure how to best do that! |
It is also the problem of build-time vs run-time. Using CURL_AT_LEAST_VERSION() will certainly make your program build with older libcurls but for cases where you build your program with a new libcurl and run it with an old, you need other checks so the CURL_AT_LEAST_VERSION() won't be enough so it would be very important to not mislead the user into believing so. I'm not sure how to best do that!
Ah yes, that’s a very good point.
|
b7a2cab
to
6f6114b
Compare
Extended manpage-syntax.pl (run by test 1173) to check that every man page for a libcurl option has an EXAMPLE section that is more than two lines. Then fixed all errors it found and added examples.
In every libcurl option man page there are now 8 mandatory sections that must use the right name in the correct order and test 1173 verifies this. Only 14 man pages needed adjustments. The sections and the order is as follows: - NAME - SYNOPSIS - DESCRIPTION - PROTOCOLS - EXAMPLE - AVAILABILITY - RETURN VALUE - SEE ALSO
... that they refer to actual existing libcurl options.
1f20544
to
2fa9027
Compare
In every libcurl option man page there are now 8 mandatory sections that must use the right name in the correct order and test 1173 verifies this. Only 14 man pages needed adjustments. The sections and the order is as follows: - NAME - SYNOPSIS - DESCRIPTION - PROTOCOLS - EXAMPLE - AVAILABILITY - RETURN VALUE - SEE ALSO Reviewed-by: Daniel Gustafsson Closes #7656
... that they refer to actual existing libcurl options. Reviewed-by: Daniel Gustafsson Closes #7656
All man pages for libcurl options now need to:
Failure to comply makes test 1173 error.