Fix new lines at the end of file

This commit is contained in:
Szymon Uglis 2021-02-09 01:37:01 +01:00
parent 10747150b3
commit 53b0712dac
No known key found for this signature in database
GPG key ID: 112376C5BEE91FE2
38 changed files with 38 additions and 38 deletions

View file

@ -17,4 +17,4 @@ after_failure:
cache: cache:
directories: directories:
- $HOME/.pub-cache - $HOME/.pub-cache

View file

@ -19,4 +19,4 @@ If adding new functionality or modifying existing, documentation should be added
We attempt to conform [Effective Dart Coding Style](https://dart.dev/guides/language/effective-dart/style) where possible. We attempt to conform [Effective Dart Coding Style](https://dart.dev/guides/language/effective-dart/style) where possible.
However, code style rules are not enforcement and code should be readable and easy to maintain. However, code style rules are not enforcement and code should be readable and easy to maintain.
**One exception to rules above is line limit - we use 120 character line limit instead of 80 chars.** **One exception to rules above is line limit - we use 120 character line limit instead of 80 chars.**

View file

@ -85,4 +85,4 @@ Read [contributing document](https://github.com/l7ssha/nyxx/blob/development/CON
## Credits ## Credits
* [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx). * [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx).

View file

@ -85,4 +85,4 @@ Read [contributing document](https://github.com/l7ssha/nyxx/blob/development/CON
## Credits ## Credits
* [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx). * [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx).

View file

@ -108,4 +108,4 @@ linter:
- prefer_iterable_whereType - prefer_iterable_whereType
- prefer_mixin - prefer_mixin
- prefer_null_aware_operators - prefer_null_aware_operators
- prefer_spread_collections - prefer_spread_collections

View file

@ -202,4 +202,4 @@ abstract class ICommandRegistrable {
this._commandEntities.add(entity); this._commandEntities.add(entity);
} }
} }

View file

@ -27,4 +27,4 @@ extension _CommandMatcher on Iterable<CommandEntity> {
return null; return null;
} }
} }

View file

@ -10,4 +10,4 @@ _24.08.2020_
* Scheduler module for invoking repeatable actions * Scheduler module for invoking repeatable actions
* Additional general utils * Additional general utils
* Message resolver module for resolving raw message content into human readable form * Message resolver module for resolving raw message content into human readable form
* Attachment extensions for vm * Attachment extensions for vm

View file

@ -85,4 +85,4 @@ Read [contributing document](https://github.com/l7ssha/nyxx/blob/development/CON
## Credits ## Credits
* [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx). * [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx).

View file

@ -107,4 +107,4 @@ linter:
- prefer_iterable_whereType - prefer_iterable_whereType
- prefer_mixin - prefer_mixin
- prefer_null_aware_operators - prefer_null_aware_operators
- prefer_spread_collections - prefer_spread_collections

View file

@ -1 +1 @@
export "src/attachment_extension.dart"; export "src/attachment_extension.dart";

View file

@ -6,4 +6,4 @@ import "package:nyxx/nyxx.dart";
import "package:http/http.dart" as http; import "package:http/http.dart" as http;
part "src/emoji/EmojiDefinition.dart"; part "src/emoji/EmojiDefinition.dart";
part "src/emoji/EmojiUtils.dart"; part "src/emoji/EmojiUtils.dart";

View file

@ -1,2 +1,2 @@
export "src/message_resolver/Regexes.dart"; export "src/message_resolver/Regexes.dart";
export "src/message_resolver/message_resolver.dart"; export "src/message_resolver/message_resolver.dart";

View file

@ -1 +1 @@
export "src/pagination/pagination.dart"; export "src/pagination/pagination.dart";

View file

@ -1 +1 @@
export "src/scheduler/scheduler.dart"; export "src/scheduler/scheduler.dart";

View file

@ -15,4 +15,4 @@ extension DownloadAttachmentExtensions on Attachment {
/// Downloads attachment as returns bytes of downloaded file. /// Downloads attachment as returns bytes of downloaded file.
Future<Uint8List> downloadAsBytes() async => (await http.get(Uri.parse(this.url))).bodyBytes; Future<Uint8List> downloadAsBytes() async => (await http.get(Uri.parse(this.url))).bodyBytes;
} }

View file

@ -35,4 +35,4 @@ Future<Iterable<EmojiDefinition>> getAllEmojiDefinitions({bool cache = false}) a
} }
return _emojis; return _emojis;
} }

View file

@ -292,4 +292,4 @@ FutureOr<String> _defaultMissingEntityHandler(String entityType) {
default: default:
return ""; return "";
} }
} }

View file

@ -24,4 +24,4 @@ class ScheduledEvent {
/// Stops [ScheduledEvent] if running. /// Stops [ScheduledEvent] if running.
void stop() => _timer.cancel(); void stop() => _timer.cancel();
} }

