FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove readability/fn_size error throw by aduh95 · Pull Request #287 · cpplint/cpplint · GitHub

Remove readability/fn_size error throw - #287

Merged
aaronliu0130 merged 1 commit into
cpplint:developfrom
aduh95:fix-readability/fn_size
Sep 7, 2024
Merged

Remove readability/fn_size error throw#287
aaronliu0130 merged 1 commit into
cpplint:developfrom
aduh95:fix-readability/fn_size

Conversation

aduh95 commented Sep 6, 2024

Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown

I agree that fn_size should be disabled, as the style guide says "no hard limit is placed on function length."
https://google.github.io/styleguide/cppguide.html#Write_Short_Functions

But I think you can just add -readability/fn_size to _DEFAULT_FILTERS. No need to remove anything.
https://github.com/cpplint/cpplint/blob/34a534a786729408fc5d4ed91d28eeb0b6d1e6e1/cpplint.py#L414

aduh95 force-pushed the fix-readability/fn_size branch from 34a534a to 73f2546 Compare September 6, 2024 23:07

aduh95 commented Sep 6, 2024

Copy link
Copy Markdown
Contributor Author

@matyalatte you're right, that's a much better and simpler fix 👍

aaronliu0130 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I guess those interested could manually reenable it.

aaronliu0130 changed the title fix: remove readability/fn_size error throw Remove readability/fn_size error throw Sep 7, 2024
aaronliu0130 merged commit 820df48 into cpplint:develop Sep 7, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

4 participants


Back | FazBrowse Home | New Git URL