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 github action to check tidy #93

Merged
merged 5 commits into from
May 13, 2021
Merged

Conversation

bbrto21
Copy link
Contributor

@bbrto21 bbrto21 commented May 11, 2021

This PR includes :

  • Add a tidy script and a foramt file
  • Add an action to check tidy
  • Update tidy for all packages

How to run:

tools/check_tidy.py

You can specify clang-format using '--clang-format'
The clang-format being used by vscode is usually in
~/.vscode/extensions/ms-vscode.cpptools-{VERSION}-insiders/LLVM/bin/

@bbrto21 bbrto21 requested a review from a team May 11, 2021 07:29
@bbrto21
Copy link
Contributor Author

bbrto21 commented May 11, 2021

If you guys like this PR, I want to make a similar PR for flutter-tizen/engine

Copy link
Contributor

@pkosko pkosko left a comment

Choose a reason for hiding this comment

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

IMHO this is very important contribution to automatically maintain common coding style during PR.

tools/check_tidy.py Outdated Show resolved Hide resolved
tools/check_tidy.py Outdated Show resolved Hide resolved
tools/check_tidy.py Show resolved Hide resolved
.github/workflows/plugin-actions.yml Outdated Show resolved Hide resolved
.github/workflows/plugin-actions.yml Outdated Show resolved Hide resolved
Copy link

@pwasowski2 pwasowski2 left a comment

Choose a reason for hiding this comment

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

LGTM 👌

.clang-format Outdated Show resolved Hide resolved
bbrto21 added 4 commits May 12, 2021 14:09
* This format is based on Google Style
* check-tidy came from Samsusng/escargot
* How to run: tools/check_tidy.py
  You can specify clang-format using '--clang-format'
  The clang-format being used by vscode is usually in
  ~/.vscode/extensions/ms-vscode.cpptools-{VERSION}-insiders/LLVM/bin/

Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
Signed-off-by: Boram Bae <boram21.bae@samsung.com>
sudo apt-get update
sudo apt-get install clang-format-11
- name: Check tidy
run: tools/check_tidy.py
Copy link
Member

@swift-kim swift-kim May 12, 2021

Choose a reason for hiding this comment

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

for consistency with the dart job

Suggested change
run: tools/check_tidy.py
run: tools/check_tidy.py --dir packages

Can check_tidy.py resolve a relative directory path?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I applied it

@swift-kim
Copy link
Member

By the way this PR itself is failing the check.

@bbrto21
Copy link
Contributor Author

bbrto21 commented May 12, 2021

By the way this PR itself is failing the check.

it caused by config file generated by clang-foramt12

Signed-off-by: Boram Bae <boram21.bae@samsung.com>
@swift-kim swift-kim merged commit 12de1b3 into flutter-tizen:master May 13, 2021
@bbrto21 bbrto21 deleted the tidy branch May 13, 2021 01:28
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.

5 participants