Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

bump lints dep and fix #460

Merged
merged 1 commit into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
sdk: [3.0.0, dev]
sdk: [3.1.0, dev]
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
- uses: dart-lang/setup-dart@f0ead981b4d9a35b37f30d36160575d60931ec30
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## 4.10.1-wip

* Require Dart `^3.1.0`

## 4.10.0

* Add `Library.docs` to support emitting doc comments on libraries.
Expand Down
5 changes: 0 additions & 5 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,14 @@ linter:
- avoid_unused_constructor_parameters
- cancel_subscriptions
- cascade_invocations
- comment_references
- join_return_with_assignment
- literal_only_boolean_expressions
- missing_whitespace_between_adjacent_strings
- no_adjacent_strings_in_list
- no_runtimeType_toString
- package_api_docs
- prefer_const_constructors
- prefer_const_declarations
- prefer_expression_function_bodies
- prefer_final_locals
- prefer_relative_imports
- test_types_in_equals
- unnecessary_await_in_return
- use_string_buffers
- use_super_parameters
15 changes: 5 additions & 10 deletions lib/src/specs/class.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,11 @@ enum ClassModifier {
final$,
interface;

String get name {
switch (this) {
case ClassModifier.base:
return 'base';
case ClassModifier.final$:
return 'final';
case ClassModifier.interface:
return 'interface';
}
}
String get name => switch (this) {
ClassModifier.base => 'base',
ClassModifier.final$ => 'final',
ClassModifier.interface => 'interface'
};
}

abstract class ClassBuilder extends Object
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A fluent, builder-based library for generating valid Dart code.
repository: https://github.com/dart-lang/code_builder

environment:
sdk: ^3.0.0
sdk: ^3.1.0

dependencies:
built_collection: ^5.0.0
Expand All @@ -17,7 +17,7 @@ dev_dependencies:
build: ^2.0.0
build_runner: ^2.0.3
built_value_generator: ^8.0.0
dart_flutter_team_lints: ^2.0.0
dart_flutter_team_lints: ^3.0.0
dart_style: ^2.3.4
source_gen: ^1.0.0
test: ^1.16.0