Skip to content

Commit

Permalink
fix: analyzer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Dec 7, 2024
1 parent 244e7b1 commit c8b2dbc
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion slang/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include: package:lints/recommended.yaml
include: package:lints/core.yaml
linter:
rules:
prefer_single_quotes: true
Expand Down
4 changes: 3 additions & 1 deletion slang/lib/src/builder/generator/generate_translations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,9 @@ void _generateClass(
if (!localeData.base ||
node.interface?.attributes
.any((attribute) => attribute.attributeName == key) ==
true) buffer.write('@override ');
true) {
buffer.write('@override ');
}

// even if this attribute exist, it has to satisfy the same signature as
// specified in the interface
Expand Down
3 changes: 0 additions & 3 deletions slang/lib/src/builder/utils/string_extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ extension StringExtensions on String {
return getWords().map((word) => word.toLowerCase()).join('_');
case null:
return this;
default:
print('Unknown case: $style');
return this;
}
}

Expand Down
2 changes: 1 addition & 1 deletion slang/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ dependencies:

dev_dependencies:
expect_error: ^1.0.7
lints: ^2.0.0
lints: any
test: ^1.21.0
1 change: 1 addition & 0 deletions slang/test/integration/main/compilation_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@Skip('not updated for multiple files')
library;

import 'package:expect_error/expect_error.dart';
import 'package:test/test.dart';
Expand Down
2 changes: 1 addition & 1 deletion slang_build_runner/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ dependencies:
slang: '>=4.3.0 <4.4.0'

dev_dependencies:
lints: ^2.0.0
lints: any

0 comments on commit c8b2dbc

Please sign in to comment.