commit | 05058a75a02c7fcb8eb45ff9807efb21134098f2 | [log] [tgz] |
---|---|---|
author | Ömer Sinan Ağacan <omersa@google.com> | Wed May 10 08:54:00 2023 +0200 |
committer | GitHub <noreply@github.com> | Wed May 10 08:54:00 2023 +0200 |
tree | 0b679cbd91943459b63b0e73ecda95046db7916e | |
parent | 9d7cf0de83f0ab4ae7010319263214840167f2d8 [diff] |
Apply internally enabled lints (#816) This enables lints `prefer_final_in_for_each` and `prefer_final_locals` and fixes lints errors. These lints were previously enabled in internal version in the following CLs: - cl/523340795: updated protoc_plugin source - cl/523340868: updated protoc_plugin tests - cl/523340813: updated protobuf source protobuf tests are not yet updated internally. Majority of the changes are generated by `dart fix --apply`. Manual changes were done in two places: - `dart fix` does not fix lints in `<type> <var> = <expr>;` syntax, it looks like it only replaces `var` with `final` and does not add `final` before a type. A few lint errors were fixed manually for this. - protoc_plugin/lib/src/client_generator.dart updated manually to fix the lints in generated code. The difference in generated code can be seen in changes in `protoc_plugin/test/goldens`.
Protocol Buffers (protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.
This repository is home to packages related to protobuf for Dart.
Package | Description | Published Version |
---|---|---|
protobuf | A support library for the generated code | |
protoc_plugin | A Dart back-end for the protoc compiler | |
api_benchmark | Benchmarking for various API calls | |
query_benchmark | Benchmark for encoding and decoding of a “real-world” protobuf |
For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.