Skip to content

Commit

Permalink
fix: Fix unnecessary_library_name warnings serverpod#2901 (serverpod#…
Browse files Browse the repository at this point in the history
  • Loading branch information
christerswahn authored Oct 24, 2024
1 parent 732ccfb commit c1ec3fa
Show file tree
Hide file tree
Showing 56 changed files with 28 additions and 102 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod_client/serverpod_client.dart' as _i1;
import 'example.dart' as _i2;
import 'package:serverpod_auth_client/serverpod_auth_client.dart' as _i3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod/serverpod.dart' as _i1;
import 'package:serverpod/protocol.dart' as _i2;
import 'package:serverpod_auth_server/serverpod_auth_server.dart' as _i3;
Expand Down
3 changes: 1 addition & 2 deletions examples/chat/chat_client/lib/src/protocol/protocol.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod_client/serverpod_client.dart' as _i1;
import 'channel.dart' as _i2;
import 'package:chat_client/src/protocol/channel.dart' as _i3;
Expand Down
3 changes: 1 addition & 2 deletions examples/chat/chat_server/lib/src/generated/protocol.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod/serverpod.dart' as _i1;
import 'package:serverpod/protocol.dart' as _i2;
import 'package:serverpod_auth_server/serverpod_auth_server.dart' as _i3;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Support for doing something awesome.
///
/// More dartdocs go here.
library serverpod_cloud_storage_gcp;
library;

export 'src/cloud_storage/google_cloud_storage.dart';
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library list_bucket_result;

import 'dart:convert';

import 'package:built_collection/built_collection.dart';
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library list_bucket_result_contents;

import 'dart:convert';

import 'package:built_value/built_value.dart';
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library aws_s3_upload;

import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// Support for doing something awesome.
///
/// More dartdocs go here.
library serverpod_cloud_storage_s3;
library;

export 'src/cloud_storage.dart/s3_cloud_storage.dart';
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library list_bucket_result;

import 'dart:convert';

import 'package:built_collection/built_collection.dart';
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library list_bucket_result_contents;

import 'dart:convert';

import 'package:built_value/built_value.dart';
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library aws_s3_upload;

import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library serverpod_auth_apple_flutter;

export 'src/signin_button.dart';
export 'src/auth.dart';
export 'package:serverpod_auth_shared_flutter/serverpod_auth_shared_flutter.dart';
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod_client/serverpod_client.dart' as _i1;
import 'apple_auth_info.dart' as _i2;
import 'auth_key.dart' as _i3;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
library serverpod_auth_email_flutter;

export 'src/signin_button.dart';
export 'src/auth.dart';
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
library serverpod_auth_firebase_flutter;

export 'src/auth.dart';
export 'src/signin_button.dart';
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library serverpod_auth_google_flutter;

export 'src/auth.dart';
export 'src/signin_button.dart';
export 'package:serverpod_auth_shared_flutter/serverpod_auth_shared_flutter.dart';
2 changes: 0 additions & 2 deletions modules/serverpod_auth/serverpod_auth_server/lib/module.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library protocol;

export 'src/business/config.dart';
export 'src/business/email_auth.dart';
export 'src/business/google_auth.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library protocol;

export 'src/business/authentication_handler.dart';
export 'src/business/user_authentication.dart';
export 'src/business/config.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod/serverpod.dart' as _i1;
import 'package:serverpod/protocol.dart' as _i2;
import 'apple_auth_info.dart' as _i3;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library serverpod_auth_shared_flutter;

export 'src/authentication_key_manager.dart';
export 'src/circular_user_image.dart';
export 'src/image_uploader.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod_client/serverpod_client.dart' as _i1;
import 'chat_join_channel.dart' as _i2;
import 'chat_join_channel_failed.dart' as _i3;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library serverpod_chat_flutter;

export 'src/chat_controller.dart';
export 'src/chat_dispatch.dart';
export 'src/chat_input.dart';
Expand Down
2 changes: 0 additions & 2 deletions modules/serverpod_chat/serverpod_chat_server/lib/module.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library protocol;

export 'src/business/config.dart';
export 'src/generated/endpoints.dart';
export 'src/generated/protocol.dart';
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library protocol;

export 'src/business/config.dart';
export 'src/generated/endpoints.dart';
export 'src/generated/protocol.dart';
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod/serverpod.dart' as _i1;
import 'package:serverpod/protocol.dart' as _i2;
import 'package:serverpod_auth_server/serverpod_auth_server.dart' as _i3;
Expand Down
2 changes: 0 additions & 2 deletions packages/serverpod/lib/database.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library database;

