Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a format checker to the CI pipeline #90

Merged
merged 4 commits into from
May 18, 2021

Conversation

swift-kim
Copy link
Member

@swift-kim swift-kim commented May 15, 2021

  • Add the format job to the CI pipeline.
    • The linter job will be added in the future. (The lint warning/errors will not be analyzed by the CI.)
  • Format GN files.
  • Format C/C++ files using the Chromium style (as defined in the .clang-format file).

For maintainers: The Chromium C/C++ style is slightly different from the Google C/C++ style, but you don't need any special configuration if everything works correctly. clang-format and the VS Code extension should just work out of the box. They will find the .clang-format file from the repository root automatically.

To manually analyze code formatting, you can use either:

  • check_tidy.py (check_tidy.py --dir shell/platform/tizen)
  • format.dart (ci/format.sh)
    • You must add this to your Git remote endpoints: git remote add upstream https://github.com/flutter/engine.git

@swift-kim swift-kim force-pushed the ci-format-2 branch 4 times, most recently from 57a8f9f to 1f8c835 Compare May 15, 2021 08:03
@bbrto21
Copy link

bbrto21 commented May 17, 2021

the .clang-format file from the repository root automatically.

I didn't know there was this, What do you think about replacing the plugin repository .clang-format with this?

@swift-kim
Copy link
Member Author

@bbrto21 The first-party plugins also follow the Google style (https://github.com/flutter/plugins/blob/master/.clang-format) so I think we can leave as it is.

@bbrto21
Copy link

bbrto21 commented May 17, 2021

@swift-kim Oh, thank you for checking!

Copy link

@bbrto21 bbrto21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@swift-kim swift-kim mentioned this pull request May 17, 2021
10 tasks
@swift-kim swift-kim merged commit 9f408ef into flutter-tizen:flutter-2.0.1-tizen May 18, 2021
@bbrto21 bbrto21 mentioned this pull request May 27, 2021
swift-kim added a commit that referenced this pull request Jun 7, 2021
* Format gn files

* Format C/C++ files

* Update azure-pipelines.yml

* Rename the format job
swift-kim added a commit that referenced this pull request Sep 27, 2021
* Format gn files

* Format C/C++ files

* Update azure-pipelines.yml

* Rename the format job
swift-kim added a commit that referenced this pull request Nov 14, 2021
* Format gn files

* Format C/C++ files

* Update azure-pipelines.yml

* Rename the format job
swift-kim added a commit that referenced this pull request Dec 9, 2021
* Format gn files

* Format C/C++ files

* Update azure-pipelines.yml

* Rename the format job
swift-kim added a commit that referenced this pull request Dec 17, 2021
* Format gn files

* Format C/C++ files

* Update azure-pipelines.yml

* Rename the format job
swift-kim added a commit that referenced this pull request Feb 7, 2022
* Format gn files

* Format C/C++ files

* Update azure-pipelines.yml

* Rename the format job
swift-kim added a commit that referenced this pull request Feb 11, 2022
* Format gn files

* Format C/C++ files

* Update azure-pipelines.yml

* Rename the format job
swift-kim added a commit that referenced this pull request May 12, 2022
* Format gn files

* Format C/C++ files

* Update azure-pipelines.yml

* Rename the format job
swift-kim added a commit that referenced this pull request Aug 5, 2022
* Format gn files

* Format C/C++ files

* Update azure-pipelines.yml

* Rename the format job
swift-kim added a commit that referenced this pull request Sep 1, 2022
* Format gn files

* Format C/C++ files

* Update azure-pipelines.yml

* Rename the format job
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants