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

fix(eslint-plugin-template): [attributes-order] Calculate valueless structural directive start/end positions correctly #1726

Merged
merged 10 commits into from Mar 26, 2024

Conversation

bradkovach
Copy link
Contributor

Fixes #1725

  • adds edge case unit tests for valueless structural directives
  • adds check for valueless structural directive

@bradkovach bradkovach changed the title Fix for mangled valueless structural directive fix: Calculate valueless structural directive positions correctly Feb 29, 2024
@bradkovach bradkovach changed the title fix: Calculate valueless structural directive positions correctly fix: [attributes-order] Calculate valueless structural directive start/end positions correctly Feb 29, 2024
@bradkovach
Copy link
Contributor Author

@JamesHenry this could (probably) be merged into branches for prior Angular versions. Do you have a process for that?

As the fixer is potentially destructive, this might be a good thing to incorporate a few versions back.

@bradkovach bradkovach changed the title fix: [attributes-order] Calculate valueless structural directive start/end positions correctly fix(eslint-plugin-template): [attributes-order] Calculate valueless structural directive start/end positions correctly Mar 6, 2024
Copy link

nx-cloud bot commented Mar 15, 2024

☁️ Nx Cloud Report

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

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 7 targets

Sent with 💌 from NxCloud.

@JamesHenry
Copy link
Member

@bradkovach Thanks a lot for this!

Looks like you created this on your main branch and it's blockng me from pushing

You need to please run yarn update-rule-docs and commit the result

Copy link
Member

@JamesHenry JamesHenry left a comment

Choose a reason for hiding this comment

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

See comment

Copy link
Contributor Author

@bradkovach bradkovach left a comment

Choose a reason for hiding this comment

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

Ran the command to update the docs!

@bradkovach
Copy link
Contributor Author

@JamesHenry i think i got this sorted; do I need to do anything else on my end?

@bradkovach
Copy link
Contributor Author

@JamesHenry build here failed; looks like an issue with the nx build cache?

@bradkovach
Copy link
Contributor Author

bump. any updates on this nx cache failure? @JamesHenry

Copy link

codecov bot commented Mar 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.71%. Comparing base (8294112) to head (fe82e2c).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1726      +/-   ##
==========================================
+ Coverage   89.56%   89.71%   +0.14%     
==========================================
  Files         171      176       +5     
  Lines        3202     3287      +85     
  Branches      544      558      +14     
==========================================
+ Hits         2868     2949      +81     
- Misses        198      200       +2     
- Partials      136      138       +2     
Flag Coverage Δ
unittest 89.71% <ø> (+0.14%) ⬆️

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

Files Coverage Δ
...lint-plugin-template/src/rules/attributes-order.ts 88.23% <ø> (-0.16%) ⬇️
...gin-template/tests/rules/attributes-order/cases.ts 100.00% <ø> (ø)

... and 2 files with indirect coverage changes

@JamesHenry JamesHenry merged commit dc03968 into angular-eslint:main Mar 26, 2024
7 checks passed
@JamesHenry
Copy link
Member

Thanks again @bradkovach!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[attributes-order] Fixer mangles code when valueless structural directives are present in final position.
2 participants