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

Fix lint issues + make the url clickable on Github #78

Merged
merged 1 commit into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 8 additions & 0 deletions code/framework/src/utils/path.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* MafiaHub OSS license
* Copyright (c) 2021-2023, MafiaHub. All rights reserved.
*
* This file comes from MafiaHub, hosted at https://github.com/MafiaHub/Framework.
* See LICENSE file in the source repository for information regarding licensing.
*/

#include "safe_win32.h"
#include "path.h"

Expand Down
8 changes: 8 additions & 0 deletions code/framework/src/utils/path.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* MafiaHub OSS license
* Copyright (c) 2021-2023, MafiaHub. All rights reserved.
*
* This file comes from MafiaHub, hosted at https://github.com/MafiaHub/Framework.
* See LICENSE file in the source repository for information regarding licensing.
*/

#pragma once

#include <string>
Expand Down
10 changes: 9 additions & 1 deletion code/framework/src/utils/safe_string.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
/*
* MafiaHub OSS license
* Copyright (c) 2021-2023, MafiaHub. All rights reserved.
*
* This file comes from MafiaHub, hosted at https://github.com/MafiaHub/Framework.
* See LICENSE file in the source repository for information regarding licensing.
*/

#include "safe_string.h"

namespace Framework::Utils {
Expand All @@ -8,4 +16,4 @@ namespace Framework::Utils {
dst[copy_len] = '\0';
return src_len;
}
}
}
10 changes: 9 additions & 1 deletion code/framework/src/utils/safe_string.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
/*
* MafiaHub OSS license
* Copyright (c) 2021-2023, MafiaHub. All rights reserved.
*
* This file comes from MafiaHub, hosted at https://github.com/MafiaHub/Framework.
* See LICENSE file in the source repository for information regarding licensing.
*/

#pragma once

#include <string.h>

namespace Framework::Utils {
size_t fw_strlcpy(char *dst, const char *src, size_t size);
}
}
2 changes: 1 addition & 1 deletion scripts/check_style_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ if [ $CODE -ne 0 ]; then
cat <<EOF
{
"username": "Framework Code Linter",
"content": "**Branch:** $(git rev-parse --abbrev-ref HEAD)\n**Commit:** https://github.com/MafiaHub/Framework/commit/$(git rev-parse HEAD)\n**Issues:**\n$RESULT"
"content": "**Branch:** $(git rev-parse --abbrev-ref HEAD)\n**Commit:** https://github.com/MafiaHub/Framework/commit/$(git rev-parse HEAD) \n**Issues:**\n$RESULT"
}
EOF
}
Expand Down