Skip to content

Commit

Permalink
fix new lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevertus committed Nov 27, 2023
1 parent 805f691 commit ac1ac16
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 10 deletions.
1 change: 0 additions & 1 deletion lib/src/annotations/file.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// Writing Minecrafts functions annotations becomes really easy. Just annotate a Widget variable that should be inside of your function with `@Func()`:
class Func {
final String? name;
final String? path;
Expand Down
1 change: 0 additions & 1 deletion lib/src/annotations/pack.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// The `@Pck()` annotation works similar to @Func. You annotate a File List variable and it generates a Widget for this Pack.
class Pck {
final String? name;
final String? main;
Expand Down
1 change: 0 additions & 1 deletion lib/src/annotations/project.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// This can automatically generate a main function with all necessary pieces to actually generate all packs and files.
class Prj {
final String? name;
final int? version;
Expand Down
1 change: 0 additions & 1 deletion lib/src/annotations/widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
/// Log('Hello $name $lastname!'),
///]);
///```
// ignore: constant_identifier_names
const Wdg = WidgetAnnotation();

Expand Down
5 changes: 2 additions & 3 deletions lib/src/basic/pack.dart
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ class Pack extends Widget {
'name': name,
'main': main?.toMap(),
'load': load?.toMap(),
'modules':
modules == null ? null : modules!.map((x) => x.toMap()).toList(),
'files': files == null ? null : files!.map((x) => x.toMap()).toList(),
'modules': modules?.map((x) => x.toMap()).toList(),
'files': files?.map((x) => x.toMap()).toList(),
}
};
}
Expand Down
2 changes: 1 addition & 1 deletion lib/src/basic/parsable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import 'package:gson/parsable.dart';

class Parsable extends GsonParsable {
/// ObjD's own type of a Parsable
Parsable(String parsable) : super(parsable);
Parsable(super.parsable);
}
1 change: 0 additions & 1 deletion lib/src/build/context.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
/// }
/// }
/// ```
class Context {
List<String> prefixes;
List<String> suffixes;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/utils/recipe.dart
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ class Recipe extends Widget {

ingredients.forEach((k, item) {
// If the item is not known
if (!items.containsValue(item)) {
if (!items.containsKey(item)) {
// choose a new key from _CHARS
items[item] = _CHARS[items.length];
}
Expand Down

0 comments on commit ac1ac16

Please sign in to comment.