Skip to content
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

Correct missing uppercases in Markdown files #9474

Closed
wants to merge 1 commit into from
Closed

Correct missing uppercases in Markdown files #9474

wants to merge 1 commit into from

Conversation

Benjamin-Loison
Copy link
Contributor

@Benjamin-Loison Benjamin-Loison commented Sep 11, 2022

To detect these typos I used:

grep -rn '\. [a-z]' . | \
uniq | \
grep -v '\. lib' | \
grep -v '[0-9]\. [a-z]' | \
grep -v '\.\. [a-z]' | \
grep -v '\. curl' | \
grep -v 'e.g. [a-z]' | \
grep -v 'eg. [a-z]' | \
grep -v '\etc. [a-z]' | \
grep -v 'i.e\. [a-z]' | \
grep --color=always '\. [a-z]' | \
grep '\.md'

To detect these typos I used:

```
clear && grep -rn '\. [a-z]' . | uniq | grep -v '\. lib' | grep -v '[0-9]\. [a-z]' | grep -v '\.\. [a-z]' | grep -v '\. curl' | grep -v 'e.g. [a-z]' | grep -v 'eg. [a-z]' | grep -v '\etc. [a-z]' | grep -v 'i.e\. [a-z]' | grep --color=always '\. [a-z]' | grep '\.md'
```
@bagder
Copy link
Member

bagder commented Sep 12, 2022

It might be fun to convert such a check into a CI job/tool. I notice that the command line above still points out:

docs/CHECKSRC.md:143:is sometimes a need to ignore specific warnings. checksrc allows a few

... and maybe checksrc should be allowed to have a lowercase c just like curl is allowed in the line?

@bagder
Copy link
Member

bagder commented Sep 12, 2022

Thanks!

@bagder bagder closed this in ff021cb Sep 12, 2022
@dfandrich
Copy link
Contributor

dfandrich commented Oct 11, 2022 via email

bagder added a commit that referenced this pull request Oct 11, 2022
Script based on the #9474 pull-request logic, but implemented in perl.

Updated docs/URL-SYNTAX.md accordingly.

Suggested-by: Dan Fandrich
bagder added a commit that referenced this pull request Oct 12, 2022
Script based on the #9474 pull-request logic, but implemented in perl.

Updated docs/URL-SYNTAX.md accordingly.

Suggested-by: Dan Fandrich

Closes #9697
obonaventure pushed a commit to mptcp-apps/curl that referenced this pull request Oct 12, 2022
Script based on the curl#9474 pull-request logic, but implemented in perl.

Updated docs/URL-SYNTAX.md accordingly.

Suggested-by: Dan Fandrich

Closes curl#9697
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants