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

fixed cpplint errors about spaces and newlines #2102

Merged
merged 1 commit into from
Apr 13, 2019
Merged

Conversation

StrikerRUS
Copy link
Collaborator

@StrikerRUS StrikerRUS commented Apr 12, 2019

Refer to #1990.

Copy link
Collaborator Author

@StrikerRUS StrikerRUS left a comment

Choose a reason for hiding this comment

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

Below are some minor fixes which are not about spaces and new lines.

@@ -306,7 +306,7 @@ def gen_parameter_code(config_hpp, config_out_cpp):
# tails
str_to_write += " return str_buf.str();\n"
str_to_write += "}\n\n"
str_to_write += "}\n"
str_to_write += "} // namespace LightGBM\n"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

namespace end

int size = n / 32;
if(n % 32 != 0) size++;
if (n % 32 != 0) ++size;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

prefix increment

@@ -216,9 +216,9 @@ class Booster {
is_raw_score = false;
}

// TODO: config could be optimized away... (maybe using lambda callback?)
// TODO(eisber): config could be optimized away... (maybe using lambda callback?)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

nickname of TODO creator

@StrikerRUS StrikerRUS requested review from guolinke and chivee April 12, 2019 19:13
@guolinke guolinke merged commit 0a4a7a8 into master Apr 13, 2019
@StrikerRUS StrikerRUS deleted the cpplint_spaces branch April 13, 2019 10:27
@lock lock bot locked as resolved and limited conversation to collaborators Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants