Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: collapse generated snapshots in PR view by default#6485

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

Josh-Cena
Copy link
Member

PR Checklist

Overview

Per discussion with@JoshuaKGoldberg. This makes snapshots collapsed just likeyarn.lock changes.

@nx-cloud
Copy link

nx-cloudbot commentedFeb 17, 2023
edited
Loading

☁️ Nx Cloud Report

CI is running/has finished running commands for commitef78d16. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 47 targets

Sent with 💌 fromNxCloud.

@typescript-eslint
Copy link
Contributor

Thanks for the PR,@Josh-Cena!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently onhttps://opencollective.com/typescript-eslint.

@netlify
Copy link

netlifybot commentedFeb 17, 2023
edited
Loading

Deploy Preview fortypescript-eslint ready!

NameLink
🔨 Latest commitef78d16
🔍 Latest deploy loghttps://app.netlify.com/sites/typescript-eslint/deploys/63efd9e8323c120008d0bb7b
😎 Deploy Previewhttps://deploy-preview-6485--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to yourNetlify site settings.

@codecov
Copy link

codecovbot commentedFeb 17, 2023
edited
Loading

Codecov Report

Merging#6485 (ef78d16) intomain (c46c793) willincrease coverage by0.02%.
The diff coverage isn/a.

Additional details and impacted files
@@            Coverage Diff             @@##             main    #6485      +/-   ##==========================================+ Coverage   90.64%   90.66%   +0.02%==========================================  Files         373      374       +1       Lines       12751    12823      +72       Branches     3752     3777      +25     ==========================================+ Hits        11558    11626      +68  Misses        853      853- Partials      340      344       +4
FlagCoverage Δ
unittest90.66% <ø> (+0.02%)⬆️

Flags with carried forward coverage won't be shown.Click here to find out more.

Impacted FilesCoverage Δ
...-plugin/src/rules/explicit-function-return-type.ts97.95% <0.00%> (ø)
packages/eslint-plugin/src/rules/no-mixed-enums.ts94.44% <0.00%> (ø)

@bradzacher
Copy link
Member

Won't this remove the syntax highlighting in GH because you're losing the language attribute?

I don't know if they should be seen as generated - aside from codebase reactors, we'll really want to be reviewing all of our snapshots as code because they represent the AST output.

I do have an idea for adding snapshot testing to the rule tester as well, so that would be more snapshots to be reviewed.

@Josh-Cena
Copy link
MemberAuthor

Won't this remove the syntax highlighting in GH because you're losing the language attribute?

No it won't.linguist-language andlinguist-generated are two orthogonal attributes. You can refer tohttps://github.com/github/linguist/blob/master/docs/overrides.md

I don't know if they should be seen as generated

You can still view the diff, just that they are collapsed by default. This prevents diffs like#6274 from being unviewable.

Copy link
Member

@JoshuaKGoldbergJoshuaKGoldberg left a comment

Choose a reason for hiding this comment

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

As long as syntax highlighting is preserved, I'm fine with auto-collapsing by default. I normally end up doing little console macros to collapse/expand everything anyway.

@bradzacherbradzacher added this pull request to the merge queueMar 13, 2023
@JoshuaKGoldbergJoshuaKGoldberg removed this pull request from the merge queue due to a manual requestMar 13, 2023
@JoshuaKGoldbergJoshuaKGoldberg merged commitb0adcdb intotypescript-eslint:mainMar 13, 2023
@github-actionsgithub-actionsbot locked asresolvedand limited conversation to collaboratorsMar 21, 2023
@Josh-CenaJosh-Cena deleted the collapse-generated branchJune 2, 2024 09:10
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@JoshuaKGoldbergJoshuaKGoldbergJoshuaKGoldberg approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@Josh-Cena@bradzacher@JoshuaKGoldberg

[8]ページ先頭

©2009-2025 Movatter.jp