Another productive lunch hour on #AuthorIntrusion while working on echo word detection.
I got it to correctly detect the same word used within a given range. With these plugin settings:
- scope: content
select: //token[@l>3]
within: 3
warning: 1
error: 2
And the file:
one two one three four one
It produces a warning on the first and third "one", an error on the second "one".
For xpath, I'll probably change it to `//token[length()>3]` because it's prettier.
Author Intrusion Show more
This also means there is only a few steps left until I can see if this proof-of-concept works. I need a "check" command that will run the echo detection across the entire project and outputs the results in something GCC/Emacs/Atom can use. At that point, I'll have the minimum needed to use Make or a build command and get useful, specific results.