Skip to content

Commit fdc099a

Browse files
authored
chore: remove unnecessary library names (#211)
1 parent 8a81865 commit fdc099a

File tree

10 files changed

+10
-9
lines changed

10 files changed

+10
-9
lines changed

analysis_options.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ linter:
2626
close_sinks: true
2727
cascade_invocations: true
2828
only_throw_errors: true
29+
unnecessary_library_name: true
2930
always_put_required_named_parameters_first: true

lib/binding_coap.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/// the [WoT Binding Templates Specification][spec link] for CoAP.
99
///
1010
/// [spec link]: https://www.w3.org/TR/wot-binding-templates/
11-
library binding_coap;
11+
library;
1212

1313
export "package:coap/coap.dart"
1414
show Certificate, DerCertificate, PemCertificate;

lib/binding_http.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/// the [WoT Binding Templates Specification][spec link] for HTTP.
99
///
1010
/// [spec link]: https://www.w3.org/TR/wot-binding-templates/
11-
library binding_http;
11+
library;
1212

1313
export "src/binding_http/http_client_factory.dart";
1414
export "src/binding_http/http_config.dart";

lib/binding_mqtt.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/// the latest [WoT Binding Templates Specification][spec link] for MQTT.
99
///
1010
/// [spec link]: https://w3c.github.io/wot-binding-templates/bindings/protocols/mqtt
11-
library binding_mqtt;
11+
library;
1212

1313
export "src/binding_mqtt/mqtt_client_factory.dart";
1414
export "src/binding_mqtt/mqtt_config.dart";

lib/core.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/// Core implementation providing Scripting API implementations, interfaces
88
/// for protocol bindings, and the `Servient` class which provides the WoT
99
/// runtime used for consuming, exposing, and discovering Things.
10-
library core;
10+
library;
1111

1212
// TODO(JKRhb): Reorganize top-level core package into smaller packages.
1313
export "src/core/definitions.dart";

lib/src/core/definitions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/// models for passing credentials to the Scripting API implementation.
1010
///
1111
/// [spec link]: https://www.w3.org/TR/wot-thing-description11/
12-
library definitions;
12+
library;
1313

1414
export "package:dcaf/dcaf.dart" show AuthServerRequestCreationHint;
1515

lib/src/core/definitions/interaction_affordances/interaction_affordance.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
/// Sub-library for defining the three kinds of interaction affordances
88
/// (properties, actions, events).
9-
library interaction_affordance;
9+
library;
1010

1111
import "package:curie/curie.dart";
1212
import "package:meta/meta.dart";

lib/src/core/extensions.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
// SPDX-License-Identifier: BSD-3-Clause
66

77
/// Sub-library for extensions used by `dart_wot`.
8-
library extensions;
8+
library;
99

1010
export "extensions/uri_extensions.dart";

lib/src/core/implementation.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// SPDX-License-Identifier: BSD-3-Clause
66

77
/// Sub-library containing the actual implementation of the WoT Scripting API.
8-
library implementation;
8+
library;
99

1010
export "implementation/augmented_form.dart";
1111
export "implementation/codecs/content_codec.dart";

lib/src/core/scripting_api.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
/// [WoT Scripting API Specification][spec link].
99
///
1010
/// [spec link]: https://www.w3.org/TR/wot-scripting-api/
11-
library scripting_api;
11+
library;
1212

1313
export "scripting_api/consumed_thing.dart";
1414
export "scripting_api/data_schema_value.dart";

0 commit comments

Comments
 (0)