export 'src/database/concepts/columns.dart';
export 'src/database/concepts/database_result.dart';
export 'src/database/concepts/expressions.dart';
Expand Down
2 changes: 0 additions & 2 deletions packages/serverpod/lib/server.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library server;

export 'src/authentication/authentication_info.dart';
export 'src/authentication/scope.dart';
export 'src/generated/server_health_metric.dart';
Expand Down
2 changes: 1 addition & 1 deletion packages/serverpod/lib/serverpod_internal.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This library should only be imported by Serverpod packages
library serverpod_internal;
library;

// ignore: invalid_export_of_internal_element
export 'src/server/websocket_request_handlers/helpers/method_stream_manager.dart';
3 changes: 1 addition & 2 deletions packages/serverpod/lib/src/generated/protocol.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod/serverpod.dart' as _i1;
import 'package:serverpod/protocol.dart' as _i2;
import 'authentication/revoked_authentication_auth_id.dart' as _i3;
Expand Down
2 changes: 0 additions & 2 deletions packages/serverpod_client/lib/serverpod_client.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library serverpod_client;

export 'package:serverpod_serialization/serverpod_serialization.dart';
export 'src/auth_key_manager.dart';
export 'src/connectivity_monitor.dart';
Expand Down
2 changes: 0 additions & 2 deletions packages/serverpod_flutter/lib/serverpod_flutter.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
library serverpod_flutter;

export 'src/flutter_connectivity_monitor.dart';
export 'src/localhost_web.dart' if (dart.library.io) 'src/localhost_io.dart';
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library serverpod_serialization;

export 'package:uuid/uuid.dart';

export 'src/auth_encoding.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Serverpod's default authentication key encoding and decoding.
library serverpod_serialization.auth_encoding;
library;

import 'dart:convert';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/// Support for doing something awesome.
///
/// More dartdocs go here.
library serverpod_service_client;
library;

export 'src/protocol/protocol.dart';
export 'src/service_key_manager.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod_client/serverpod_client.dart' as _i1;
import 'cache_info.dart' as _i2;
import 'caches_info.dart' as _i3;
Expand Down
2 changes: 0 additions & 2 deletions packages/serverpod_shared/lib/serverpod_shared.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library serverpod_shared;

export 'src/certificates.dart';
export 'src/config.dart';
export 'src/constants.dart';
Expand Down
2 changes: 0 additions & 2 deletions packages/serverpod_test/lib/serverpod_test.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library serverpod_test;

export 'src/with_serverpod.dart';
export 'src/test_session_builder.dart';
export 'src/util.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
library serverpod_test;

// ATTENTION: This file should never be imported directly.
// It is used to re-export the public parts of the test tools
// in the generated test tools file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod_client/serverpod_client.dart' as _i1;
import 'module_class.dart' as _i2;
export 'module_class.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
library protocol;

export 'src/generated/endpoints.dart';
export 'src/generated/protocol.dart';
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod/serverpod.dart' as _i1;
import 'package:serverpod/protocol.dart' as _i2;
import 'module_class.dart' as _i3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod_client/serverpod_client.dart' as _i1;
import 'example.dart' as _i2;
export 'example.dart';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod/serverpod.dart' as _i1;
import 'package:serverpod/protocol.dart' as _i2;
import 'example.dart' as _i3;
Expand Down
3 changes: 1 addition & 2 deletions tests/serverpod_test_client/lib/src/protocol/protocol.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod_client/serverpod_client.dart' as _i1;
import 'defaults/boolean/bool_default.dart' as _i2;
import 'defaults/boolean/bool_default_mix.dart' as _i3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod_client/serverpod_client.dart' as _i1;
import 'module_class.dart' as _i2;
export 'module_class.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
library protocol;

export 'src/generated/endpoints.dart';
export 'src/generated/protocol.dart';
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
// ignore_for_file: type_literal_in_constant_pattern
// ignore_for_file: use_super_parameters

library protocol; // ignore_for_file: no_leading_underscores_for_library_prefixes

// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'package:serverpod/serverpod.dart' as _i1;
import 'package:serverpod/protocol.dart' as _i2;
import 'module_class.dart' as _i3;
Expand Down
Loading

0 comments on commit c1ec3fa

Please sign in to comment.