Skip to content

Commit

Permalink
Unused baseUrl parameter warning fix (#677)
Browse files Browse the repository at this point in the history
#676 I am passing baseUrl through @RESTapi, it is showing a warning that I am not using the baseUrl parameter from the Auto-generated(g.dart) file

With the following comment, this issue can be resolved
// ignore_for_file: unused_element
  • Loading branch information
SaurabhS120 authored Jul 2, 2024
1 parent 3c93737 commit c580410
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator/lib/src/generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import 'package:source_gen/source_gen.dart';
import 'package:tuple/tuple.dart';

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

class RetrofitOptions {
RetrofitOptions({
Expand Down

0 comments on commit c580410

Please sign in to comment.