Skip to content

Commit

Permalink
[generator] Adds a unnecessary_string_interpolations rule to suppre…
Browse files Browse the repository at this point in the history
…ss the analyzer warnings for the generated files. (#718)

* [generator] Adds a unnecessary_string_interpolations rule to suppress the analyzer warnings for the generated files.

* [generator] Adds a `unnecessary_string_interpolations` rule to suppress the analyzer warnings for the generated files.
  • Loading branch information
RTAzis authored Oct 28, 2024
1 parent 7ece164 commit 01010f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion generator/lib/src/generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import 'package:retrofit/retrofit.dart' as retrofit;
import 'package:source_gen/source_gen.dart';

const _analyzerIgnores =
'// ignore_for_file: unnecessary_brace_in_string_interps,no_leading_underscores_for_local_identifiers,unused_element';
'// ignore_for_file: unnecessary_brace_in_string_interps,no_leading_underscores_for_local_identifiers,unused_element,unnecessary_string_interpolations';

class RetrofitOptions {
RetrofitOptions({
Expand Down
2 changes: 1 addition & 1 deletion generator/test/src/generator_test_src.dart
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ abstract class MultipleTypedExtrasTest {

@ShouldGenerate(
'''
// ignore_for_file: unnecessary_brace_in_string_interps,no_leading_underscores_for_local_identifiers,unused_element
// ignore_for_file: unnecessary_brace_in_string_interps,no_leading_underscores_for_local_identifiers,unused_element,unnecessary_string_interpolations
class _RestClient implements RestClient {
_RestClient(
Expand Down

0 comments on commit 01010f9

Please sign in to comment.