Skip to content

Hyperlint is a powerful linting package for Flutter and Dart projects. It provides a comprehensive set of rules that can help you identify and fix potential errors, style issues, and performance problems.

License

Notifications You must be signed in to change notification settings

jemisgoti/hyper_lint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hyper Lint

style: very good analysis Powered by Mason License: MIT

Hyperlint is a powerful linting package for Flutter and Dart projects. It provides a comprehensive set of rules that can help you identify and fix potential errors, style issues, and performance problems.

Hyperlint is built on top of the Dart linter, but it adds a number of additional features and rules that are specifically designed for Flutter and Dart projects. For example, Hyperlint includes rules to detect common Flutter widget errors, such as using the wrong widget type or setting the wrong properties. It also includes rules to enforce the Flutter style guide, such as using the correct naming conventions and indentation.

Hyperlint is also highly customizable. You can enable or disable individual rules, or even create your own custom rules. This makes it easy to tailor Hyperlint to meet the specific needs of your project and team.

Installation 💻

❗ In order to start using Hyper Lint you must have the Dart SDK installed on your machine.

Install via dart pub add:

dart pub add hyper_lint

Installing

  1. Add dependencies to pubspec.yaml

    Get the latest version in the 'Installing' tab on pub.dev

    dependencies:
        hyper_lint: <latest-version>
  2. Run pub get.

    flutter pub get
  3. Import package in the analysis_options.yaml

    include: package:hyper_lint/analysis_options.yaml

Suppressing Lints

There might some case where we have to suppres the linting error

File Level

To surpress a specific lint rule of a specific file, use an ignore_for_file comment at the top of the file:

// ignore_for_file: public_member_api_docs

class Car {}

class Suv {}

Project Level

To surpress a specific lint rule for an entire project, modify analysis_options.yaml:

include: package:hyper_lint/analysis_options.yaml
linter:
  rules:
    public_member_api_docs: false

Main Contributors


Jemis Goti

Feedback

If you have any feedback, please reach out to us at jemis.dev@gmail.com

Thanks

Thank you for using this package and keep supporting opensource community.

About

Hyperlint is a powerful linting package for Flutter and Dart projects. It provides a comprehensive set of rules that can help you identify and fix potential errors, style issues, and performance problems.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published