Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop-cfs-trailingSpaces' into develop. Close #108.
**Description** The cFS app template contains trailing spaces. It's best to remove them, since those are automatically removed by many editors and that will produce changes to the generated files. **Type** - Bug: The application produced by Ogma does not conform with our coding standards. **Additional context** None. **Requester** - Ivan Perez **Method to check presence of bug** Searching for trailing spaces in the ogma directory brings up multiple results. It should not bring any. ```sh $ grep -nIHre ' $' ogma-core/templates/copilot-cfs/fsw/mission_inc/copilot_cfs_perfids.h:5:** Purpose: ogma-core/templates/copilot-cfs/fsw/mission_inc/copilot_cfs_perfids.h:15:#define COPILOT_CFS_PERF_ID 91 ogma-core/templates/copilot-cfs/fsw/src/copilot_cfs.c:63: ogma-core/templates/copilot-cfs/fsw/src/copilot_cfs.c:91: */ ogma-core/templates/copilot-cfs/fsw/src/copilot_cfs.c:106: COPILOT_CFS_MINOR_VERSION, ogma-core/templates/copilot-cfs/fsw/src/copilot_cfs.c:107: COPILOT_CFS_REVISION, ogma-core/templates/copilot-cfs/fsw/src/copilot_cfs.c:150: ogma-core/templates/copilot-cfs/fsw/src/copilot_cfs_events.h:3:** copilot_app_events.h ogma-core/templates/copilot-cfs/fsw/src/copilot_cfs_events.h:5:** Purpose: ogma-core/templates/copilot-cfs/fsw/src/copilot_cfs_events.h:17:#define COPILOT_STARTUP_INF_EID 1 ogma-core/templates/copilot-cfs/fsw/src/copilot_cfs_events.h:20:#define COPILOT_INVALID_MSGID_ERR_EID 4 ogma-core/templates/copilot-cfs/fsw/src/copilot_cfs_events.h:21:#define COPILOT_LEN_ERR_EID 5 ogma-core/templates/copilot-cfs/fsw/src/copilot_cfs_msg.h:3:** copilot_cfs_msg.h ogma-core/templates/copilot-cfs/fsw/src/copilot_cfs_msg.h:5:** Purpose: ogma-core/templates/copilot-cfs/fsw/src/copilot_cfs_msg.h:29:typedef struct ogma-core/templates/copilot-cfs/fsw/src/copilot_cfs_version.h:5:** Purpose: ogma-core/templates/copilot-cfs/fsw/src/copilot_cfs_version.h:19: ogma-core/templates/copilot-cfs/fsw/for_build/Makefile:2:# File: CFS Application Makefile ogma-core/templates/copilot-cfs/fsw/for_build/Makefile:7:# Revision 1.8 2009/07/09 12:25:54EDT rmcgraw ogma-core/templates/copilot-cfs/fsw/for_build/Makefile:16:# ogma-core/templates/copilot-cfs/fsw/for_build/Makefile:18:# ogma-core/templates/copilot-cfs/fsw/for_build/Makefile:36:LOCAL_COPTS = ogma-core/templates/copilot-cfs/fsw/for_build/Makefile:52:SHARED_LIB_LINK = ogma-core/templates/copilot-cfs/fsw/for_build/Makefile:55:# Should not have to change below this line, except for customized ogma-core/templates/copilot-cfs/fsw/for_build/Makefile:60:# Set build type to CFE_APP. This allows us to ogma-core/templates/copilot-cfs/fsw/for_build/Makefile:62:# ogma-core/templates/copilot-cfs/fsw/for_build/Makefile:65:## ogma-core/templates/copilot-cfs/fsw/for_build/Makefile:67:## Any of these can be copied to a local file and ogma-core/templates/copilot-cfs/fsw/for_build/Makefile:101:## Define the VPATH make variable. ogma-core/templates/copilot-cfs/fsw/for_build/Makefile:104:## if the mission chooses to put the src in another directory such as "src", then that can be ogma-core/templates/copilot-cfs/fsw/for_build/Makefile:107:VPATH = $(CFS_APP_SRC)/$(APPTARGET)/fsw/src ogma-core/templates/copilot-cfs/fsw/platform_inc/copilot_cfs_msgids.h:5:** Purpose: ``` The following dockerfile searches for trailing spaces in all files, printing the word Success if none are found: ```Dockerfile FROM ubuntu:focal RUN apt-get update RUN apt-get install --yes git SHELL ["/bin/bash", "-c"] CMD git clone $REPO \ && cd $NAME \ && git checkout $COMMIT \ && ! grep -nIHre ' $' ogma** \ && echo "Success" ``` Command (substitute variables based on new path after merge): ```sh $ docker run -e "REPO=https://github.com/NASA/ogma" -e "NAME=ogma" -e PAT="ogma-" -e "COMMIT=<HASH>" -it ogma-verify-108 ``` **Expected result** The result of the `grep` command above should be empty, indicating that there are no trailing spaces. Running the dockerfile prints the message "Success", indicating the same thing. **Solution implemented** Remove all trailing spaces from any files that have them. **Further notes** None.
- Loading branch information