Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary library names #211

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ linter:
close_sinks: true
cascade_invocations: true
only_throw_errors: true
unnecessary_library_name: true
always_put_required_named_parameters_first: true
2 changes: 1 addition & 1 deletion lib/binding_coap.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// the [WoT Binding Templates Specification][spec link] for CoAP.
///
/// [spec link]: https://www.w3.org/TR/wot-binding-templates/
library binding_coap;
library;

export "package:coap/coap.dart"
show Certificate, DerCertificate, PemCertificate;
Expand Down
2 changes: 1 addition & 1 deletion lib/binding_http.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// the [WoT Binding Templates Specification][spec link] for HTTP.
///
/// [spec link]: https://www.w3.org/TR/wot-binding-templates/
library binding_http;
library;

export "src/binding_http/http_client_factory.dart";
export "src/binding_http/http_config.dart";
Expand Down
2 changes: 1 addition & 1 deletion lib/binding_mqtt.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// the latest [WoT Binding Templates Specification][spec link] for MQTT.
///
/// [spec link]: https://w3c.github.io/wot-binding-templates/bindings/protocols/mqtt
library binding_mqtt;
library;

export "src/binding_mqtt/mqtt_client_factory.dart";
export "src/binding_mqtt/mqtt_config.dart";
2 changes: 1 addition & 1 deletion lib/core.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// Core implementation providing Scripting API implementations, interfaces
/// for protocol bindings, and the `Servient` class which provides the WoT
/// runtime used for consuming, exposing, and discovering Things.
library core;
library;

// TODO(JKRhb): Reorganize top-level core package into smaller packages.
export "src/core/definitions.dart";
Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/definitions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/// models for passing credentials to the Scripting API implementation.
///
/// [spec link]: https://www.w3.org/TR/wot-thing-description11/
library definitions;
library;

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

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

import "package:curie/curie.dart";
import "package:meta/meta.dart";
Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
// SPDX-License-Identifier: BSD-3-Clause

/// Sub-library for extensions used by `dart_wot`.
library extensions;
library;

export "extensions/uri_extensions.dart";
2 changes: 1 addition & 1 deletion lib/src/core/implementation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// SPDX-License-Identifier: BSD-3-Clause

/// Sub-library containing the actual implementation of the WoT Scripting API.
library implementation;
library;

export "implementation/augmented_form.dart";
export "implementation/codecs/content_codec.dart";
Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/scripting_api.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/// [WoT Scripting API Specification][spec link].
///
/// [spec link]: https://www.w3.org/TR/wot-scripting-api/
library scripting_api;
library;

export "scripting_api/consumed_thing.dart";
export "scripting_api/data_schema_value.dart";
Expand Down
Loading