Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

No adjacent strings in list. Fixes #225. #346

Merged

Conversation

dikmax
Copy link
Contributor

@dikmax dikmax commented Nov 28, 2016

Simple rule, but can be useful in some cases.

There're no such lints in SDK and Flutter.

Copy link
Contributor

@alexeieleusis alexeieleusis left a comment

Choose a reason for hiding this comment

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

Once again I'll defer the approval to @pq or @bwilkerson.

Thank you @dikmax

const desc = 'Do not use adjacent strings in list';

const details = r'''
**DO NOT** Do not use adjacent strings in list. This can be
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the second 'Do not'

@@ -0,0 +1,63 @@
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
Copy link
Contributor

Choose a reason for hiding this comment

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

Update the year.

name: 'no_adjacent_strings_in_list',
description: desc,
details: details,
group: Group.style);
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if the group for this is error.

Copy link
Contributor

@bwilkerson bwilkerson left a comment

Choose a reason for hiding this comment

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

I agree, 'errors' seems like a better group.

@dikmax
Copy link
Contributor Author

dikmax commented Nov 28, 2016

I've changed group to errors.

@alexeieleusis
Copy link
Contributor

We should squash in a single commit before merging, I can do it if needed.

@dikmax dikmax force-pushed the 225_no_adjacent_stirngs_in_list branch from 0593a2a to 8634ae7 Compare November 28, 2016 22:24
@dikmax
Copy link
Contributor Author

dikmax commented Nov 28, 2016

No problem. Done it.

@alexeieleusis alexeieleusis merged commit 2275b01 into dart-archive:master Nov 28, 2016
@dikmax dikmax deleted the 225_no_adjacent_stirngs_in_list branch November 29, 2016 08:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

Successfully merging this pull request may close these issues.

4 participants