View file

@ -37,4 +37,4 @@ class StringUtils {
return split(str, len); return split(str, len);
} }
} }

View file

@ -1 +1 @@
export "src/utils.dart"; export "src/utils.dart";

View file

@ -3,4 +3,4 @@ import "package:nyxx_extensions/emoji.dart";
main() async { main() async {
final emojis = await getAllEmojiDefinitions(); final emojis = await getAllEmojiDefinitions();
assert(emojis.isNotEmpty, "Emojis cannot be empty"); assert(emojis.isNotEmpty, "Emojis cannot be empty");
} }

View file

@ -85,4 +85,4 @@ Read [contributing document](https://github.com/l7ssha/nyxx/blob/development/CON
## Credits ## Credits
* [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx). * [Hackzzila's](https://github.com/Hackzzila) for [nyx](https://github.com/Hackzzila/nyx).

View file

@ -108,4 +108,4 @@ linter:
- prefer_iterable_whereType - prefer_iterable_whereType
- prefer_mixin - prefer_mixin
- prefer_null_aware_operators - prefer_null_aware_operators
- prefer_spread_collections - prefer_spread_collections

View file

@ -2,4 +2,4 @@ part of nyxx;
class CategoryGuildChannel extends GuildChannel { class CategoryGuildChannel extends GuildChannel {
CategoryGuildChannel._new(Nyxx client, Map<String, dynamic> raw, [Snowflake? guildId]): super._new(client, raw, guildId); CategoryGuildChannel._new(Nyxx client, Map<String, dynamic> raw, [Snowflake? guildId]): super._new(client, raw, guildId);
} }

View file

@ -37,4 +37,4 @@ class VoiceGuildChannel extends GuildChannel {
throw InvalidShardException._new("Cannot find shard for this channel!"); throw InvalidShardException._new("Cannot find shard for this channel!");
} }
} }
} }

View file

@ -49,4 +49,4 @@ class GuildFeature extends IEnum<String> {
return super == other; return super == other;
} }
} }

View file

@ -80,4 +80,4 @@ class RoleTags {
this.nitroRole = raw["premium_subscriber"] != null ? raw["premium_subscriber"] as bool : false; this.nitroRole = raw["premium_subscriber"] != null ? raw["premium_subscriber"] as bool : false;
this.integrationId = raw["integration_id"] != null ? Snowflake(raw["integration_id"]) : null; this.integrationId = raw["integration_id"] != null ? Snowflake(raw["integration_id"]) : null;
} }
} }

View file

@ -7,4 +7,4 @@ abstract class IEmoji {
/// Returns encoded emoji for usage in message /// Returns encoded emoji for usage in message
String formatForMessage(); String formatForMessage();
} }

View file

@ -18,4 +18,4 @@ class UnicodeEmoji implements IEmoji {
@override @override
String toString() => this.formatForMessage(); String toString() => this.formatForMessage();
} }

View file

@ -10,4 +10,4 @@ class RawEvent {
final Map<String, dynamic> rawData; final Map<String, dynamic> rawData;
RawEvent._new(this.shard, this.rawData); RawEvent._new(this.shard, this.rawData);
} }

View file

@ -139,4 +139,4 @@ class _MessageCacheable<U extends TextChannel> extends Cacheable<Snowflake, Mess
return null; return null;
} }
} }

View file

@ -9,4 +9,4 @@ class EmbedBuilderArgumentException implements Exception {
@override @override
String toString() => "EmbedBuilderArgumentException: $message"; String toString() => "EmbedBuilderArgumentException: $message";
} }

View file

@ -6,4 +6,4 @@ class HttpClientException extends http.ClientException {
// ignore: public_member_api_docs // ignore: public_member_api_docs
HttpClientException(this.response) : super("Exception", response?.request?.url); HttpClientException(this.response) : super("Exception", response?.request?.url);
} }

View file

@ -9,4 +9,4 @@ class InvalidShardException implements Exception {
@override @override
String toString() => "InvalidShardException: Unsupported shard operation: $message"; String toString() => "InvalidShardException: Unsupported shard operation: $message";
} }

View file

@ -8,4 +8,4 @@ class InvalidSnowflakeException implements Exception {
@override @override
String toString() => "InvalidSnowflakeException: Cannot parse [$_invalidSnowflake] to Snowflake"; String toString() => "InvalidSnowflakeException: Cannot parse [$_invalidSnowflake] to Snowflake";
} }

View file

@ -23,4 +23,4 @@ class _HttpClient extends http.BaseClient {
return response; return response;
} }
} }

View file

@ -84,4 +84,4 @@ class ShardManager implements Disposable {
await this._onDisconnect.close(); await this._onDisconnect.close();
await this._onMemberChunk.close(); await this._onMemberChunk.close();
} }
} }