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

🎨 Adopt styler #116

Merged
merged 1 commit into from
Jan 10, 2024
Merged

🎨 Adopt styler #116

merged 1 commit into from
Jan 10, 2024

Conversation

randycoulman
Copy link
Collaborator

Describe the purpose of your pull request

Adopt the Styler library, which is an Elixir formatter plugin that imposes some opinionated formatting on the code in place of a number of Credo rules.

While I don't always prefer its opinions, I really like having it auto-fix a number of issues, and I find that it's worth the tradeoff to adopt it.

NOTE: This PR is based on #115 because Elixir 1.15 fixes a formatter race condition in the VSCode ElixirLS plugin. In earlier versions of Elixir, the formatter wouldn't always run correctly when saving a file. Since Styler is a formatter plugin, the problem was even more noticeable.

Related issues (only if applicable)

None

Requirement checklist (only if applicable)

  • I have covered the applied changes with automated tests.
  • I have executed the full automated test set against my changes.
  • I have validated my changes against all supported platform versions.
  • I have read and accepted the contribution agreement.

@randycoulman randycoulman requested a review from a team as a code owner December 16, 2023 05:14
Base automatically changed from upgrade-versions to main January 9, 2024 01:55
@randycoulman randycoulman mentioned this pull request Jan 9, 2024
30 tasks
Adopt the [Styler](https://github.com/adobe/elixir-styler) library, which is an Elixir formatter plugin that imposes some opinionated formatting on the code in place of a number of Credo rules.

While I don't always prefer its opinions, I really like have it auto-fix a number of issues, and I find that it's worth the tradeoff to adopt it.
Copy link

codecov bot commented Jan 10, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (7906b96) 94.28% compared to head (31f9e44) 94.27%.

Files Patch % Lines
lib/config_cat/client.ex 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #116      +/-   ##
==========================================
- Coverage   94.28%   94.27%   -0.01%     
==========================================
  Files          33       33              
  Lines         770      769       -1     
==========================================
- Hits          726      725       -1     
  Misses         44       44              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@randycoulman randycoulman merged commit cf572a3 into main Jan 10, 2024
8 of 9 checks passed
@randycoulman randycoulman deleted the adopt-styler branch January 10, 2024 05:05
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.

2 participants