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

Add support for multiline warnings #131

Merged
merged 8 commits into from
Mar 6, 2015
Merged

Add support for multiline warnings #131

merged 8 commits into from
Mar 6, 2015

Conversation

supermarin
Copy link
Contributor

screen shot 2015-03-05 at 4 38 33 pm

@@ -250,6 +254,11 @@
run_output.should include(red("⌦ " + SAMPLE_PODS_ERROR.gsub('error: ', '')))
end

Then(/^I should see a yellow warning message$/) do
run_output.should include("#{yellow('⚠️ ')}/Users/supermarin/code/oss/ObjectiveSugar/Example/ObjectiveSugar/AppDelegate.m:19:31:")
Copy link
Collaborator

Choose a reason for hiding this comment

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

Line is too long. [133/80]

@@ -349,16 +358,21 @@ def update_test_state(text)

# @ return Hash { :file_name, :file_path, :reason, :line }
def update_error_state(text)
update_error = lambda {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Avoid using {...} for multi-line blocks.

@supermarin supermarin mentioned this pull request Mar 5, 2015
@@ -91,7 +85,7 @@ module XCPretty
end

it "parses compiling C and C++ files" do
for file_extension in ['.c', '.cc', '.cpp', '.cxx'] do
['.c', '.cc', '.cpp', '.cxx'].each do |file_extension|
Copy link
Contributor

Choose a reason for hiding this comment

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

lol did I do this? how did we ever get a for loop in here?

SAMPLE_UNRELATED_IMAGE_FILE = 'apple_raw.png'

SAMPLE_COMPILE_ERROR_WITH_TILDES = %Q(
/Users/musalj/code/OSS/ObjectiveSugar/Example/ObjectiveSugarTests/NSSetTests.m:93:16: error: no visible @interface for 'NSArray' declares the selector 'shoulds'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Line is too long. [160/80]

kattrali added a commit that referenced this pull request Mar 6, 2015
Add support for multiline warnings
@kattrali kattrali merged commit 94e83d4 into master Mar 6, 2015
@kattrali kattrali deleted the improve_warnings branch March 6, 2015 00:24
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

3 participants