X Tutup
The Wayback Machine - https://web.archive.org/web/20200627234459/https://github.com/angular/angular/pull/36940
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

Expand scope of formatting to enforce formatting on more files #36940

Closed
wants to merge 4 commits into from

Conversation

@josephperrott
Copy link
Member

josephperrott commented May 5, 2020

See individual commits.

All js/ts changes in this change are the result of clang-format enforcing format on the code.

@ngbot ngbot bot modified the milestone: needsTriage May 5, 2020
@googlebot googlebot added the cla: yes label May 5, 2020
@josephperrott josephperrott marked this pull request as ready for review May 6, 2020
@pullapprove pullapprove bot requested review from filipesilva, kara and petebacondarwin May 6, 2020
@josephperrott josephperrott force-pushed the josephperrott:expand-formatting branch from d3152b0 to f10ab5a May 15, 2020
@josephperrott josephperrott force-pushed the josephperrott:expand-formatting branch from f10ab5a to 691e8c2 May 26, 2020
Copy link
Member

petebacondarwin left a comment

Reviewed-for: fw-i18n

The commit message scope should be common not localize.

Historically files to be formatted were added to a listing (via matchers)
to be included in formatting.  Instead, this change begins efforts to
instead include all files in format enforcement, relying instead on an
opt out methodology.
Historically files to be formatted were added to a listing (via matchers)
to be included in formatting.  Instead, this change begins efforts to
instead include all files in format enforcement, relying instead on an
opt out methodology.
Historically files to be formatted were added to a listing (via matchers)
to be included in formatting.  Instead, this change begins efforts to
instead include all files in format enforcement, relying instead on an
opt out methodology.
@josephperrott josephperrott requested review from devversion and IgorMinar and removed request for kara and filipesilva Jun 10, 2020
@pullapprove pullapprove bot requested a review from atscott Jun 10, 2020
@josephperrott josephperrott force-pushed the josephperrott:expand-formatting branch from 691e8c2 to 2b9624f Jun 10, 2020
@josephperrott josephperrott removed the request for review from IgorMinar Jun 10, 2020
Copy link
Member

devversion left a comment

LGTM. @josephperrott I'm assuming we can rely on the extract-cldr script outputting properly formatted files? I see it runs clang-format, so whenever we should re-generate the data, there should be no formatting changes?

@josephperrott
Copy link
Member Author

josephperrott commented Jun 10, 2020

@devversion Correct, when we recreate the CLDR data it will be created correctly as we run the same formatter over it as we do for our enforcement.

Copy link
Contributor

atscott left a comment

We should give a heads-up ping to everyone before merging this.

Review-for: fw-core

@josephperrott
Copy link
Member Author

josephperrott commented Jun 12, 2020

@atscott Happy to announce, though it looks like this will not effect much outstanding work:

$ yarn -s ng-dev pr discover-new-conflicts 36940
Requesting pending PRs from Github
Retrieved 615 total pending PRs
Checking 147 PRs for conflicts after a merge of #36940
[========================================] ETA: 0s | 147/147

Result:
1 PR(s) which conflict(s) after #36940 merges:
    - 37263: Added the method addValidators and addAsyncValidators
@atscott
Copy link
Contributor

atscott commented Jun 12, 2020

@atscott Happy to announce, though it looks like this will not effect much outstanding work:

$ yarn -s ng-dev pr discover-new-conflicts 36940

Oh, that's cool. Didn't know we had that! One thing I just thought of: could you update the required base sha so that we ensure PRs are formatted correctly?

@josephperrott
Copy link
Member Author

josephperrott commented Jun 12, 2020

@atscott will do in a follow up PR once we have the SHAs available from this PR merging.

mhevery added a commit that referenced this pull request Jun 12, 2020
Historically files to be formatted were added to a listing (via matchers)
to be included in formatting.  Instead, this change begins efforts to
instead include all files in format enforcement, relying instead on an
opt out methodology.

PR Close #36940
mhevery added a commit that referenced this pull request Jun 12, 2020
Historically files to be formatted were added to a listing (via matchers)
to be included in formatting.  Instead, this change begins efforts to
instead include all files in format enforcement, relying instead on an
opt out methodology.

PR Close #36940
mhevery added a commit that referenced this pull request Jun 12, 2020
Historically files to be formatted were added to a listing (via matchers)
to be included in formatting.  Instead, this change begins efforts to
instead include all files in format enforcement, relying instead on an
opt out methodology.

PR Close #36940
@mhevery mhevery closed this in 34e4098 Jun 12, 2020
mhevery added a commit that referenced this pull request Jun 12, 2020
Historically files to be formatted were added to a listing (via matchers)
to be included in formatting.  Instead, this change begins efforts to
instead include all files in format enforcement, relying instead on an
opt out methodology.

PR Close #36940
mhevery added a commit that referenced this pull request Jun 12, 2020
Historically files to be formatted were added to a listing (via matchers)
to be included in formatting.  Instead, this change begins efforts to
instead include all files in format enforcement, relying instead on an
opt out methodology.

PR Close #36940
ngwattcos added a commit to ngwattcos/angular that referenced this pull request Jun 25, 2020
Historically files to be formatted were added to a listing (via matchers)
to be included in formatting.  Instead, this change begins efforts to
instead include all files in format enforcement, relying instead on an
opt out methodology.

PR Close angular#36940
ngwattcos added a commit to ngwattcos/angular that referenced this pull request Jun 25, 2020
Historically files to be formatted were added to a listing (via matchers)
to be included in formatting.  Instead, this change begins efforts to
instead include all files in format enforcement, relying instead on an
opt out methodology.

PR Close angular#36940
ngwattcos added a commit to ngwattcos/angular that referenced this pull request Jun 25, 2020
Historically files to be formatted were added to a listing (via matchers)
to be included in formatting.  Instead, this change begins efforts to
instead include all files in format enforcement, relying instead on an
opt out methodology.

PR Close angular#36940
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.
X Tutup