Open ccoVeille opened 1 month ago
Linux Homebrew vale 3.4.2
I'm testing a rule to detect GitHub case and suggest fixing it
Here is the rule
--- extends: substitution message: Use '%s' instead of '%s' level: warning ignorecase: true swap: GitHub: GitHub
Here is a test file:
github_test2.md
http://github.com bar [github](#whatever) [github1](#whatever) [github.](#whatever) https://jwodder.github.io/ http://github.com whatever
Code reports
[github](#whatever)
[GitHub](#whatever)
[github.](#whatever)
[GitHub.](#whatever)
github_test3.md
http://github.com bar [github](#whatever) [github1](#whatever) [github.](#whatever) https://jwodder.github.io/ http://github.com
The only difference is on last line whatever was replaced by http://github.com
Code reports differs:
https://jwodder.github.io/
Now let's change slightly
bar [github](#whatever) [github1](#whatever) [github.](#whatever) https://jwodder.github.io/ http://github.com
So the on first line github.com was removed
Code reports differs again and seems normal:
Here are the files
github_test2.md github_test3.md github_test4.md GitHub.yml
Check for existing issues
Environment
Linux Homebrew vale 3.4.2
Describe the bug / provide steps to reproduce it
I'm testing a rule to detect GitHub case and suggest fixing it
Here is the rule
Here is a test file:
github_test2.md
Code reports
[github](#whatever)
as it should be[GitHub](#whatever)
:heavy_check_mark:[github.](#whatever)
as it should be[GitHub.](#whatever)
:heavy_check_mark:github_test3.md
The only difference is on last line whatever was replaced by http://github.com
Code reports differs:
[github](#whatever)
is reported as it should be[GitHub](#whatever)
:heavy_check_mark:[github.](#whatever)
is no longer reported :thinking: :bug:https://jwodder.github.io/
is reported as invalid :thinking: :bug:Now let's change slightly
So the on first line github.com was removed
Code reports differs again and seems normal:
[github](#whatever)
is reported as it should be[GitHub](#whatever)
:heavy_check_mark:[github.](#whatever)
as it should be[GitHub.](#whatever)
:heavy_check_mark:https://jwodder.github.io/
is no longer reported as invalid :thinking: but it's what I would have expected