Skip to content

Commit

Permalink
chore: improve more issue titles
Browse files Browse the repository at this point in the history
  • Loading branch information
parth-deepsource committed Dec 13, 2023
1 parent d451d45 commit 486b196
Show file tree
Hide file tree
Showing 73 changed files with 120 additions and 120 deletions.
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1226.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "The argument type '{0}' can't be assigned to the parameter type '{1} Function(Object)' or '{1} Function(Object, StackTrace)'"
title = "Incompatible function signature for `Future.catchError` argument."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -55,4 +54,5 @@ void f(Future<int> f) {
f.catchError((Object error) => 0);
}
```
'''
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1228.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

title = "The asset directory '{0}' doesn't exist"
title = "Asset directory does not exist."
weight = 70
severity = "major"
category = "bug-risk"
Expand All @@ -18,7 +18,7 @@ assets:
name: example
flutter:
assets:
- [!assets/!]
- assets/
```
#### Common fixes
Expand Down
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/.deepsource/issues/DRT-W1229.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ produces this diagnostic because it's listed as an asset:
name: example
flutter:
assets:
- [!doesNotExist.gif!]
- doesNotExist.gif
```
#### Common fixes
Expand Down
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/.deepsource/issues/DRT-W1230.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ key is a string when a list is expected:
{% prettify yaml tag=pre+code %}
name: example
flutter:
assets: [!assets/!]
assets: assets/
```
#### Common fixes
Expand Down
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/.deepsource/issues/DRT-W1231.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ a map:
name: example
flutter:
assets:
- [!image.gif: true!]
- image.gif: true
```
#### Common fixes
Expand Down
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1246.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "The built-in identifier '{0}' can't be used as a type"
title = "Invalid use of built-in identifier as a type."
weight = 70
severity = "major"
category = "bug-risk"
Expand All @@ -24,4 +23,5 @@ Replace the built-in identifier with the name of a valid type:
```dart
List<int> x;
```
'''
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/.deepsource/issues/DRT-W1250.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

title = "The switch case expression type '{0}' must be a subtype of the switch expression type '{1}'"
title = "The switch case expression type must be a subtype of the switch expression type."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1253.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "The name '{0}' isn't a type, so it can't be used in an 'as' expression"
title = "Invalid type in 'as' expression."
weight = 70
severity = "major"
category = "bug-risk"
Expand All @@ -26,4 +25,5 @@ Replace the name with the name of a type:
num x = 0;
int y = x as int;
```
'''
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1266.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "Can't define the 'const' constructor because the field '{0}' is initialized with a non-constant value"
title = "Non-const field initialized in a const constructor."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -43,4 +42,5 @@ class C {
C();
}
```
'''
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/.deepsource/issues/DRT-W1267.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

title = "A constant constructor can't call a non-constant super constructor of '{0}'"
title = "Constant constructor can't call a non-constant super constructor."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1286.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "Dead code: This on-catch block won't be executed because '{0}' is a subtype of '{1}' and hence will have been caught already"
title = "Unreachable `catch` clause after a more general one."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -48,4 +47,5 @@ void f() {
}
}
```
'''
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/.deepsource/issues/DRT-W1293.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

title = "The late local variable '{0}' is definitely unassigned at this point"
title = "Unassigned late local variable is definitely unassigned at this point."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/.deepsource/issues/DRT-W1294.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ top-level `dependencies` key is a list:
{% prettify yaml tag=pre+code %}
name: example
dependencies:
[!- meta!]
- meta
```
#### Common fixes
Expand Down
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/.deepsource/issues/DRT-W1303.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

