Skip to content

Conversation

@StrikerRUS
Copy link
Collaborator

Refer to #7002.

Initially @jameslamb wrote

whitespace/indent_namespace: ignore indefinitely

But given that fixing this error for current codebase is quite straightforward and touches only 10 files, we can merge it and force this setting for the future PRs for the sake of consistent codebase.

@StrikerRUS StrikerRUS marked this pull request as ready for review October 12, 2025 18:56
Copy link
Collaborator

@borchero borchero left a comment

Choose a reason for hiding this comment

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

I'm always in favor of automation for code layout :)

Fine for me as long as all changes were automatically performed by the linter (I only checked superficially) ✅

Copy link
Collaborator

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

I support this. I'd written "ignore indefinitely" for this check only because I expected it would be a huge diff and didn't personally have a strong preference for either format.

But given that you've already done the work, I'm happy to merge this, to improve the consistency of the code and enforce that automatically going forward. And happy that src/c_api.cpp didn't need to be changed 😅

After this is merged, would you consider doing a followup PR adding this PR's commit to https://github.com/microsoft/LightGBM/blob/master/.git-blame-ignore-revs? That'd skip the mostly-indentation changes in the git blame.

@StrikerRUS
Copy link
Collaborator Author

Close-reopen to fix license/cla status.

@StrikerRUS StrikerRUS closed this Oct 13, 2025
@StrikerRUS StrikerRUS reopened this Oct 13, 2025
@StrikerRUS StrikerRUS merged commit 50f11a9 into master Oct 14, 2025
101 of 108 checks passed
@StrikerRUS StrikerRUS deleted the ci/indent_namespace branch October 14, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants