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

405 clang format revisit rules to make the job easier to follow #1815

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

KarthikNayak
Copy link

Thanks for taking the time to contribute to Git! Please be advised that the
Git community does not use github.com for their contributions. Instead, we use
a mailing list (git@vger.kernel.org) for code submissions, code reviews, and
bug reports. Nevertheless, you can use GitGitGadget (https://gitgitgadget.github.io/)
to conveniently send your Pull Requests commits to our mailing list.

For a single-commit pull request, please leave the pull request description
empty
: your commit message itself should describe your changes.

Please read the "guidelines for contributing" linked above!

The current value for the column limit is set to 80. While this is as
expected, we often prefer readability over this strict limit. This means
it is common to find code which extends over 80 characters. So let's
change the column limit to be 0 instead. This ensures that the formatter
doesn't complain about code strictly not following the column limit.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
We enforce alignment of expressions after linebreaks. Which means for
code such as

    return a || b;

it will expect:

   return a ||
          b;

we instead want 'b' to be indent with tabs, which is already done by the
'ContinuationIndentWidth' variable. So let's explicitly set
'AlignOperands' to false.

Signed-off-by: Karthik Nayak <karthik.188@gmail.com>
Copy link

gitgitgadget bot commented Oct 9, 2024

There are issues in commit e37894b:
test
Commit checks stopped - the message is too short
Commit not signed off

@KarthikNayak KarthikNayak force-pushed the 405-clang-format-revisit-rules-to-make-the-job-easier-to-follow branch from e37894b to 3e12596 Compare October 9, 2024 09:40
Copy link

gitgitgadget bot commented Oct 9, 2024

There are issues in commit 3e12596:
test
Commit checks stopped - the message is too short
Commit not signed off

@KarthikNayak KarthikNayak force-pushed the 405-clang-format-revisit-rules-to-make-the-job-easier-to-follow branch from 3e12596 to 1a6221f Compare October 9, 2024 10:36
Copy link

gitgitgadget bot commented Oct 9, 2024

There are issues in commit 1a6221f:
test
Commit checks stopped - the message is too short
Commit not signed off

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.

1 participant