simple_json icon indicating copy to clipboard operation
simple_json copied to clipboard

generated code should not produce any lint warnings

Open sgehrman opened this issue 4 years ago • 2 comments

I'm seeing warnings for unnecessary parens, and prefer const in the example mapper.g.dart.

I would be great to get this fixed. I like all my code to be clean and warning free.

image

sgehrman avatar Jan 02 '21 00:01 sgehrman

The package has been updated for null safety. Let me know if this is still an issue. If so, I'll see if I can revisit but this is low priority so will do it when I get a chance. PRs are welcome.

D10100111001 avatar Mar 22 '21 02:03 D10100111001

I'm still having one last issue.

Try adding avoid_dynamic_calls: true

and see if you see it. There's a line in my mapper file that does something like json['x'] that needs to be (json['x'] as String)

sgehrman avatar Jun 02 '21 00:06 sgehrman