nasa / ogma

Other
329 stars 24 forks source link

`ogma-core`: cFS app template contains trailing spaces #108

Closed ivanperez-keera closed 10 months ago

ivanperez-keera commented 10 months ago

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

Additional context

None.

Requester

Method to check presence of bug

Searching for trailing spaces in the ogma directory brings up multiple results. It should not bring any.

$ 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: 

Expected result

The result of the grep command above should be empty, indicating that there are no trailing spaces.

Desired result

The result of the grep command above should be empty, indicating that there are no trailing spaces.

Proposed solution

Remove all trailing spaces from any files that have them.

Further notes

None.

ivanperez-keera commented 10 months ago

Change Manager: Confirmed that the issue exists.

ivanperez-keera commented 10 months ago

Technical Lead: Confirmed that the issue should be addressed.

ivanperez-keera commented 10 months ago

Technical Lead: Issue scheduled for fixing in Ogma 1.0.12.

Fix assigned to: @ivanperez-keera.

ivanperez-keera commented 10 months ago

Implementor: Solution implemented, review requested.

ivanperez-keera commented 10 months ago

Change Manager: Verified that:

ivanperez-keera commented 10 months ago

Change Manager: Implementation ready to be merged.