-
Notifications
You must be signed in to change notification settings - Fork 75
DRAFT: add fix command line option and fix --check #560
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
base: master
Are you sure you want to change the base?
DRAFT: add fix command line option and fix --check #560
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 <[email protected]>
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. |