Skip to content
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

improved shell handling #181

Merged
merged 5 commits into from
Oct 3, 2014
Merged

improved shell handling #181

merged 5 commits into from
Oct 3, 2014

Conversation

mpapis
Copy link
Collaborator

@mpapis mpapis commented Sep 13, 2014

No description provided.

@mpapis
Copy link
Collaborator Author

mpapis commented Sep 13, 2014

@jish this are few things I wanted to improve when I was fixing #146 ... did not wanted to mix bugfixing and cleaning code

@mpapis
Copy link
Collaborator Author

mpapis commented Sep 21, 2014

@jish so how do you like it? I have few more other PRs waiting also ;)

options = args.last.is_a?(::Hash) ? args.pop : {}
args = build_command(*args)
execute_raw(args, options)
end
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems cleaner in all of the check files. Any reason not to use Open3 anymore?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with Open3 we get separate stdout from stderr, with the 2>&1 it's merged properly, even if it is possible to get it ordered properly with open3 - it would take more code to that, less code has to be better ;)

@mpapis
Copy link
Collaborator Author

mpapis commented Sep 25, 2014

@jish did you had time to review it further?

Conflicts:
	lib/plugins/pre_commit/checks/coffeelint.rb
	lib/plugins/pre_commit/checks/scss_lint.rb
	lib/pre-commit/checks/grep.rb
@mpapis
Copy link
Collaborator Author

mpapis commented Oct 3, 2014

merged master after #146

mpapis added a commit that referenced this pull request Oct 3, 2014
@mpapis mpapis merged commit 39447f9 into master Oct 3, 2014
@mpapis mpapis removed the need info label Oct 3, 2014
mpapis added a commit that referenced this pull request Oct 3, 2014
…pdated after #146 and #181

Conflicts:
	lib/pre-commit/checks/grep.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants