8000 Ignore '$' in identifiers; we use in generated code. by matanlurey · Pull Request #290 · dart-archive/linter · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Ignore '$' in identifiers; we use in generated code. #290

Merged
merged 2 commits into from
Aug 18, 2016

Conversation

matanlurey
Copy link
Contributor

Closes: dart-lang/sdk#57363

I am not yet terribly familiar with all of the lints, but I think I modified the two lints (and added simple test cases) that we would run into. Both camel_case_types,constant_identifier_names, andnon_constant_identifier_namesshould allow the$` character in between case changes.

i.e., now valid:

  • camel_case_types: Foo$Bar
  • constant_identifier_names and non_constant_identifier_names: foo$Bar

@matanlurey
Copy link
Contributor Author
matanlurey commented Aug 18, 2016

Oops, missed something. I'll fix up and rebase.

EDIT: Got it, forgot to update camel_case_types.dart. Passes locally now.

@bwilkerson
Copy link
Contributor

lgtm

@matanlurey matanlurey merged commit 183a56a into dart-archive:master Aug 18, 2016
@matanlurey matanlurey deleted the ignore_dollar_signs branch August 18, 2016 20:56
@pq
Copy link
Contributor
pq commented Aug 18, 2016

👍 Awesome!

pq added a commit that referenced this pull request Sep 5, 2016
* Fixed false positive on `[]=` in `always_declare_return_types` (#300).
* New `invariant_booleans` lint.
* New `literal_only_boolean_expressions` lint.
* Fixed `camel_case_types` to allow `$` in identifiers (#290).

BUG=
R=alexeidiaz@google.com

Review URL: https://codereview.chromium.org//2309313002 .
matanlurey added a commit that referenced this pull request Oct 7, 2016
I missed a couple of use cases with #290.

This covers any rule that uses `identifier` or `lowerCamelCase` RegExp checks, including:

- constant_identifier_names
- non_constant_identifier_names
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
0