Skip to main content

logd_linters 0.1.7 copy "logd_linters: ^0.1.7" to clipboard
logd_linters: ^0.1.7 copied to clipboard

Custom lint rules for the logd logging library. Surfaces arena lifecycle constraints, formatter/decorator purity invariants, and consumer usage best-practices as static analysis warnings with IDE quick-fixes.

example/lib/main.dart

// Copyright (c) 2026, Pooria Askari Moqaddam. All rights reserved.
// Use of this source code is governed by a BSD-3-Clause license that can be
// found in the LICENSE file.

import 'package:logd/logd.dart';

void main() async {
  // Configured pipeline conforming to all logd_linters static analysis rules
  final handler = ConsoleHandler();

  Logger.configure(
    'global',
    handlers: [handler],
  );

  final logger = Logger.get('app.service');
  logger.info('Clean, lint-validated pipeline initialized successfully.');

  // AsyncHandler lifecycle: always dispose handlers when terminating
  await handler.dispose();
}
0
likes
130
points
717
downloads

Documentation

Documentation
API reference

Publisher

verified publisherpccria.dev

Weekly Downloads

Custom lint rules for the logd logging library. Surfaces arena lifecycle constraints, formatter/decorator purity invariants, and consumer usage best-practices as static analysis warnings with IDE quick-fixes.

Repository (GitHub)
View/report issues
Contributing

Topics

#logging #linting #static-analysis #logd

License

BSD-3-Clause (license)

Dependencies

analyzer, custom_lint_builder, meta

More

Packages that depend on logd_linters