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

cpplint.exe[cmd] output can't be parsed #698

Open
boostmerlin opened this issue Nov 22, 2024 · 0 comments
Open

cpplint.exe[cmd] output can't be parsed #698

boostmerlin opened this issue Nov 22, 2024 · 0 comments

Comments

@boostmerlin
Copy link

hi, i used nvim-lint on windows and install cpplint via mason. but lint not working.

.\hello.cc:0:  No copyright message found.  You should have a line: "Copyright [year] <Copyright Owner>"  [legal/copyright] [5]
.\hello.cc:4:  Do not use namespace using-directives.  Use using-declarations instead.  [build/namespaces] [5]
.\hello.cc:7:  Lines should be <= 80 characters long  [whitespace/line_length] [2]
.\hello.cc:9:  { should almost always be at the end of the previous line  [whitespace/braces] [4]
.\hello.cc:8:  Add #include <string> for string  [build/include_what_you_use] [4]
.\hello.cc:1:  D:/projects/hello-gcc/hello.cc should include its header file D:/projects/hello-gcc/hello.h  [build/include] [5]
Done processing .\hello.cc
Total errors found: 6

the output above on can't be parsed because the line sep is \r\n on windows. and pattern = '([^:]+):(%d+): (.+) (.+)' not match too

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

No branches or pull requests

1 participant