-
Notifications
You must be signed in to change notification settings - Fork 166
No adjacent strings in list. Fixes #225. #346
No adjacent strings in list. Fixes #225. #346
Conversation
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.
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 |
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.
Remove the second 'Do not'
@@ -0,0 +1,63 @@ | |||
// Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
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.
Update the year.
name: 'no_adjacent_strings_in_list', | ||
description: desc, | ||
details: details, | ||
group: Group.style); |
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 wonder if the group for this is error.
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 agree, 'errors' seems like a better group.
I've changed group to errors. |
We should squash in a single commit before merging, I can do it if needed. |
0593a2a
to
8634ae7
Compare
No problem. Done it. |
Simple rule, but can be useful in some cases.
There're no such lints in SDK and Flutter.