Skip to content

Fix/winheaders

Fix/winheaders #329

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

reviewdog [cpplint] report

reported by reviewdog 🐶

Findings (12)

src/cjit.c|270| Almost always, snprintf is better than strcpy [runtime/printf] [4]
src/cjit.c|271| Almost always, snprintf is better than strcat [runtime/printf] [4]
src/cjit.c|278| Almost always, snprintf is better than strcpy [runtime/printf] [4]
src/cjit.c|280| Almost always, snprintf is better than strcpy [runtime/printf] [4]
src/platforms.h|2| #ifndef header guard has wrong style, please use: SRC_PLATFORMS_H_ [build/header_guard] [5]
src/platforms.h|78| #endif line should be "#endif // SRC_PLATFORMS_H_" [build/header_guard] [5]
src/platforms.h|72| "sys/types.h" already included at src/platforms.h:63 [build/include] [4]
src/platforms.h|73| "sys/stat.h" already included at src/platforms.h:64 [build/include] [4]
src/win-compat.c|79| Almost always, snprintf is better than strcat [runtime/printf] [4]
src/win-compat.c|83| Almost always, snprintf is better than strcpy [runtime/printf] [4]
src/win-compat.c|95| Almost always, snprintf is better than strcat [runtime/printf] [4]
src/win-compat.c|87| Add #include for printf [build/include_what_you_use] [4]

Filtered Findings (0)

Annotations

Check warning on line 270 in src/cjit.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/cjit.c#L270

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

Check warning on line 271 in src/cjit.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/cjit.c#L271

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

Check warning on line 278 in src/cjit.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/cjit.c#L278

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

Check warning on line 280 in src/cjit.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/cjit.c#L280

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

Check warning on line 2 in src/platforms.h

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/platforms.h#L2

 #ifndef header guard has wrong style, please use: SRC_PLATFORMS_H_  [build/header_guard] [5]
Raw output
src/platforms.h:2:  #ifndef header guard has wrong style, please use: SRC_PLATFORMS_H_  [build/header_guard] [5]

Check warning on line 78 in src/platforms.h

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/platforms.h#L78

 #endif line should be "#endif  // SRC_PLATFORMS_H_"  [build/header_guard] [5]
Raw output
src/platforms.h:78:  #endif line should be "#endif  // SRC_PLATFORMS_H_"  [build/header_guard] [5]

Check warning on line 72 in src/platforms.h

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/platforms.h#L72

 "sys/types.h" already included at src/platforms.h:63  [build/include] [4]
Raw output
src/platforms.h:72:  "sys/types.h" already included at src/platforms.h:63  [build/include] [4]

Check warning on line 73 in src/platforms.h

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/platforms.h#L73

 "sys/stat.h" already included at src/platforms.h:64  [build/include] [4]
Raw output
src/platforms.h:73:  "sys/stat.h" already included at src/platforms.h:64  [build/include] [4]

Check warning on line 79 in src/win-compat.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/win-compat.c#L79

 Almost always, snprintf is better than strcat  [runtime/printf] [4]
Raw output
src/win-compat.c:79:  Almost always, snprintf is better than strcat  [runtime/printf] [4]

Check warning on line 83 in src/win-compat.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/win-compat.c#L83

 Almost always, snprintf is better than strcpy  [runtime/printf] [4]
Raw output
src/win-compat.c:83:  Almost always, snprintf is better than strcpy  [runtime/printf] [4]

Check warning on line 95 in src/win-compat.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/win-compat.c#L95

 Almost always, snprintf is better than strcat  [runtime/printf] [4]
Raw output
src/win-compat.c:95:  Almost always, snprintf is better than strcat  [runtime/printf] [4]

Check warning on line 87 in src/win-compat.c

See this annotation in the file changed.

@github-actions github-actions / cpplint

[cpplint] src/win-compat.c#L87

 Add #include <cstdio> for printf  [build/include_what_you_use] [4]
Raw output
src/win-compat.c:87:  Add #include <cstdio> for printf  [build/include_what_you_use] [4]