brew audit: Is "#{version}" redundant? #32540
Comments
Since all Homebrew sees is the resulting string, it's impossible to detect whether you've interpolated the version or not. We prefer not to interpolate the version in order to make it easy to copy/paste URLs. |
This is a bit ridiculous, especially when the version is specified multiple times in the URL.
Please re-think this policy. How often are people copy/pasting URLs from Homebrew formulas? |
@jakepetroules It seems a bit ridiculous that qbs has the version multiple times in the URL. |
@MikeMcQuaid to be fair it’s very common. The core has 642 formulae with an URL that contains the version twice or more.
|
Stand by the comment I made in the related thread:
I don't see how including an inline version and then using that version twice instead of just leaving the two version numbers in the URL is more efficient, not that either Mike or Baptiste are necessarily voicing support or opposition above. |
I’m personally 👎 on allowing the We probably spend 10× (100×?) more time reading the code than writing it; so let’s optimize it for the readability 😄 |
Hello,
"brew audit" says "#{version}" is redundant as follows. I don't think so.
The text was updated successfully, but these errors were encountered: