Visitar URL original
Update silly-sample + gitignore vscode (#253) by norab0130 · Pull Request #285 · cpplint/cpplint · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix stdoutline counts [skip ci]
meanwhile, i've identified an absolutely stupid bug in searching for the config file.
  • Loading branch information
aaronliu0130 committed Feb 24, 2024
commit 736f84af1c935e1af0a011740a157db8ca7f091f
3 changes: 2 additions & 1 deletion samples/silly-sample/.cpplint
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set noparent
filter=-build/namespaces, -whitespace,+whitespace/line_length,-build/include_what_you_use
linelength=84
headers=w
exclude_files=.*sillycode\.w
2 changes: 1 addition & 1 deletion samples/silly-sample/cfg.def
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--config=.cpplint *
--config=.cpplint src/*
1
3
Done processing src/sillycode.cpp
Expand Down
2 changes: 1 addition & 1 deletion samples/silly-sample/sed.def
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--output=sed src/*.cpp
1
5
8
sed -i '2s/\/\//\/\/ /' src/sillycode.cpp # Should have a space between // and comment [whitespace/comments] [4]
sed -i '120s/,\([^ ]\)/, \1/g' src/sillycode.cpp # Missing space after , [whitespace/comma] [3]
sed -i '122s/\s*$//' src/sillycode.cpp # Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Expand Down
2 changes: 1 addition & 1 deletion samples/silly-sample/simple.def
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
src/*
1
3
4
Done processing src/sillycode.cpp
Done processing src/sillycode.w
Total errors found: 126
Expand Down