[camera_android_camerax][tool] Integrate dart_code_linter for cyclomatic complexity checks (#11999) Enables cyclomatic complexity enforcement in `camera_android_camerax` by integrating `dart_code_linter: 4.1.5` as a CLI linter check within the repository analysis tooling. No issue this is part of the work for project oneshot. Changelog/Version not needed changes are to shared tooling and specifically linters enabled for camera_android_camerax. FWIW We (@camsim99 and myself) initially aimed to enforce **cognitive complexity** using the `dart_cognitive_complexity` package. However, we encountered a dependency conflict that blocked its integration: - `dart_cognitive_complexity: 2.0.0` requires `analyzer: ^13.0.0`. - The repository dependencies (specifically `pigeon`) restrict the resolved version of `analyzer` to `<13.0.0` (which resolves to `10.0.1`). - Upgrading `pigeon` to a published version would not work since no version on pub.dev supports `analyzer: ^13.0.0`. - Upgrading `pigeon` code felt out of scope for this effort. - Downgrading to `dart_cognitive_complexity: 1.0.1` is also not possible because it requires `analyzer: <7.0.0` (which conflicts with `pigeon`'s requirement of `>=10.0.0`). ## Pre-Review Checklist
This repo is a companion repo to the main flutter repo. It contains the source code for Flutter's first-party packages (i.e., packages developed by the core Flutter team). Check the packages directory to see all packages.
These packages are also available on pub.
Please file any issues, bugs, or feature requests in the main flutter repo. Issues pertaining to this repository are labeled “package”.
If you wish to contribute a new package to the Flutter ecosystem, please see the documentation for developing packages. You can store your package source code in any GitHub repository (the present repo is only intended for packages developed by the core Flutter team). Once your package is ready you can publish to the pub repository.
If you wish to contribute a change to any of the existing packages in this repo, please review our contribution guide, and send a pull request.
These are the packages hosted in this repository: