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

Linshuo #41

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Linshuo #41

wants to merge 2 commits into from

Conversation

Lin-qN
Copy link
Collaborator

@Lin-qN Lin-qN commented Jul 9, 2022

[fixed] fixed a bug

Copy link

@NUAA-CKYF-Bot NUAA-CKYF-Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

cpplint

Linshuo/server/cmake-build-debug/CMakeFiles/3.22.3/CompilerIdCXX/CMakeCXXCompilerId.cpp|710| Missing space after , [whitespace/comma] [3]
Linshuo/server/src/server.cpp|8| Do not use namespace using-directives. Use using-declarations instead. [build/namespaces] [5]
Linshuo/server/src/server.cpp|18| Lines should be <= 80 characters long [whitespace/line_length] [2]
Linshuo/server/src/server.cpp|22| Lines should be <= 80 characters long [whitespace/line_length] [2]
Linshuo/server/src/server.cpp|24| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Linshuo/server/src/server.cpp|29| Lines should be <= 80 characters long [whitespace/line_length] [2]
Linshuo/server/src/server.cpp|44| Redundant blank line at the end of a code block should be deleted. [whitespace/blank_line] [3]
Linshuo/server/src/server.cpp|63| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
Linshuo/server/src/server.cpp|66| Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

#include <unistd.h>

#include <ctime>
#include <chrono>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] reported by reviewdog 🐶
is an unapproved C++11 header. [build/c++11] [5]

#include <cstring>
#include <iostream>

using namespace std;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] reported by reviewdog 🐶
Do not use namespace using-directives. Use using-declarations instead. [build/namespaces] [5]

#include <iostream>

using namespace std;
using namespace std::chrono;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] reported by reviewdog 🐶
Do not use namespace using-directives. Use using-declarations instead. [build/namespaces] [5]

system_clock::time_point today = system_clock::now();
time_t tm = system_clock::to_time_t(today);

time_msg.timer = ctime(&tm);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] reported by reviewdog 🐶
Consider using ctime_r(...) instead of ctime(...) for improved thread safety. [runtime/threadsafe_fn] [2]

}


void interrupt_handler(int x)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] reported by reviewdog 🐶
Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]

#ifdef COMPILER_VERSION_INTERNAL
char const info_version_internal[] = {
'I', 'N', 'F', 'O', ':',
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

char const info_version_internal[] = {
'I', 'N', 'F', 'O', ':',
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
'i','n','t','e','r','n','a','l','[',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

'I', 'N', 'F', 'O', ':',
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
'i','n','t','e','r','n','a','l','[',
COMPILER_VERSION_INTERNAL,']','\0'};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

'i','n','t','e','r','n','a','l','[',
COMPILER_VERSION_INTERNAL,']','\0'};
#elif defined(COMPILER_VERSION_INTERNAL_STR)
char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] reported by reviewdog 🐶
Lines should be <= 80 characters long [whitespace/line_length] [2]

#ifdef SIMULATE_VERSION_MAJOR
char const info_simulate_version[] = {
'I', 'N', 'F', 'O', ':',
's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[cpplint] reported by reviewdog 🐶
Missing space after , [whitespace/comma] [3]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants