Right now our formatting tools use whatever version of clang-format is in the user's path, but CI always uses clang-format-7. Apparently this has also changed over time, since looking at the related issue #12864 there's some mention of CI using clang-format-5. Formatting differences from clang-format version mismatches are hard to diagnose and can even be introduced just from running the formatting tool without any arguments. Ideally pub global run flutter_plugin_tools format should know what clang-format version CI is expecting and either download it itself (ideal) or throw if it can't find it.
Right now our formatting tools use whatever version of
clang-formatis in the user's path, but CI always usesclang-format-7. Apparently this has also changed over time, since looking at the related issue #12864 there's some mention of CI usingclang-format-5. Formatting differences fromclang-formatversion mismatches are hard to diagnose and can even be introduced just from running the formatting tool without any arguments. Ideallypub global run flutter_plugin_tools formatshould know whatclang-formatversion CI is expecting and either download it itself (ideal) or throw if it can't find it.