-
Notifications
You must be signed in to change notification settings - Fork 90
Added installer option to remove composer.lock file from .gitignore file #88
Added installer option to remove composer.lock file from .gitignore file #88
Conversation
* @param IOInterface $io | ||
* @return bool | ||
*/ | ||
private static function requestExcludeComposerLock(IOInterface $io) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this needs to be a question. Best practice is to commit the lock file so it shouldn't be optional.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed.
@weierophinney anything else you'd like to see in this pull request? |
* @param string $content String to remove entry from. | ||
* @return string | ||
*/ | ||
public static function removeLine($entry, $content) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename this to removeLineFromFile()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It did at first, but it didn't feel right since it isn't necessarily a file that is passed to it. But I can change it back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed that. Okay, let's change it to removeLineFromString()
, then.
@jonsa I can make the suggested changes now, if you'd like; I'm working on some other updates for a 1.0.2 release today. |
@weierophinney That's fine by me. |
…itignore Added installer option to remove composer.lock file from .gitignore file
- Renames new method to `removeLineFromstring()` - Minor improvements to regex to ensure it only matches a line containing the given content (previous could match a partial line).
Fixes #87