-
Notifications
You must be signed in to change notification settings - Fork 37
Warn about solidity in assets directory #74
Comments
I will work on it. |
All external links, or do you think we should suggest replacing links like |
I'd prefer it if the bot gave an option to replace all links to solidity code with code blocks (à la #75). |
Currently, we tell people who link to external code that they should either inline the code, or add it to If so, I'm curious about the reasoning for such a change? It isn't clear to me what benefit we gain by disallowing code in assets. |
I am confused, original action was just to warn or suggest to replace all links to solidity files to inline versions. !! |
I agree - if anything, this makes EIPs more verbose at the expense of readability. EIPs should be for reading, assets should be for examining. |
If I understood this, action would be to warn author about replace links to solidity files to inline versions. |
The bot would parse the whole EIP and look for any external links. If it finds one that ends in |
Question: /[\S]/[\S]*.sol |
I think When we find a match, it should at least fail CI. Second best option would be to let the user know in a comment what the problem is. Third best option would be to comment directly on the line with the external link. Fourth best option would be to collect this error up along with any others and submit a PR review with the feedback. I recommend we start with the first option (just fail CI with a console.log), and then we can iterate/improve on it later. |
There are legitimate use-cases for solidity in the assets directory, however. I'd prefer if it just warned the user. |
Our policy on external links is quite strict at the moment, so I have a strong preference for failure over warning. Why do you think we should only warn? |
I was talking about internal links to files in the assets directory. I agree external links should fail PR unless an editor approves it. EDIT: This issue is about solidity in the assets directory, not about external links. The issue you are thinking of is #73 |
Hmm, my interpretation of this issue is that it is referring to external links to solidity files, which is incredibly common for EIP authors to include. |
I don't think we should do anything at all if someone has a correctly formed internal link to a |
So to summarize:
|
Fixed in eipw. |
Originally from #55
In the Specification section, suggest to replace all links to solidity files to inline versions.
The text was updated successfully, but these errors were encountered: