Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
11 changes: 5 additions & 6 deletions .github/workflows/stylecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
- name: Fix spacing
run: |
# Fix mixed tabs and spaces
find . \( -path ./Externals -o -path ./sdk -o -path ./src/utils/mp_gpprof_server/libraries -o -path ./res \) -prune -o -iregex '.*\.\(cs\|yaml\|yml\|md\|txt\|cmake\|sh\)' -type f -exec bash -c 'expand -t 4 "$0" | sponge "$0"' {} \;
find . \( -path ./Externals -o -path ./sdk -o -path ./res \) -prune -o -iregex '.*\.\(cs\|yaml\|yml\|md\|txt\|cmake\|sh\)' -type f -exec bash -c 'expand -t 4 "$0" | sponge "$0"' {} \;

# Fix trailing white spaces
find . \( -path ./Externals -o -path ./sdk -o -path ./src/utils/mp_gpprof_server/libraries -o -path ./res \) -prune -o -iregex '.*\.\(h\|hpp\|inl\|c\|cpp\|cs\|yaml\|yml\|md\|txt\|cmake\|sh\)' -type f -exec bash -c 'sed -i '' -e "s/[[:space:]]*$//" "$0"' {} \;
find . \( -path ./Externals -o -path ./sdk -o -path ./res \) -prune -o -iregex '.*\.\(h\|hpp\|inl\|c\|cpp\|cs\|yaml\|yml\|md\|txt\|cmake\|sh\)' -type f -exec bash -c 'sed -i '' -e "s/[[:space:]]*$//" "$0"' {} \;

# Ensure files end with a new line
find . \( -path ./Externals -o -path ./sdk -o -path ./src/utils/mp_gpprof_server/libraries -o -path ./res \) -prune -o -iregex '.*\.\(h\|hpp\|inl\|c\|cpp\|cs\|yaml\|yml\|md\|txt\|cmake\|sh\)' -type f -exec bash -c 'tail -c1 < "$0" | read -r _ || echo >> "$0"' {} \;
find . \( -path ./Externals -o -path ./sdk -o -path ./res \) -prune -o -iregex '.*\.\(h\|hpp\|inl\|c\|cpp\|cs\|yaml\|yml\|md\|txt\|cmake\|sh\)' -type f -exec bash -c 'tail -c1 < "$0" | read -r _ || echo >> "$0"' {} \;

- name: Report result
run: |
Expand All @@ -52,10 +52,10 @@ jobs:
- name: Fix encoding
run: |
# Ensure that files are UTF-8 encoded
find . \( -path ./Externals -o -path ./sdk -o -path ./src/utils/mp_gpprof_server/libraries -o -path ./res \) -prune -o -iregex '.*\.\(h\|hpp\|inl\|c\|cpp\|yaml\|yml\|md\|txt\|cmake\|sh\)' -type f -exec bash -c 'recode UTF-8 "$0" 2> /dev/null' {} \;
find . \( -path ./Externals -o -path ./sdk -o -path ./res \) -prune -o -iregex '.*\.\(h\|hpp\|inl\|c\|cpp\|yaml\|yml\|md\|txt\|cmake\|sh\)' -type f -exec bash -c 'recode UTF-8 "$0" 2> /dev/null' {} \;

# Ensure that files have LF line endings and do not contain a BOM
find . \( -path ./Externals -o -path ./sdk -o -path ./src/utils/mp_gpprof_server/libraries -o -path ./res \) -prune -o -iregex '.*\.\(h\|hpp\|inl\|c\|cpp\|yaml\|yml\|md\|txt\|cmake\|sh\)' -type f -exec bash -c 'dos2unix "$0" 2> /dev/null' {} \;
find . \( -path ./Externals -o -path ./sdk -o -path ./res \) -prune -o -iregex '.*\.\(h\|hpp\|inl\|c\|cpp\|yaml\|yml\|md\|txt\|cmake\|sh\)' -type f -exec bash -c 'dos2unix "$0" 2> /dev/null' {} \;

