(ci): multiple commit on same file is problematic with commit range checks
Summary
When having a branch with multiple commit on the same file will have several unwanted issues:
- The file is checked many times. Only the "last" check is relevant
- When the file is moved, CSpell give up, saying the file doesn't exist (which is true because the path is not the same at the time of the current commit)
Possible fixes
Before launching all checking hooks, filter the file list to only include the last versions. Eliminate the one that are not relevant.