shiburagi / JsonToDart

VS Code Extension
10 stars 7 forks source link

flutter 更新到 2.8.1以后 新增了很多代码规范 生成的model有很多警告 希望能处理一下噢 感谢 #9

Closed yingzhong27 closed 2 years ago

yingzhong27 commented 2 years ago

类似这样的警告

Use collection literals when possible.dart[prefer_collection_literals](https://dart-lang.github.io/linter/lints/prefer_collection_literals.html)

DO use curly braces for all flow control structures.dart[curly_braces_in_flow_control_structures](https://dart-lang.github.io/linter/lints/curly_braces_in_flow_control_structures.html)

Unnecessary new keyword.dart[unnecessary_new](https://dart-lang.github.io/linter/lints/unnecessary_new.html)
shiburagi commented 2 years ago

Fix on version 0.1.8