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

Policy: preserve original policies and ranges for control #2060

Merged
merged 8 commits into from
Jul 3, 2020

Conversation

kitbellew
Copy link
Collaborator

@kitbellew kitbellew commented Jul 2, 2020

Rather than combining policy partial functions and unnecessarily extending token ranges for combined policies, keep each policy clause unchanged and introduce policy containers. This will allow removing inner policies when they reach the end of their range, or based on some other criteria (such as type of policy).

Fixes #2044. Helps with #2042.

@kitbellew kitbellew requested a review from poslegm July 2, 2020 20:46
@kitbellew kitbellew merged commit 8ab9e45 into scalameta:master Jul 3, 2020
@kitbellew kitbellew deleted the 2060 branch July 3, 2020 10:31
kitbellew added a commit to kitbellew/scalafmt that referenced this pull request Jul 3, 2020
kitbellew added a commit that referenced this pull request Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants