Skip to content

Error of space missing after if is not caught if if does not have spaces before it #226

Open

Description

@zoezhoux

I found out the error "space missing after if." is not caught by cpplint:
if(condition) {} // Bad - space missing after if.

google C++ Style Guide: https://google.github.io/styleguide/cppguide.html#:~:text=if(condition)%20%7B%7D%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20//%20Bad%20%2D%20space%20missing%20after%20%60if%60.

Activity

  1. changed the title [-]Error is not caught: space missing after `if`.[/-] [+]Error of space missing after `if` if `if` does not have spaces before it[/+] on Mar 25, 2024
  2. changed the title [-]Error of space missing after `if` if `if` does not have spaces before it[/-] [+]Error of space missing after `if` is not caught if `if` does not have spaces before it[/+] on Mar 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions