Upstream merge 1.11.0#11
Merged
JesseHerrick merged 149 commits intomainfrom May 6, 2026
Merged
Conversation
Fixed example for "drop superfluous _..."
Update styles.md
* `List.zip` => `Enum.zip` * `first..last = range` => `first..last//_ = range`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
Medium Risk
Medium risk because it adds/changes multiple AST rewrites (e.g., single-clause
caseto assignments, new pipe/Req optimizations, alias application) that can alter generated code and, in a few cases, runtime behavior.Overview
Bumps Styler to
1.11.0and expands the formatter’s rewrite set, including single-clausecase→ assignment extraction, strictercondfinal-clause normalization totrue, new stdlib pipe optimizations, and Req pipe collapsing (e.g.Req.new/merge+ execute →Req.execute/2).Improves module directive handling by adding alias application and better alias lifting in snippets, deduping embedded aliases, and preventing module attributes referenced by
use/@moduledocfrom being moved below their references.Adds experimental mix tasks
mix styler.remove_unused(removes unusedalias|import|requirebased on compile warnings) andmix styler.inline_attrs(inlines single-use literal module attributes), plus a newminimum_supported_elixir_versionconfig used to gate deprecation rewrites like:timer.hours/1→to_timeout/1.Includes internal refactors/bugfixes affecting traversal and comment/line handling (
Zipperpath structure, comment range detection, config sorting), plus a major docs reorg (newdocs/general_styles.md, styles TOC) and updated README/CHANGELOG.Reviewed by Cursor Bugbot for commit 0d190bf. Bugbot is set up for automated code reviews on this repo. Configure here.