Skip to content

Feat/dmon

Feat/dmon #252

GitHub Actions / cpplint completed Dec 9, 2024 in 1s

reviewdog [cpplint] report

reported by reviewdog 🐶

Findings (11)

src/cjit.c|191| Almost always, snprintf is better than strcpy [runtime/printf] [4]
src/cjit.c|208| Missing username in TODO; it should look like "// TODO(my_username): Stuff." [readability/todo] [2]
src/cjit.c|239| If you can, use sizeof(tmp_winapi) instead of 511 as the 2nd arg to snprintf. [runtime/printf] [3]
src/cjit.c|239| Add #include for snprintf [build/include_what_you_use] [4]
src/cjit.h|1| #ifndef header guard has wrong style, please use: SRC_CJIT_H_ [build/header_guard] [5]
src/cjit.h|55| #endif line should be "#endif // SRC_CJIT_H_" [build/header_guard] [5]
src/cjit.h|18| Use int16_t/int64_t/etc, rather than the C type long [runtime/int] [4]
src/cjit.h|29| Add #include for FILE [build/include_what_you_use] [4]
src/file.c|341| Almost always, snprintf is better than strcpy [runtime/printf] [4]
src/file.c|437| If you can, use sizeof(tpath) instead of 259 as the 2nd arg to snprintf. [runtime/printf] [3]
src/file.c|437| Add #include for snprintf [build/include_what_you_use] [4]

Filtered Findings (0)

Annotations

Check warning on line 191 in src/cjit.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/cjit.c#L191

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

Check warning on line 208 in src/cjit.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/cjit.c#L208

 Missing username in TODO; it should look like "// TODO(my_username): Stuff."  [readability/todo] [2]
Raw output
src/cjit.c:208:  Missing username in TODO; it should look like "// TODO(my_username): Stuff."  [readability/todo] [2]

Check warning on line 239 in src/cjit.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/cjit.c#L239

 If you can, use sizeof(tmp_winapi) instead of 511 as the 2nd arg to snprintf.  [runtime/printf] [3]
Raw output
src/cjit.c:239:  If you can, use sizeof(tmp_winapi) instead of 511 as the 2nd arg to snprintf.  [runtime/printf] [3]

Check warning on line 239 in src/cjit.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/cjit.c#L239

 Add #include <cstdio> for snprintf  [build/include_what_you_use] [4]
Raw output
src/cjit.c:239:  Add #include <cstdio> for snprintf  [build/include_what_you_use] [4]

Check warning on line 1 in src/cjit.h

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/cjit.h#L1

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

Check warning on line 55 in src/cjit.h

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/cjit.h#L55

 #endif line should be "#endif  // SRC_CJIT_H_"  [build/header_guard] [5]
Raw output
src/cjit.h:55:  #endif line should be "#endif  // SRC_CJIT_H_"  [build/header_guard] [5]

Check warning on line 18 in src/cjit.h

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/cjit.h#L18

 Use int16_t/int64_t/etc, rather than the C type long  [runtime/int] [4]
Raw output
src/cjit.h:18:  Use int16_t/int64_t/etc, rather than the C type long  [runtime/int] [4]

Check warning on line 29 in src/cjit.h

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/cjit.h#L29

 Add #include <cstdio> for FILE  [build/include_what_you_use] [4]
Raw output
src/cjit.h:29:  Add #include <cstdio> for FILE  [build/include_what_you_use] [4]

Check warning on line 341 in src/file.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/file.c#L341

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

Check warning on line 437 in src/file.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/file.c#L437

 If you can, use sizeof(tpath) instead of 259 as the 2nd arg to snprintf.  [runtime/printf] [3]
Raw output
src/file.c:437:  If you can, use sizeof(tpath) instead of 259 as the 2nd arg to snprintf.  [runtime/printf] [3]

Check warning on line 437 in src/file.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/file.c#L437

 Add #include <cstdio> for snprintf  [build/include_what_you_use] [4]
Raw output
src/file.c:437:  Add #include <cstdio> for snprintf  [build/include_what_you_use] [4]