Comments (4)
Sounds like a fun task for somebody with some free time :)
I'll write my idea for it:
This tool would accept a lints yaml file, e.g. the one from flutter_lints and print all the rules it contains. If the lints yaml file include
s other lints yaml files, rules from them must be recursively added to the result.
So in flutter_lints
case:
flutter.yaml -> https://github.com/flutter/packages/blob/main/packages/flutter_lints/lib/flutter.yaml
└── recommended.yaml -> https://github.com/dart-lang/lints/blob/main/lib/recommended.yaml
└── core.yaml -> https://github.com/dart-lang/lints/blob/main/lib/core.yaml
Maybe there's some existing package that already does this?
I also think it must for sure already exist somewhere in the analyzer
internals.
from flutter_corelibrary.
I already started researching this yesterday. Here is the place that implements this logic: https://github.com/dart-lang/sdk/blob/84f528d26dae3c75cad7c850321cbf1a15f96361/pkg/analyzer/lib/src/analysis_options/analysis_options_provider.dart#L63
Requires extra research how to actually use this outside of analyzer
from flutter_corelibrary.
Can a package depend on analyzer
just like on any other package?
Depending on stuff from packages's src
is bad but there's probably no other option in this case.
from flutter_corelibrary.
Can a package depend on
analyzer
just like on any other package?
Yes
Depending on stuff from packages's
src
is bad but there's probably no other option in this case.
Not sure why it isnt re-exported from lib
. It seems the dart compiler packages import from src/
all the time for some reason. Looks like even outside packages import src/
, like build_runner: https://github.com/dart-lang/build/blob/96e0ba6044a0620b31d99468e19b063367f7f410/build_resolvers/lib/src/resolver.dart#L16
from flutter_corelibrary.
Related Issues (20)
- [debug_page] Consider using `json_view`
- Add option disable custom_lint lint rules HOT 1
- Add option change severity of custom_lint lint rules
- Document custom_lint lint rules HOT 1
- Evaluate Dart 3.2 lints
- Enforce actionable and trackable `TODO` comments HOT 4
- Bump login_client dependency in login_client_flutter
- leancode_lint displays false warning for conditional hook for HookBuilder in if statement
- Use mobile-tools for releasing `leancode_lint`
- Rename `force_update` to `leancode_force_update`
- Decide what to do with `debug_page`
- Nested hook widgets trigger a `avoid_conditional_hooks` false positive
- Bump custom_lint_builder to ˆ0.6.0 HOT 1
- In lints, consider `package:riverpod#HookConsumer` to be a hook widget
- TextSpans structure in leancode_markup
- Rename `use_design_system_item` to something more accurate HOT 2
- Add custom linter rule to prevent usage of string literals in widgets HOT 8
- [leancode_lint] `avoid_conditional_hooks` false positive with `HookBuilder` inside `HookWidget`
- [leancode_lint] custom_lint not detecting issues HOT 6
- Using leancode linter above package:lint ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_corelibrary.