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

feat(words): add NOLINTBEGIN and NOLINTEND #20

Merged
merged 3 commits into from
Dec 21, 2024
Merged

Conversation

awf-autoware-bot[bot]
Copy link
Contributor

@awf-autoware-bot awf-autoware-bot bot commented Dec 21, 2024

Added due to:

Words:

  • NOLINTBEGIN
  • NOLINTEND

Source:

If a specific suppression mechanism is not available for a certain warning, or its use is not desired for some reason, clang-tidy has a generic mechanism to suppress diagnostics using NOLINT, NOLINTNEXTLINE, and NOLINTBEGINNOLINTEND comments.

ChatGPT generated etymology of NOLINTBEGIN and NOLINTEND

  1. NOLINT:

    • Derived from "NO" (negation) and "LINT."
    • "Lint" traces its origin to Lint (the Unix tool), named after the concept of cleaning or removing "lint" (small errors or fluff) from code.
    • Combined, NOLINT means "do not lint" or "skip linting."
  2. BEGIN and END:

    • Standard programming and markup terms indicating the start and end of a block.
    • Combined with NOLINT, these terms specify the region within the source code where linting should be ignored.

In summary, NOLINTBEGIN and NOLINTEND are used to mark a block of code to exclude from linter analysis.

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@awf-autoware-bot awf-autoware-bot bot added the bot label Dec 21, 2024
@awf-autoware-bot awf-autoware-bot bot requested a review from h-ohta as a code owner December 21, 2024 17:10
@awf-autoware-bot awf-autoware-bot bot requested a review from HansRobo as a code owner December 21, 2024 17:10
@awf-autoware-bot awf-autoware-bot bot enabled auto-merge (squash) December 21, 2024 17:11
Copy link

github-actions bot commented Dec 21, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

Signed-off-by: M. Fatih Cırıt <[email protected]>
@xmfcx xmfcx disabled auto-merge December 21, 2024 17:16
@xmfcx xmfcx changed the title feat(words): add NOLINTBEGIN feat(words): add NOLINTBEGIN and NOLINTEND Dec 21, 2024
@xmfcx xmfcx merged commit d64753c into main Dec 21, 2024
7 checks passed
@xmfcx xmfcx deleted the add-word-NOLINTBEGIN branch December 21, 2024 17:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant