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

Tidying lint warnings #1691

Merged
merged 4 commits into from
Jul 2, 2019
Merged

Tidying lint warnings #1691

merged 4 commits into from
Jul 2, 2019

Conversation

domesticmouse
Copy link
Member

Should we carry out this style of fixes, or am I holding it wrong?

@googlebot googlebot added the cla: yes Contributor has signed the Contributor License Agreement label Jun 17, 2019
Copy link
Collaborator

@sfshaza2 sfshaza2 left a comment

Choose a reason for hiding this comment

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

As Kathy is out, I'll leave this review to Jon, but it IS nice to see all those "new" instances removed!

request.response
..write('Hello, world!')
..close();
request.response.write('Hello, world!');
Copy link
Contributor

Choose a reason for hiding this comment

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

Do these *_.server.dart examples need to be kept in sync with their counterparts in dart-lang/dart-tutorials-samples? Not a blocker for this PR, I'm mostly asking just to get a general sense of our approach to this right now.

See, e.g. https://github.com/dart-lang/dart-tutorials-samples/blob/master/httpserver/bin/hello_world_server.dart
(There are very slight differences between the code for these examples between dart-lang/site-www and dart-lang/dart-tutorials-samples)

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll create a PR for dart-lang/dart-tutorials-samples repo to bring those samples up to date. I see anagram, for example, is stuck in Dart v1.

Copy link
Member Author

Choose a reason for hiding this comment

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

That took slightly longer than expected.

dart-archive/dart-tutorials-samples#49

..write('Hello, world!')
..close();
request.response.write('Hello, world!');
await request.response.close();
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Aye, I'll do a full sweep of the tutorial samples

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@legalcodes legalcodes left a comment

Choose a reason for hiding this comment

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

LGTM

@domesticmouse
Copy link
Member Author

I'll hold this PR open until Kathy has had a chance to review and sign off on it.

Copy link
Contributor

@kwalrath kwalrath left a comment

Choose a reason for hiding this comment

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

Thanks, @domesticmouse!

@kwalrath
Copy link
Contributor

kwalrath commented Jul 1, 2019

I believe that #1717 will fix the build. Once that’s in, we should rerun the travis build, just to make sure…

@kwalrath kwalrath merged commit f44923d into dart-lang:master Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Contributor has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants