Search packages, repositories and app categories

Package detailsv1.2.1

mvvm_linter

The MVVM Linter is a tool designed to enforce best practices and coding standards in MVVM.

30-day downloads
16
Likes
2
Pub points
50

Install package

flutter pub add mvvm_linter

Package Overview

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

The MVVM Linter is a Flutter/Dart package that enforces consistent coding standards and best practices within the MVVM (Model-View-ViewModel) architectural pattern. It helps developers maintain clean, structured, and maintainable code by detecting common anti-patterns and deviations from recommended MVVM conventions. By integrating this linter into the development workflow, teams can ensure uniformity across projects and reduce technical debt. The tool is particularly useful in collaborative environments where adherence to architecture principles is critical.

Use cases

  • Enforcing MVVM structure in team projects
  • Automating code quality checks for MVVM patterns
  • Maintaining consistency across large Flutter applications
  • Identifying improper ViewModel or View usage
  • Supporting onboarding of new developers with clear guidelines

Key features

  • Rules specific to MVVM architecture
  • Integration with Flutter's analysis tools
  • Customizable lint rules
  • Clear error messages for violations
  • Supports automated code reviews

Suitable for

  • Flutter teams using MVVM
  • Developers focused on code quality
  • Projects requiring strict architectural compliance
  • Teams adopting standardized development practices
  • CI/CD pipelines enforcing coding standards

Considerations

  • Requires manual configuration for custom rules
  • May need updates for new Flutter versions
  • Limited platform-specific features
  • Best used alongside other linters
  • Not applicable outside MVVM-based projects

Original README

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

MVVM Linter

The MVVM Linter is a tool designed to enforce best practices and coding standards in MVVM (Model-View-ViewModel) architecture within your projects. It provides a set of rules and guidelines to help maintain code quality, readability, and consistency.

Features

  • Member Order: Enforces a specified order for class members.
  • Organize Class Order Action: Orders class members according to a predefined structure.

Installation

To install the MVVM Linter, follow these steps:

  1. Add the following dependencies to your pubspec.yaml:
flutter pub add --dev custom_lint mvvm_linter
  1. Update your analysis_options.yaml:
include: package:flutter_lints/flutter.yaml

analyzer:
  plugins:
    - custom_lint
custom_lint:
  rules:
    - mvvm_linter

Categories

Dependencies

Dependency list 4 items

Source repository

Projects using this package

No data available yet.