Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
onon1101 committed Apr 21, 2024
1 parent 2430188 commit d7e0747
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 31 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/clang-tidy-check.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
name: clang-tidy-review

# You can be more specific, but it currently only works on pull requests
on: [pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

# Optionally generate compile_commands.json

- uses: ZedThree/[email protected]
id: review

# Uploads an artefact containing clang_fixes.json
- uses: ZedThree/clang-tidy-review/[email protected]
id: upload-review

# If there are any comments, fail the check
- if: steps.review.outputs.total_comments > 0
run: exit 1
#name: clang-tidy-review
#
## You can be more specific, but it currently only works on pull requests
#on: [pull_request]
#
#jobs:
# build:
# runs-on: ubuntu-latest
#
# steps:
# - uses: actions/checkout@v4
#
# # Optionally generate compile_commands.json
#
# - uses: ZedThree/[email protected]
# id: review
#
# # Uploads an artefact containing clang_fixes.json
# - uses: ZedThree/clang-tidy-review/[email protected]
# id: upload-review
#
# # If there are any comments, fail the check
# - if: steps.review.outputs.total_comments > 0
# run: exit 1
1 change: 0 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,3 @@ jobs:
with:
clang-format-version: "18"
check-path: ${{ matrix.path }}
fallback-style: "Mozilla" # optional
2 changes: 1 addition & 1 deletion include/Player/Equipment/Shovel/SComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace ToolSystem {
// Dig Level
struct DigLevel {
explicit DigLevel(std::vector<std::size_t> _level)
: level(_level) {};
: level(_level){};

std::vector<std::size_t> level;
};
Expand Down
4 changes: 2 additions & 2 deletions include/Player/Equipment/Weapon/Component.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct Damage {
struct Settings {
explicit Settings(std::string &path, bool isThrow)
: imagePath(path),
isThrow(isThrow) {};
isThrow(isThrow){};

std::string imagePath;
bool isThrow;
Expand All @@ -48,7 +48,7 @@ struct TBaseWeapon : Damage, Settings {
std::string obsidian, int16t titan, std::string path,
bool isThrow)
: Damage(nor, blood, glass, golden, obsidian, titan),
Settings(path, isThrow) {};
Settings(path, isThrow){};
};
}; // namespace ToolSystem

Expand Down
2 changes: 1 addition & 1 deletion src/Player/Equipment/Weapon/EntityBroadsword.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

ToolSystem::EntityBroadsword::EntityBroadsword()
: TBaseWeapon(normal, blood, glass, golden, obsidian, titanium, ImagePath,
m_IsThrow) {};
m_IsThrow){};
2 changes: 1 addition & 1 deletion src/Player/Equipment/Weapon/EntityDagger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

ToolSystem::EntityDagger::EntityDagger()
: TBaseWeapon(normal, blood, glass, golden, obsidian, titanium, ImagePath,
isThrow) {};
isThrow){};
2 changes: 1 addition & 1 deletion src/Player/Equipment/Weapon/EntityRapier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@

ToolSystem::EntityRapier::EntityRapier()
: TBaseWeapon(normal, blood, glass, golden, obsidian, titanium, ImagePath,
isThrow) {};
isThrow){};

0 comments on commit d7e0747

Please sign in to comment.