diff --git a/.github/workflows/static-analysis.yml b/.github/workflows/static-analysis.yml new file mode 100644 index 000000000..4386960f4 --- /dev/null +++ b/.github/workflows/static-analysis.yml @@ -0,0 +1,54 @@ +name: Static Analysis + +# Run this workflow every time a new commit pushed to your repository +on: + push: + branches: + - main + pull_request: + +jobs: + + static-analysis: + name: Run cppcheck + runs-on: ubuntu-18.04 + + strategy: + fail-fast: false + matrix: + cppcheck: [all, cfe] + + steps: + + - name: Install cppcheck + run: sudo apt-get install cppcheck -y + + # Checks out a copy of the cfs bundle + - name: Checkout code + uses: actions/checkout@v2 + with: + submodules: true + + - name: Run bundle cppcheck + if: ${{matrix.cppcheck =='all'}} + run: cppcheck --force --inline-suppr --quiet . 2> ${{matrix.cppcheck}}_cppcheck_err.txt + + # Run strict static analysis for embedded portions of cfe + - name: cfe strict cppcheck + if: ${{matrix.cppcheck =='cfe'}} + run: | + cppcheck --force --inline-suppr --std=c99 --language=c --enable=warning,performance,portability,style --suppress=variableScope --inconclusive ./fsw/cfe-core/src ./modules 2> ./${{matrix.cppcheck}}_cppcheck_err.txt + + - name: Archive Static Analysis Artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{matrix.cppcheck}}-cppcheck-err + path: ./*cppcheck_err.txt + + - name: Check for errors + run: | + if [[ -s ${{matrix.cppcheck}}_cppcheck_err.txt ]]; + then + cat ${{matrix.cppcheck}}_cppcheck_err.txt + exit -1 + fi diff --git a/README.md b/README.md index e5e1f7e05..660436101 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,13 @@ The detailed cFE user's guide can be viewed at + ### Development Build: 6.8.0-rc1+dev228 - Remove use of `osapi-os-loader.h` from ES UT. diff --git a/docs/src/osalmain.dox b/docs/src/osalmain.dox index 455626249..7502b6991 100644 --- a/docs/src/osalmain.dox +++ b/docs/src/osalmain.dox @@ -6,27 +6,37 @@ -
  • Core OS Module +
  • Core -
  • OS File System +
  • File System -
  • \subpage osapi-os-filesys.h "File System Module Reference" +
  • \subpage osapi-filesys.h "File System Reference" +
  • \subpage osapi-file.h "File Reference" +
  • \subpage osapi-dir.h "Directory Reference"
  • Object File Loader -
  • Network Module +
  • Network
  • Timer +
  • Semaphore and Mutex + **/ diff --git a/fsw/cfe-core/src/inc/cfe_version.h b/fsw/cfe-core/src/inc/cfe_version.h index 7bafa0644..1212ec4c7 100644 --- a/fsw/cfe-core/src/inc/cfe_version.h +++ b/fsw/cfe-core/src/inc/cfe_version.h @@ -35,7 +35,7 @@ /* Development Build Macro Definitions */ -#define CFE_BUILD_NUMBER 228 /*!< Development Build: Number of commits since baseline */ +#define CFE_BUILD_NUMBER 236 /*!< Development Build: Number of commits since baseline */ #define CFE_BUILD_BASELINE "v6.8.0-rc1" /*!< Development Build: git tag that is the base for the current development */ /* Version Macro Definitions */ diff --git a/fsw/cfe-core/ut-stubs/ut_sb_stubs.c b/fsw/cfe-core/ut-stubs/ut_sb_stubs.c index f527c873c..f34d7be20 100644 --- a/fsw/cfe-core/ut-stubs/ut_sb_stubs.c +++ b/fsw/cfe-core/ut-stubs/ut_sb_stubs.c @@ -201,9 +201,9 @@ int32 CFE_SB_DeletePipe(CFE_SB_PipeId_t PipeId) ** ** \par Description ** This function is used to mimic the response of the cFE SB function -** CFE_SB_GetPipeName. The user must set the value of UT_pipename prior -** to this function being called. The function uses UT_pipename for the -** retrieved pipe name and returns CFE_SUCCESS. +** CFE_SB_GetPipeName. The user should set the data buffer using UT_SetDataBuffer +** prior to this function being called. Otherwise, the dummy "UT" name will +** be copied to PipeNameBuf. ** ** \par Assumptions, External Events, and Notes: ** None