diff --git a/at_utils/lib/src/atmetadata_utils.dart b/at_utils/lib/src/atmetadata_utils.dart index 59610b1f..b687c59d 100644 --- a/at_utils/lib/src/atmetadata_utils.dart +++ b/at_utils/lib/src/atmetadata_utils.dart @@ -53,15 +53,15 @@ class AtMetadataUtil { return ttbMs; } - static int? validateTTR(int? ttr_ms) { - if (ttr_ms == null || ttr_ms == 0) { + static int? validateTTR(int? ttrMs) { + if (ttrMs == null || ttrMs == 0) { return null; } - if (ttr_ms <= -2) { + if (ttrMs <= -2) { throw InvalidSyntaxException( 'Valid values for TTR are -1 and greater than or equal to 1'); } - return ttr_ms; + return ttrMs; } /// Throws [InvalidSyntaxException] if ttr is 0 or null. diff --git a/at_utils/lib/src/logging/atsignlogger.dart b/at_utils/lib/src/logging/atsignlogger.dart index c96d72a6..b1b7e1f7 100644 --- a/at_utils/lib/src/logging/atsignlogger.dart +++ b/at_utils/lib/src/logging/atsignlogger.dart @@ -1,3 +1,5 @@ +// ignore_for_file: non_constant_identifier_names + import 'package:at_utils/src/logging/handlers.dart'; import 'package:collection/collection.dart' show IterableExtension; import 'package:logging/logging.dart' as logging; @@ -33,6 +35,7 @@ class AtSignLogger { bool isLoggable(String value) => (LogLevel.level[value]! >= logger.level); + // ignore: unnecessary_getters_setters bool get hierarchicalLoggingEnabled { return _hierarchicalLoggingEnabled; } diff --git a/at_utils/pubspec.yaml b/at_utils/pubspec.yaml index e8d0b464..e4a06b89 100644 --- a/at_utils/pubspec.yaml +++ b/at_utils/pubspec.yaml @@ -3,7 +3,7 @@ description: A Dart library that contains various utility classes such as atSign version: 3.0.11 repository: https://github.com/atsign-foundation/at_tools homepage: https://atsign.dev -documentation: https://atsign.dev/docs/ +documentation: https://docs.atsign.com/ environment: