Skip to content

Commit

Permalink
Merge pull request #39 from arbCoding/devel
Browse files Browse the repository at this point in the history
Codacy static code analysis is reporting incorrectly.

It claims a fail (and says it couldn't perform analysis on their website). Yet checking the analysis for the specific commits shows that all is good.
  • Loading branch information
arbCoding authored Jan 30, 2024
2 parents 9a49271 + 0b79730 commit ab96a8d
Show file tree
Hide file tree
Showing 204 changed files with 792 additions and 1,961 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cpp-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
style: file
version: 15
files-changed-only: false
tidy-checks: "bugprone-*,performance-*,readability-*,portability-*,clang-analyzer-*,cpp-coreguidelines-*,modernize-a*,modernize-c*,modernize-d*,modernize-l*,modernize-m*,modernize-p*,modernize-r*,modernize-s*,modernize-t*,modernize-un*,modernize-use-a*,modernize-use-b*,modernize-use-c*,modernize-use-d*,modernize-use-e*,modernize-use-n*,modernize-use-o*,modernize-use-s*,modernize-use-tran*,modernize-use-u*"
tidy-checks: "bugprone-*,performance-*,readability-*,portability-*,clang-analyzer-*,cpp-coreguidelines-*,modernize-a*,modernize-c*,modernize-d*,modernize-l*,modernize-m*,modernize-p*,modernize-r*,modernize-s*,modernize-t*,modernize-un*,modernize-use-a*,modernize-use-b*,modernize-use-c*,modernize-use-d*,modernize-use-e*,modernize-use-n*,modernize-use-o*,modernize-use-s*,modernize-use-tran*,modernize-use-u*,clang-diagnostic-*"
database: "build/debug/gh-coverage/compile_commands.json"
ignore: "build/debug/gh-coverage/_deps | build/debug/gh-coverage/CMakeFiles | src/tests/ | Catch2/ | src/benchmark.cpp | src/util.hpp | .github"
extra-args: "-std=c++20"
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ install(TARGETS basic_tests trace_tests geometry_tests datetime_tests
RUNTIME DESTINATION bin/tests COMPONENT tests)
install(TARGETS benchmark RUNTIME DESTINATION bin/tests COMPONENT benchmarks)
install(TARGETS list_sac RUNTIME DESTINATION bin COMPONENT list_sac)
# Only specified components (exclude catch2)
set(CPACK_COMPONENTS_ALL library tests benchmarks list_sac license)
# Group components
cpack_add_component(library DISPLAY_NAME "sac-format" GROUP development
DESCRIPTION "sac-format library to use in your own programs.")
Expand All @@ -209,5 +211,3 @@ cpack_add_component(list_sac DISPLAY_NAME "list_sac" GROUP programs
header information from an input SAC file.")
cpack_add_component(license DISPLAY_NAME "license"
DESCRIPTION "sac-format license file.")
# Only specified components (exclude catch2)
set(CPACK_COMPONENTS_ALL library tests benchmarks list_sac license)
2 changes: 1 addition & 1 deletion CPPLINT.cfg
Original file line number Diff line number Diff line change
@@ -1 +1 @@
filter=-whitespace/indent,-runtime/string,-build/include_order,-build/c++11
filter=-whitespace/indent,-runtime/string,-build/include_order,-build/c++11,-whitespace/braces,-readability/nolint
2 changes: 1 addition & 1 deletion docs/BasicDocumentation.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/BuildInstructions.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<!doctype html><html xmlns=http://www.w3.org/1999/xhtml lang=en-US><meta http-equiv=Content-Type content="text/xhtml;charset=utf-8"><meta http-equiv=X-UA-Compatible content="IE=11"><meta name=generator content="Doxygen 1.9.8"><meta name=viewport content="width=device-width,initial-scale=1"><title>sac-format: Build Instructions</title>
<link href=tabs.css rel=stylesheet><script src=jquery.js></script><script src=dynsections.js></script><link href=navtree.css rel=stylesheet><script src=resize.js></script><script src=navtreedata.js></script><script src=navtree.js></script><link href=search/search.css rel=stylesheet><script src=search/searchdata.js></script><script src=search/search.js></script><link href=doxygen.css rel=stylesheet><link href=doxygen-awesome.css rel=stylesheet><div id=top><div id=titlearea><table cellspacing=0 cellpadding=0><tbody><tr id=projectrow><td id=projectalign><div id=projectname>sac-format<span id=projectnumber>&#160;0.6.0</span></div><div id=projectbrief>C++20 SAC (Seismic Analysis Code) File Library</div></table></div><script>var searchBox=new SearchBox("searchBox","search/",".html")</script><script src=menudata.js></script><script src=menu.js></script><script>$(function(){initMenu("",!0,!1,"search.php","Search"),$(document).ready(function(){init_search()})})</script><div id=main-nav></div></div><div id=side-nav class="ui-resizable side-nav-resizable"><div id=nav-tree><div id=nav-tree-contents><div id=nav-sync class=sync></div></div></div><div id=splitbar style=-moz-user-select:none class=ui-resizable-handle></div></div><script>$(document).ready(function(){initNavTree("BuildInstructions.html",""),initResizable()})</script><div id=doc-content><div id=MSearchSelectWindow onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"></div><div id=MSearchResultsWindow><div id=MSearchResults><div class=SRPage><div id=SRIndex><div id=SRResults></div><div class=SRStatus id=Loading>Loading...</div><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div></div></div></div></div><div><div class=header><div class=headertitle><div class=title>Build Instructions</div></div></div><div class=contents><div class=textblock><h1><a class=anchor id=autotoc_md167></a>Dependencies</h1><h2><a class=anchor id=autotoc_md168></a>Automatic (CMake)</h2><p><a href=https://github.com/Reputeless/Xoshiro-cpp>Xoshiro-cpp v1.12.0</a> (testing and benchmarking).<h2><a class=anchor id=autotoc_md169></a>Manual</h2><p><a href=https://github.com/catchorg/Catch2>Catch2 v3.4.0</a> (testing and benchmarking). Note that this is automatic on Windows (not Linux nor macOS).<h1><a class=anchor id=autotoc_md170></a>Building</h1><p>Building is as easy as cloning the repository, running CMake for your preferred build tool, and then building.<h2><a class=anchor id=autotoc_md171></a>GCC</h2><div class=fragment><div class=line>git clone https://github.com/arbCoding/sac-format.git</div><div class=line>cmake --preset gcc-hard-release</div><div class=line>cmake --build ./build/release/gcc</div></div><h2><a class=anchor id=autotoc_md172></a>Clang</h2><div class=fragment><div class=line>git clone https://github.com/arbCoding/sac-format.git</div><div class=line>cmake --preset clang-hard-release</div><div class=line>cmake --build ./build/release/clang</div></div></div></div></div></div><div id=nav-path class=navpath><ul><li class=footer>Generated by <a href=https://www.doxygen.org/index.html><img class=footer src=doxygen.svg width=104 height=31 alt=doxygen></a> 1.9.8</ul></div>
<link href=tabs.css rel=stylesheet><script src=jquery.js></script><script src=dynsections.js></script><link href=navtree.css rel=stylesheet><script src=resize.js></script><script src=navtreedata.js></script><script src=navtree.js></script><link href=search/search.css rel=stylesheet><script src=search/searchdata.js></script><script src=search/search.js></script><link href=doxygen.css rel=stylesheet><link href=doxygen-awesome.css rel=stylesheet><div id=top><div id=titlearea><table cellspacing=0 cellpadding=0><tbody><tr id=projectrow><td id=projectalign><div id=projectname>sac-format<span id=projectnumber>&#160;0.6.0</span></div><div id=projectbrief>C++20 SAC (Seismic Analysis Code) File Library</div></table></div><script>var searchBox=new SearchBox("searchBox","search/",".html")</script><script src=menudata.js></script><script src=menu.js></script><script>$(function(){initMenu("",!0,!1,"search.php","Search"),$(document).ready(function(){init_search()})})</script><div id=main-nav></div></div><div id=side-nav class="ui-resizable side-nav-resizable"><div id=nav-tree><div id=nav-tree-contents><div id=nav-sync class=sync></div></div></div><div id=splitbar style=-moz-user-select:none class=ui-resizable-handle></div></div><script>$(document).ready(function(){initNavTree("BuildInstructions.html",""),initResizable()})</script><div id=doc-content><div id=MSearchSelectWindow onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"></div><div id=MSearchResultsWindow><div id=MSearchResults><div class=SRPage><div id=SRIndex><div id=SRResults></div><div class=SRStatus id=Loading>Loading...</div><div class=SRStatus id=Searching>Searching...</div><div class=SRStatus id=NoMatches>No Matches</div></div></div></div></div><div><div class=header><div class=headertitle><div class=title>Build Instructions</div></div></div><div class=contents><div class=textblock><p>This section provides instructions to build from source.<h1><a class=anchor id=autotoc_md167></a>Dependencies</h1><h2><a class=anchor id=autotoc_md168></a>Automatic (CMake)</h2><p><a href=https://github.com/Reputeless/Xoshiro-cpp>Xoshiro-cpp v1.12.0</a> (testing and benchmarking).<h2><a class=anchor id=autotoc_md169></a>Manual</h2><p><a href=https://github.com/catchorg/Catch2>Catch2 v3.4.0</a> (testing and benchmarking). Note that this is automatic on Windows (not Linux nor macOS).<h3><a class=anchor id=autotoc_md170></a>macOS and Linux</h3><div class=fragment><div class=line>git clone https://github.com/catchorg/Catch2.git</div><div class=line>cd Catch2</div><div class=line>git checkout v3.5.2</div><div class=line>cmake -Bbuild -S. -DBUILD_TESTING=OFF</div><div class=line>sudo cmake --build ./build/ --target install</div></div><h1><a class=anchor id=autotoc_md171></a>Building</h1><p>Building is as easy as cloning the repository, running CMake for your preferred build tool, and then building.<h2><a class=anchor id=autotoc_md172></a>GCC</h2><div class=fragment><div class=line>git clone https://github.com/arbCoding/sac-format.git</div><div class=line>cd sac-format</div><div class=line>cmake --preset gcc-hard-release</div><div class=line>cmake --build ./build/hard/release/gcc</div></div><h2><a class=anchor id=autotoc_md173></a>Clang</h2><div class=fragment><div class=line>git clone https://github.com/arbCoding/sac-format.git</div><div class=line>cd sac-format</div><div class=line>cmake --preset clang-hard-release</div><div class=line>cmake --build ./build/hard/release/clang</div></div><h2><a class=anchor id=autotoc_md174></a>MSVC</h2><div class=fragment><div class=line>git clone https://github.com/arbCoding/sac-format.git</div><div class=line>cd sac-format</div><div class=line>cmake -B ./build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20 `</div><div class=line>-DCMAKE_CXX_STANDARD_REQUIRED=ON -DCMAKE_CXX_EXTENSIONS=OFF `</div><div class=line>-DCMAKE_CXX_FLAGS="/O2 /EHsc /Gs /guard:cf"</div></div></div></div></div></div><div id=nav-path class=navpath><ul><li class=footer>Generated by <a href=https://www.doxygen.org/index.html><img class=footer src=doxygen.svg width=104 height=31 alt=doxygen></a> 1.9.8</ul></div>
2 changes: 1 addition & 1 deletion docs/Install.html

Large diffs are not rendered by default.

Loading

0 comments on commit ab96a8d

Please sign in to comment.