- name: Report result
run: |
Expand Down Expand Up @@ -103,7 +103,6 @@ jobs:
git restore ./Externals
git restore ./res
git restore ./sdk
git restore ./src/utils/mp_gpprof_server/libraries

- name: Report result
run: |
Expand Down
8 changes: 0 additions & 8 deletions src/Common/Common.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,11 @@
<ClInclude Include="Compiler.inl" />
<ClInclude Include="Config.hpp" />
<ClInclude Include="d3d9compat.hpp" />
<ClInclude Include="face_smoth_flags.h" />
<ClInclude Include="FSMacros.hpp" />
<ClInclude Include="GUID.hpp" />
<ClInclude Include="LevelGameDef.h" />
<ClInclude Include="LevelStructure.hpp" />
<ClInclude Include="Noncopyable.hpp" />
<ClInclude Include="NvMender2003\convert.h" />
<ClInclude Include="NvMender2003\mender_input_output.h" />
<ClInclude Include="NvMender2003\NVMeshMender.h" />
<ClInclude Include="NvMender2003\remove_isolated_verts.h" />
<ClInclude Include="object_broker.h" />
<ClInclude Include="object_cloner.h" />
<ClInclude Include="object_comparer.h" />
Expand All @@ -80,9 +75,6 @@
<ClInclude Include="Util.hpp" />
<ClInclude Include="_d3d_extensions.h" />
</ItemGroup>
<ItemGroup>
<ClCompile Include="NvMender2003\NVMeshMender.cpp" />
</ItemGroup>
<ItemGroup>
<None Include="PlatformApple.inl" />
<None Include="PlatformBSD.inl" />
Expand Down
21 changes: 0 additions & 21 deletions src/Common/Common.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<ItemGroup>
<ClInclude Include="_d3d_extensions.h" />
<ClInclude Include="Config.hpp" />
<ClInclude Include="face_smoth_flags.h" />
<ClInclude Include="FSMacros.hpp" />
<ClInclude Include="GUID.hpp" />
<ClInclude Include="LevelGameDef.h" />
Expand All @@ -18,18 +17,6 @@
<ClInclude Include="object_saver.h" />
<ClInclude Include="object_type_traits.h" />
<ClInclude Include="Util.hpp" />
<ClInclude Include="NvMender2003\convert.h">
<Filter>NvMender2003</Filter>
</ClInclude>
<ClInclude Include="NvMender2003\mender_input_output.h">
<Filter>NvMender2003</Filter>
</ClInclude>
<ClInclude Include="NvMender2003\NVMeshMender.h">
<Filter>NvMender2003</Filter>
</ClInclude>
<ClInclude Include="NvMender2003\remove_isolated_verts.h">
<Filter>NvMender2003</Filter>
</ClInclude>
<ClInclude Include="Platform.hpp">
<Filter>Platform</Filter>
</ClInclude>
Expand Down Expand Up @@ -95,9 +82,6 @@
<ClInclude Include="d3d9compat.hpp" />
</ItemGroup>
<ItemGroup>
<Filter Include="NvMender2003">
<UniqueIdentifier>{4a2b53ad-98a9-4338-99a6-b5ea4123d5bf}</UniqueIdentifier>
</Filter>
<Filter Include="Platform">
<UniqueIdentifier>{05b6dbf9-e387-495f-9d92-e2b8ecc350fa}</UniqueIdentifier>
</Filter>
Expand All @@ -108,11 +92,6 @@
<UniqueIdentifier>{d02f2a58-bd08-43dc-86cc-6edd8c1f08a5}</UniqueIdentifier>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="NvMender2003\NVMeshMender.cpp">
<Filter>NvMender2003</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<None Include="PlatformBSD.inl">
<Filter>Platform</Filter>
Expand Down
Loading
Loading