Skip to content

Conversation

@matyalatte
Copy link
Owner

@matyalatte matyalatte commented Oct 9, 2024

You can use - to read code from stdin.

$ echo "int a = (int)1.0;" | cpplint-cpp -
Done processing -
-:0:  No copyright message found.  You should have a line: "Copyright [year] <Copyright Owner>"  [legal/copyright] [5]
-:1:  Using C-style cast.  Use static_cast<int>(...) instead  [readability/casting] [4]
Total errors found: 2

@matyalatte matyalatte merged commit 8731647 into main Oct 11, 2024
5 checks passed
@matyalatte matyalatte deleted the read_stdin branch October 11, 2024 11:55
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