Skip to content

Feat/ketopt

Feat/ketopt #146

GitHub Actions / cpplint completed Nov 25, 2024 in 1s

reviewdog [cpplint] report

reported by reviewdog 🐢

Findings (7)

src/file.c|105| Almost always, snprintf is better than strcat [runtime/printf] [4]
src/ketopt.h|1| #ifndef header guard has wrong style, please use: SRC_KETOPT_H_ [build/header_guard] [5]
src/ketopt.h|120| #endif line should be "#endif // SRC_KETOPT_H_" [build/header_guard] [5]
src/repl.c|341| Almost always, snprintf is better than strcpy [runtime/printf] [4]
src/repl.c|359| Almost always, snprintf is better than strcat [runtime/printf] [4]
src/repl.c|396| Almost always, snprintf is better than strcat [runtime/printf] [4]
src/repl.c|347| Add #include for fflush [build/include_what_you_use] [4]

Filtered Findings (0)

Annotations

Check warning on line 105 in src/file.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/file.c#L105

 Almost always, snprintf is better than strcat  [runtime/printf] [4]
Raw output
src/file.c:105:  Almost always, snprintf is better than strcat  [runtime/printf] [4]

Check warning on line 1 in src/ketopt.h

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/ketopt.h#L1

 #ifndef header guard has wrong style, please use: SRC_KETOPT_H_  [build/header_guard] [5]
Raw output
src/ketopt.h:1:  #ifndef header guard has wrong style, please use: SRC_KETOPT_H_  [build/header_guard] [5]

Check warning on line 120 in src/ketopt.h

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/ketopt.h#L120

 #endif line should be "#endif  // SRC_KETOPT_H_"  [build/header_guard] [5]
Raw output
src/ketopt.h:120:  #endif line should be "#endif  // SRC_KETOPT_H_"  [build/header_guard] [5]

Check warning on line 341 in src/repl.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/repl.c#L341

 Almost always, snprintf is better than strcpy  [runtime/printf] [4]
Raw output
src/repl.c:341:  Almost always, snprintf is better than strcpy  [runtime/printf] [4]

Check warning on line 359 in src/repl.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/repl.c#L359

 Almost always, snprintf is better than strcat  [runtime/printf] [4]
Raw output
src/repl.c:359:  Almost always, snprintf is better than strcat  [runtime/printf] [4]

Check warning on line 396 in src/repl.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/repl.c#L396

 Almost always, snprintf is better than strcat  [runtime/printf] [4]
Raw output
src/repl.c:396:  Almost always, snprintf is better than strcat  [runtime/printf] [4]

Check warning on line 347 in src/repl.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/repl.c#L347

 Add #include <cstdio> for fflush  [build/include_what_you_use] [4]
Raw output
src/repl.c:347:  Add #include <cstdio> for fflush  [build/include_what_you_use] [4]