Skip to content

Commit

Permalink
Merge pull request #78 from Deewarz/fix-lint-issues
Browse files Browse the repository at this point in the history
Fix lint issues + make the url clickable on Github
  • Loading branch information
zpl-zak committed Nov 20, 2023
2 parents d65a8a7 + 754e57a commit a1a8c29
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 3 deletions.
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

0 comments on commit a1a8c29

Please sign in to comment.