fix(deps): update dependency dart_style to v3.1.8#35
Open
renovate[bot] wants to merge 1 commit intodevelopfrom
Open
fix(deps): update dependency dart_style to v3.1.8#35renovate[bot] wants to merge 1 commit intodevelopfrom
renovate[bot] wants to merge 1 commit intodevelopfrom
Conversation
32ca5b5 to
26a1211
Compare
26a1211 to
95f5e91
Compare
Author
|
95f5e91 to
1fccdd5
Compare
1fccdd5 to
3a8d415
Compare
3a8d415 to
28afac5
Compare
28afac5 to
cf2d3a8
Compare
cf2d3a8 to
790c5e8
Compare
790c5e8 to
aeb6227
Compare
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.
This PR contains the following updates:
3.0.1→3.1.8Release Notes
dart-lang/dart_style (dart_style)
v3.1.8Compare Source
Style changes
Format extension type representation clauses the same way primary constructor
formal parameter lists are formatted. This rarely makes a difference but
produces better formatting when the representation type is long and there are
other clauses on the extension type, as in:
This change is not language versioned. (The old style is always worse, and
continuing to support it would add complexity to the formatter.)
Force blank lines around a mixin or extension type declaration if it doesn't
have a
;body:The formatter already forces blank lines around class, enum, and extension
declarations. Mixins and extension types were overlooked. This makes them
consistent. This style change is language versioned and only affects
libraries at 3.13 or higher.
Note that the formatter allows classes and extension types whose body is
;to not have a blank line above or below them.
Internal changes
analyzer: '^12.0.0'.v3.1.7Compare Source
analyzer: '>=10.0.0 <12.0.0'.v3.1.6Compare Source
Style changes
;inan enum with members unless there actually is a trailing comma.
(Fix by @Barbirosha.)
Internal changes
sdk: ^3.10.0.v3.1.5Compare Source
v3.1.4Compare Source
analyzer: '^10.0.0'.v3.1.3Compare Source
No longer format imports with configurations and a prefix in the wrong order.
The parser used to accept this without error even though it violated the
language spec. The parser is being fixed, so the formatter will no longer
accept or format code like:
Don't force a space between
?and.if a null-aware element contains adot shorthand.
Require
analyzer: '>=8.2.0 <10.0.0'.Require
args: ^2.5.0.Require
sdk: ^3.9.0.Bug fixes
@dart=version comments when determining which >3.7 style to apply.The formatter correctly used those comments to switch between the old short
and new tall style, but ignored them for language versioned style rule changes
after 3.7. Now the language version of the file is consistently respected for
all style rules (#1762).
v3.1.2Compare Source
package:analyzer.Bug fixes
trailing_commas: preserve) applies to recordtype annotations too (#1721).
Style changes
This change only applies to code whose language version is 3.10 or higher:
When
trailing_commasispreserve, preserve a trailing comma after the lastenum constant when members are present (#1678, #1729).
(Thanks to jellynoone@ for this change.)
v3.1.1Compare Source
v3.1.0Compare Source
This release contains a fairly large number of style changes in response to
feedback we got from shipping the new tall style formatter.
Features
Allow preserving trailing commas and forcing the surrounding construct to
split even when it would otherwise fit on one line. This is off by default
(because it breaks reversibility among other reasons) but can be enabled
by adding this to a surrounding
analysis_options.yamlfile:This is similar to how trailing commas work in the old short style formatter
applied to code before language version 3.7.
Bug fixes
a trailing comment (#1639).
Style changes
The following style changes are language versioned and only affect code whose
language version is 3.8 or later. Dart code at 3.7 or earlier is formatted the
same as it was before.
Allow more code on the same line as a named argument or
=>(#1536, #1545,#1668, #1679).
Avoid splitting chains containing only properties.
Note that this only applies to
.chains that are only properties. If thereare method calls in the chain, then it prefers to split the chain instead of
splitting at
=,:, or=>.Allow the target or property chain part of a split method chain on the RHS of
=,:, and=>(#1466).Allow the condition part of a split conditional expression on the RHS of
=,:, and=>(#1465).Don't indent conditional branches redundantly after
=,:, and=>.Indent conditional branches past the operators (#1534).
Block format record types in typedefs (#1651):
Eagerly split argument lists whose contents are complex enough to be easier
to read spread across multiple lines even if they would otherwise fit on a
single line (#1660). The rules are basically:
If an argument list contains at least three named arguments, at least one
of which must be directly in the argument list and at least one of which
must be nested in an inner argument list, then force the outer one to split.
We make an exception where a named argument whose expression is a simple
number, Boolean, or null literal doesn't count as a named argument.
If a list, set, or map literal is the immediate expression in a named
argument and contains any argument lists with a named argument, then force
the collection to split.
Configuration
📅 Schedule: Branch creation - "before 10am on Monday" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.