Skip to content

Refactor/linting#155

Open
thomaslaurenson wants to merge 5 commits intomainfrom
refactor/linting
Open

Refactor/linting#155
thomaslaurenson wants to merge 5 commits intomainfrom
refactor/linting

Conversation

@thomaslaurenson
Copy link
Copy Markdown
Collaborator

No description provided.

@thomaslaurenson
Copy link
Copy Markdown
Collaborator Author

Going to have a little break from the PR and recheck it later in the week. This was a decent change to the entire code base, so deserves a close review with fresh eyes.

Copy link
Copy Markdown
Collaborator Author

@thomaslaurenson thomaslaurenson left a comment

Choose a reason for hiding this comment

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

Couple comments from review

runs-on: ubuntu-24.04
steps:
- name: Check out repository code
uses: actions/checkout@v4
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Should be v6

run: sudo apt-get install -y clang-format-18 clang-tidy-18

- name: Check formatting
run: find src \( -name "*.cpp" -o -name "*.h" \) | xargs clang-format-18 --dry-run --Werror
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Should use makefile for simplicity

return filePath;
#endif
#ifndef _WIN32
std::replace(filePath.begin(), filePath.end(), '\\', '/');
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Is this a blank line?

"(signature)",
"(attributes)"
};
static const std::vector<std::string> kSpecialMpqFiles = {"(listfile)", "(signature)",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

No format here

rm -rf build

## Generate compile_commands.json for clang-tidy
build_lint: CMakeLists.txt src/CMakeLists.txt
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Relook at this solution

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.

1 participant