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

Format configs #1987

Merged
merged 6 commits into from
Oct 15, 2022
Merged

Format configs #1987

merged 6 commits into from
Oct 15, 2022

Conversation

scarf005
Copy link
Member

@scarf005 scarf005 commented Oct 8, 2022

Summary

SUMMARY: Infrastructure "Format .clang-tidy and append .editorconfig"

Purpose of change

  • .editorconfig does not have config for markdown and yaml where indent 2 is used
  • .clang-tidy's file extension is yaml yet it's not formatted properly

Describe the solution

  • add configs for .editorconfig
  • format .clang-tidy
  • disabled readability-identifier-length because almost every file uses variables with 1~2 length and it's clogging error messages

there are just so many short variables, and they are clogging error messages hiding important errors
(cherry picked from commit b0d3db7)
@scarf005 scarf005 mentioned this pull request Oct 10, 2022
@Coolthulhu Coolthulhu self-assigned this Oct 11, 2022
.clang-tidy Outdated
Comment on lines 56 to 61

-modernize-use-nodiscard
-modernize-concat-nested-namespaces
-modernize-loop-convert
-modernize-unary-static-assert
-readability-redundant-declaration
Copy link
Contributor

Choose a reason for hiding this comment

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

Same issue here, empty line + no commas. Also, useless without c++17. Why not roll changes to this file into the c++17 PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah, will remove the commit. Thoght .clang-tidy had to be changed from upload to take effect on workflow run.

[*.json]
end_of_line = lf
insert_final_newline = true
indent_style = space
Copy link
Member

Choose a reason for hiding this comment

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

Why remove those? Are they the defaults?

Copy link
Member Author

@scarf005 scarf005 Oct 11, 2022

Choose a reason for hiding this comment

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

yes, all of its configs are inherited from [*], so there would be no need for it.

@Coolthulhu Coolthulhu merged commit f6806c8 into cataclysmbnteam:upload Oct 15, 2022
@scarf005 scarf005 deleted the configs branch October 25, 2022 06:46
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.

3 participants