title = "The constructor with name '{0}' is already defined. The unnamed constructor is already defined"
title = "Constructor already defined."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1322.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "The class '{0}' can't be empty because it's a subclass of '{1}'"
title = "Empty subclass of 'Struct' or 'Union' is not supported."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -50,4 +49,5 @@ extends clause:
```dart
class C {}
```
'''
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1334.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "List literals require one type argument or none, but {0} found"
title = "List literals should have at most one type argument."
weight = 70
severity = "major"
category = "bug-risk"
Expand All @@ -24,4 +23,5 @@ Remove all except one of the type arguments:
```dart
var l = <int>[];
```
'''
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1335.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "Set literals require one type argument or none, but {0} were found"
title = "Set literals should have at most one type argument."
weight = 70
severity = "major"
category = "bug-risk"
Expand All @@ -24,4 +23,5 @@ Remove all except one of the type arguments:
```dart
var s = <int>{0, 1};
```
'''
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1339.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "The symbol '{0}' is defined in a legacy library, and can't be re-exported from a library with null safety enabled"
title = "Incompatible null safety between exported libraries."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -47,4 +46,5 @@ opted-in library, then it's valid for your library to indirectly export the
symbols from the opted-in library. You can do so by adding a hide
combinator to the export directive in your library that hides all of the
names declared in the opted-out library.
'''
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1355.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "Too many positional arguments: {0} expected, but {1} found"
title = "Too many positional arguments."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -30,4 +29,5 @@ void g() {
f(1, 2);
}
```
'''
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1358.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "The field '{0}' can't be initialized twice in the same constructor"
title = "Duplicate field initialization in constructor."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -33,4 +32,5 @@ class C {
C() : f = 0;
}
```
'''

Check failure on line 36 in analyzers/dart-analyze/.deepsource/issues/DRT-W1358.toml

View workflow job for this annotation

GitHub Actions / validate

Issue title should not have a period `.`
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1363.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "The initializer type '{0}' can't be assigned to the field type '{1}' in a const constructor. The initializer type '{0}' can't be assigned to the field type '{1}'"
title = "Incompatible type in field initialization."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -45,4 +44,5 @@ class C {
C() : s = 0;
}
```
'''
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/.deepsource/issues/DRT-W1372.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ top-level `flutter` key is a string:
{% prettify yaml tag=pre+code %}
name: example
flutter: [!true!]
flutter: true
```
#### Common fixes
Expand Down
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1374.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "The type '{0}' used in the 'for' loop must implement '{1}'"
title = "Invalid type in for-in loop."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -32,4 +31,5 @@ void f(Map<String, String> m) {
}
}
```
'''
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1378.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "The return type of getter '{0}' is '{1}' which isn't a subtype of the type '{2}' of its setter '{3}'"
title = "Incompatible types for getter and setter."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -47,4 +46,5 @@ class C {
set x(int y) {}
}
```
'''
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/.deepsource/issues/DRT-W1381.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

title = "A concrete instance member named '{0}' can't be declared in a class that implements 'Enum'. A concrete instance member named '{0}' can't be inherited from '{1}' in a class that implements 'Enum'"
title = "Illegal concrete member in Enum."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1382.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "An instance member named 'values' can't be declared in a class that implements 'Enum'. An instance member named 'values' can't be inherited from '{0}' in a class that implements 'Enum'"
title = "Invalid declaration of 'values' in a class that implements 'Enum'."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -40,4 +39,5 @@ abstract class C implements Enum {
int get value => 0;
}
```
'''
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1397.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "'{0}' is a static field in the enclosing class. Fields initialized in a constructor can't be static"
title = "Static field initialized in constructor."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -54,4 +53,5 @@ class C {
}
}
```
'''
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1414.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "The member '{0}' can't be exported as a part of a package's public API"
title = "Invalid export of internal declaration."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -37,4 +36,5 @@ export 'src/a.dart' hide One;
```
If the export isn't needed, then remove it.
'''
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/.deepsource/issues/DRT-W1417.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

title = "Factory method '{0}' must have a return type"
title = "Factory method must have a return type."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1421.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "Fields in struct classes can't have the type '{0}'. They can only be declared as 'int', 'double', 'Array', 'Pointer', or subtype of 'Struct' or 'Union'"
title = "Invalid field type in subclass of `Struct`"
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -43,4 +42,5 @@ final class C extends Struct {
external int i;
}
```
'''
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1422.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "'{1}.{0}' ('{2}') isn't a valid concrete implementation of '{3}.{0}' ('{4}'). The setter '{1}.{0}' ('{2}') isn't a valid concrete implementation of '{3}.{0}' ('{4}')"
title = "Invalid concrete implementation of abstract method."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -83,4 +82,5 @@ class B extends A {
int add(num a) => a.floor();
}
```
'''

Check failure on line 86 in analyzers/dart-analyze/.deepsource/issues/DRT-W1422.toml

View workflow job for this annotation

GitHub Actions / validate

Issue title should not have a period `.`
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1437.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "A value of type '{0}' can't be returned by the 'onError' handler because it must be assignable to '{1}'. The return type '{0}' isn't assignable to '{1}', as required by 'Future.catchError'"
title = "Incompatible return type in `Future.catchError` invocation."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -52,4 +51,5 @@ void f(Future<String> future, String Function(dynamic, StackTrace) callback) {
future.catchError(callback);
}
```
'''
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1440.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "Constant list literals can't include a type parameter as a type argument, such as '{0}'. Constant map literals can't include a type parameter as a type argument, such as '{0}'. Constant set literals can't include a type parameter as a type argument, such as '{0}'"
title = "Invalid type argument in constant list, map, or set literal."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -48,4 +47,5 @@ runtime, then remove the keyword `const`:
```dart
List<T> newList<T>() => <T>[];
```
'''
4 changes: 2 additions & 2 deletions analyzers/dart-analyze/.deepsource/issues/DRT-W1443.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

title = "The member '{0}' can only be used within its package"
title = "Reference to internal declaration outside the package."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down Expand Up @@ -33,4 +32,5 @@ void f(C c) {}
#### Common fixes
Remove the reference to the internal declaration.
'''
2 changes: 1 addition & 1 deletion analyzers/dart-analyze/.deepsource/issues/DRT-W1455.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

title = "Can't reference an undefined label '{0}'"
title = "Undefined label."
weight = 70
severity = "major"
category = "bug-risk"
Expand Down
Loading

0 comments on commit 486b196

Please sign in to comment.