mirror of
https://github.com/sindresorhus/awesome.git
synced 2026-07-18 20:43:02 -05:00
[GH-ISSUE #569] Tools for enforcing awesome-style? #2666
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @paulirish on GitHub (Mar 10, 2016).
Original GitHub issue: https://github.com/sindresorhus/awesome/issues/569
In the manifesto there are a few suggestions and requirements. For example..
style
build
Have any list maintainers written some scripts to either lint for style issues? Also interested in boring build scripts to automate TOC generation with DocToc, etc.
@sindresorhus commented on GitHub (Mar 11, 2016):
👍 Would be nice to just be able to tell people to add a Travis check. Very few follow the guidelines and I do a lot of manual job commenting on that.
The only prior art I know of is an awesome bot (see https://github.com/sindresorhus/awesome/pull/478), but it only checks for outdated links, so not very useful.
@sindresorhus commented on GitHub (Mar 11, 2016):
@wooorm Does something like this exist in the retext/remark ecosystem?
@wooorm commented on GitHub (Mar 11, 2016):
Hi Sindre, Paul, great idea!
no markdown errors, consistent style
I believe remark, the markdown processor, could help here. Probably though its lint plugin, which checks patterns in markdown and triggers warnings. It checks for several possible style violations (e.g., emphasis markers,
*or_), which each can be configured, turned on, or turned off. And, it supports external rules, for example:vhf/remark-lint-alphabetize-lists, which ensures lists are sorted properly.Which brings me to a similar project,
vhf/free-programming-books-lint, which implemented the aforementioned rule. This project wraps remark and remark-lint and enforces the free-programming-book style in their.travis.ymlfile.P.S. also interesting:
remark-validate-linkstable-of-contents
Maybe
remark-toc, or of course one of the non-remark plugins if you want more control.grammatically correct, no typos
Nothing good so far. I investigated this but there’s no good solution to implement this in a Travis task, yet. I’m half-way with n-spell, plain-JavaScript (Hunspell) spelling, which will make this possible. But I got bored...
Hope this helps!
@sobolevn commented on GitHub (Jun 21, 2016):
When creating
awesome-cryptography, I was in doubt with how to enforce the style-consistency. Thanks for @wooorm for his awesomeremark-lint.My solutions was:
remark-lintremark-lint-alphabetize-listsremark-lint-are-links-validremark-lint-list-item-punctuationHere's the setup:
package.json@sindresorhus commented on GitHub (Aug 1, 2016):
I've started work on an official Awesome linter. ✨
I could use some feedback and help → https://github.com/sindresorhus/awesome-lint/issues/3