Open srawlins opened 5 years ago
https://github.com/google/protobuf.dart/commit/52544ea07f04c0d53668ccf85e2370dd4bfda19c started using pedantic but it was reverted later with https://github.com/google/protobuf.dart/commit/45e054a26b0f1f9c9e7309cd679c6571b7db04d8.
Also, pedantic
README says that it's deprecated, but it doesn't say what analysis settings Google projects (not Dart or Flutter) should use.
So I don't know what is the recommended analysis options for open-source Google libraries now. @srawlins do you know?
The recommended set of lints is now https://github.com/dart-lang/lints/blob/main/lib/recommended.yaml
This code should follow the pedantic static analysis options. I tried to do this myself, but apparently, the "include" directive in
analysis_options.yaml
does not work when it is in the parent directory of anypubspec.yaml
(or maybe.packages
, whatever). https://github.com/dart-lang/sdk/issues/35831.