DRAFT: add fix command line option and fix --check #560
DRAFT: add fix command line option and fix --check #560parhamsaremi wants to merge 2 commits intofsprojects:masterfrom
Conversation
parhamsaremi
commented
Jul 28, 2022
- add fix command option
- add fix --check option for not altering the code
|
From the 3 commits existing in this PR, is there any reason to separate commit 1st and 2nd? |
|
Ummm I remember the first commit being only fixes to what janus wrote. the second commit is what you tasked me to do 🤔 |
Separation is not needed just because one commit is from one author and another commit from another. (Besides, did you keep his code in the end or you rewrote from scratch?). If there's a need to squash 2 commits from different authors, you just use the tag |
In the end, I used his code. I think I should merge commits then 🤔 |
Sure let's do it. BTW let's rather use the word "squash", not "merge", to not confuse with the "git merge" command (which we should almost never use btw) :) |
yeah you are right :D |
ae30b53 to
70b3a4c
Compare
Nit, the bit before the e-mail address should be in Name Surname format, not username. Unless you have anything against that? |
hmmmm OK sure thinking I don't have anything against it, I just preferred my username, but since my username is my Name and Surname I don't see any problem switching. |
Co-authored-by: Parham Saremi <parhaamsaremi@gmail.com>
Add --check functionality to fix command. When passed will ignore fixes and will only check if passed rule has suggested fixes.
59db421 to
4392044
Compare
|
I've looked closely at /// Text to be replaced.
FromTextand /// Location of the text to be replaced.
FromRangeIt's not stated anywhere how these fields are supposed to be used. |