Merge pull request #163 from skrobinson/wip-disable-sa

Remove StaticAnalysis Action
This commit is contained in:
Pranav 2022-03-28 18:00:27 -05:00 committed by GitHub
commit 7f11534e39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 0 additions and 58 deletions

View File

@ -1,40 +0,0 @@
name: Static Analysis
on: pull_request_target
jobs:
static_analysis:
name: ${{ matrix.toolchain }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
toolchain:
- ubuntu-latest
include:
- toolchain: ubuntu-latest
os: ubuntu-latest
compiler: clang
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Analyze
uses: skrobinson/StaticAnalysis@stable-for-argparse
with:
clang_tidy_args: >-
--config-file=$GITHUB_WORKSPACE/.clang-tidy
--extra-arg=-I$GITHUB_WORKSPACE/include --extra-arg=-std=c++17
cppcheck_args: >-
--enable=all --inconclusive --inline-suppr
--suppress=missingInclude
--suppress='*:$GITHUB_WORKSPACE/test/doctest.hpp'
init_script: tools/static_analysis_setup.sh

View File

@ -1,10 +0,0 @@
cmake_minimum_required(VERSION 3.12)
project(argparse)
file(GLOB ARGPARSE_LINT_SOURCES
tidy-base.cpp
)
ADD_EXECUTABLE(ARGPARSE_LINT ${ARGPARSE_LINT_SOURCES})
set_target_properties(ARGPARSE_LINT PROPERTIES OUTPUT_NAME tidy-base)
set_property(TARGET ARGPARSE_LINT PROPERTY CXX_STANDARD 17)
INCLUDE_DIRECTORIES("../include" ".")

View File

@ -1,4 +0,0 @@
#!/bin/bash
# Change to the "tools" subdir before "build" subdir is made.
cd tools

View File

@ -1,4 +0,0 @@
#include "argparse/argparse.hpp"
int main(int argc, const char* argv[]) {}