Search packages, repositories and app categories

Package detailsv3.0.0

pyramid_lint

Linting tool for Dart and Flutter projects to encourage good coding practices.

AndroidiOSmacOSWindowsLinux
30-day downloads
8.2K
Likes
13
Pub points
150

Install package

flutter pub add pyramid_lint

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Pyramid Lint is a Dart and Flutter linter package designed to enforce consistent coding practices and improve code quality. It provides a set of customizable rules that help developers write clean, maintainable, and readable code by catching common issues early in the development process. The tool integrates seamlessly into Flutter workflows and supports multiple platforms including Android, iOS, macOS, Windows, and Linux. With clear feedback and configurable options, it promotes best practices across teams and projects.

Use cases

  • Enforcing consistent code style across teams
  • Identifying potential bugs during development
  • Improving code readability and maintainability
  • Integrating linting into CI/CD pipelines
  • Supporting large-scale Flutter project maintenance

Key features

  • Customizable lint rules
  • Seamless integration with Flutter CLI
  • Cross-platform support
  • Clear error messages
  • Configurable via YAML files

Suitable for

  • Flutter teams prioritizing code quality
  • Developers using automated code reviews
  • Projects requiring strict coding standards
  • CI/CD environments
  • Open-source contributors

Considerations

  • Requires configuration for optimal use
  • May need rule adjustments based on team preferences
  • Dependent on Dart analysis tools
  • Not suitable for basic projects without linting needs
  • Initial setup may require learning curve

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Pyramid Lint logo

Pub Version Build Status License

Custom lints, quick fixes, and assists for Dart and Flutter.

Pyramid Lint

Pyramid Lint extends the Dart analyzer with optional rules for general Dart code and Flutter widgets. Enable only the checks you want, apply quick fixes from your IDE, and run the same analysis from the command line with dart analyze or flutter analyze.

Built as an analyzer plugin on analysis_server_plugin.

Features

  • Lints — Opt-in rules for Dart and Flutter (see available lints).
  • Quick fixes — Automated corrections for many diagnostics in the IDE.
  • Assists — Refactorings such as wrap_with_stack and convert_to_for_in_iterable_indexed_loop.

Requirements

  • Dart 3.10+ or Flutter 3.38+

Installation

Analyzer plugins are configured in the root analysis_options.yaml of your package or workspace via the top-level plugins section (not the legacy analyzer.plugins list).

To add pyramid_lint to your project, add the following to your analysis_options.yaml file:

plugins:
  pyramid_lint: ^3.0.0 # replace with the latest version

Configuration

Enable lints

All Pyramid Lint rules are disabled by default. Turn them on under diagnostics:

plugins:
  pyramid_lint: ^3.0.0
    diagnostics:
      specific_lint_rule: true

Browse the full list in the documentation or copy the recommended preset.

Configure a lint

Some rules accept options under options:

plugins:
  pyramid_lint: ^3.0.0
    diagnostics:
      max_lines_for_file: true
    options:
      max_lines_for_file:
        max_lines: 300

Documentation

Full guides, rule reference, and assists: docs.page/charlescyt/pyramid_lint

Contributing

Contributions are welcome—issues, pull requests, and doc improvements.

See the contributing guide to get started.

License

MIT

Categories

Dependencies

Dependency list 9 items

Source repository

Projects using this package