Skip to content

Commit

Permalink
Merge branch 'fix-ambiguous-import' of https://github.com/fmorschel/sdk
Browse files Browse the repository at this point in the history
… into fix-ambiguous-import
  • Loading branch information
FMorschel committed Jan 16, 2025
2 parents 6d57614 + c93d33b commit aa74182
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/analyzer/lib/dart/analysis/code_style_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ abstract class CodeStyleOptions {
/// The preferred quote based on the enabled lints, otherwise a single quote.
String get preferredQuoteForStrings;

/// Whether combinators should be ordered alphabetically. Difined by
/// `combinators_ordering`.
bool get sortCombinators;

/// Whether constructors should be sorted first, before other class members.
bool get sortConstructorsFirst;

Expand Down
3 changes: 3 additions & 0 deletions pkg/analyzer/lib/src/analysis_options/code_style_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class CodeStyleOptionsImpl implements CodeStyleOptions {
@override
String get preferredQuoteForStrings => _lintQuote() ?? "'";

@override
bool get sortCombinators => _isLintEnabled('combinators_ordering');

@override
bool get sortConstructorsFirst => _isLintEnabled('sort_constructors_first');

Expand Down

0 comments on commit aa74182

Please sign in to comment.