total_lints

Creator: coderz1093

Last updated:

0 purchases

total_lints Image
total_lints Images
Add to Cart

Description:

total lints

A very strict set of lints for Dart and Flutter apps.
Concept #
Dart and Flutter come with an analysis tool that points some possible errors and bad styling
that can lead to problems. More on this:
https://dart.dev/guides/language/analysis-options
However, a lot of beneficial rules are disabled by default. This leads to either coding errors
or long linter config that enables individual rules that you copy between projects.
This package is my opinionated choice of rules. Unlike lints
and flutter_lints packages that enable specific rules,
this package aims to enable all but specific rules. So every rule is enabled unless it was
considered and deliberately rejected.
You may use this set as a baseline and enable or disable specific rules.
Usage #


Add this package under dev_dependencies in your pubspec.yaml.


In your analysis_options.yaml, replace the default inclusion with a file from this package.


For applications:
include: package:total_lints/app.yaml
copied to clipboard
For packages:
include: package:total_lints/package.yaml
copied to clipboard


See https://dart.dev/guides/language/analysis-options to disable or enable specific rules.


Run analysis with flutter analyze.


Choosing a Set of Rules #
app.yaml #
This set is used for runnable applications. Their code is not reused, so tedious tasks
on it are not required.
The rules in this set are listed here.
package.yaml #
This set is used for packages that are used in other apps. A package's code is reusable
by other developers, and the context of its usage is unknown in advance,
so this code should meet a higher standard of maintainability.
This set includes all rules from app.yaml plus the rules listed
here.
Using with Older Versions of Dart #
For older versions, import a file with specific version, e.g.:
include: package:total_lints/package_2.17.yaml
copied to clipboard
The oldest version this package supports is 2.17.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.