Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Rewrite member-ordering rule #1957

Merged
merged 3 commits into from
Jan 13, 2017
Merged

Conversation

andy-hanson
Copy link
Contributor

@andy-hanson andy-hanson commented Dec 31, 2016

PR checklist

What changes did you make?

Major rewrite of member-ordering. This is similar to #1874 in that it removes instance state from the class and uses "manual" iteration instead of doing it through the Walker.

Is there anything you'd like reviewers to focus on?

Discovered #1956 while working on this.
Wouldn't it be possible to specify the "old" options in terms of the "new" style? The error messages might change a bit, but it could error at the same places.

@andy-hanson andy-hanson force-pushed the member_ordering branch 4 times, most recently from cf61e7e to 39520ca Compare December 31, 2016 19:34
return "constructor";
}
export class MemberOrderingWalker extends Lint.RuleWalker {
private readonly order: string[] | undefined = (() => {
Copy link
Contributor

Choose a reason for hiding this comment

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

can you put the initialization in a constructor?

@nchen63 nchen63 merged commit e6ca414 into palantir:master Jan 13, 2017
@nchen63
Copy link
Contributor

nchen63 commented Jan 13, 2017

@andy-hanson thanks!

@andy-hanson andy-hanson deleted the member_ordering branch January 13, 2017 03:11
nchen63 pushed a commit that referenced this pull request Jan 25, 2017
nchen63 added a commit that referenced this pull request Jan 25, 2017
* Revert "member-ordering: Support categories (#2041)"

This reverts commit 18e7604.

* Revert "Rewrite member-ordering rule (#1957)"

This reverts commit e6ca414.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants