coolint 2.1.2
coolint: ^2.1.2 copied to clipboard
Recommended lints for cool apps, packages, and plugins to encourage good coding practices.
2.1.2 #
Changed #
- Disabled
avoid_catches_without_on_clauses
andlines_longer_than_80_chars
rules by commenting them out. - Removed
no-equal-then-else
fromdart_code_metrics
rules.
2.1.1 #
Added #
- A comprehensive set of new lint rules inspired by
pedantic_mono
andubuntu_linter
for even stricter code analysis. - A full
example
project to demonstrate the linter's usage and rules in action. - New badges to the
README.md
for likes, pub points, and downloads. - A "Show your support" section to the
README.md
with custom "linted by coolint" badges. CONTRIBUTING.md
and a friendlyCODE_OF_CONDUCT.md
to encourage community participation.- Issue and Pull Request templates to streamline contributions.
Changed #
- BREAKING CHANGE: The linter rules are now split into two files to support pure Dart projects and Flutter projects separately.
package:coolint/dart.yaml
: For pure Dart projects.package:coolint/flutter.yaml
: For Flutter projects (includes all Dart rules).
- BREAKING CHANGE: The dependency on
package:lints
has been removed. All rules are now vendored directly within the package. This givescoolint
full control and stability over the ruleset, independent of external packages. - The
README.md
has been significantly updated to reflect the new modular structure and all other improvements. - The
dependabot.yml
file has been improved to also update GitHub Actions. - The
AUTHORS
file has been restructured for clarity. - The syntax of the
dart.yaml
file has been updated to use the list format for active rules and commented-out lines for disabled rules, improving readability.
Removed #
- Removed the external dependency on
package:lints
.
2.1.0 #
Added #
- A wide range of new linter rules to enforce stricter code quality and consistency.
- New rules include:
unnecessary_underscores
,strict_top_level_inference
,invalid_runtime_check_with_js_interop_types
,unnecessary_library_name
, andlibrary_annotations
. - The
coolint.yaml
file is now fully documented and organized into logical categories for better readability and maintenance. - A new, more comprehensive
README.md
has been created to better explain the project's philosophy and usage.
Changed #
- The severity of
invalid_assignment
andonly_throw_errors
has been increased toerror
. - The rule format in
coolint.yaml
has been corrected to usekey: value
pairs, fixing an issue with disabled rules. - All comments in
coolint.yaml
are now in English. - Added
/**/__brick__/**
to the analyzer's exclude list to ignore Mason brick templates.
Removed #
- Removed the
library_names
rule. - Removed the
prefer_relative_imports
rule to resolve a conflict withalways_use_package_imports
. - Removed the redundant
prefer-trailing-comma
rule from thedart_code_metrics
section.
2.0.1 #
- Update flutter_lints to 5.0.0
2.0.0 #
- Update flutter_lints to 4.0.0
1.0.3 #
- Update flutter_lints to 3.0.2
- Updates minimum supported SDK version to Dart 3.3.1.
1.0.2 #
- Update to ignore .mappers.dart
1.0.1 #
- Updated package:flutter_lints dependency to version 3.0.0
1.0.0 #
- First version