exitCodes.md

August 29, 2018 ยท View on GitHub

Secret-shield exit codes

Secret-shield has a number of exit codes corresponding to different errors.

NumberCodeComponentDetails
0success
1SECRET_FOUNDpreCommitsecret-shield found a secret
32CLONE_FAILsearchRepogit clone failed
33READ_FAILsearchRepofailed to read files
49DIR_READ_FAILsearchDirectoryfailed to read directory
50DIR_SEARCH_FAILsearchDirectorysearch failed because of an unknown error
55FILE_READ_FAILanalyzer.jscould not read file
64PREPROC_FAILsearchStringstring preprocessor failed
65MAINPROC_FAILsearchStringstring search main processor failed
66POSTPROC_FAILsearchStringstring search postprocessor failed
96GLOBAL_HOOK_REMOVE_FAILremoveHookscould not remove global hooks because of an unknown git error
97NO_GLOBAL_HOOKremoveHookscould not remove nonexistent global hooks
98NO_LOCAL_HOOKremoveHookscould not remove nonexistent local hooks
99LOCAL_HOOK_REMOVE_FAILremoveHookscould not delete local hooks file
110NPM_FAILupdateNPM failed
111UPDATE_FAILupdatefailed to update secret-shield to the latest version
112HOOK_UPDATE_FAILupdatefailed to update the hooks path following a secret-shield update
125PRE_COMMIT_SEARCH_FAILpreCommitsearch failed because of an unknown error
126GIT_DIFF_FILE_FAILpreCommitgit diff failed to run for an individual file
127GIT_DIFF_NAME_FAILpreCommitgit diff name-status failed
128NOT_A_REPOyou're not in a git repository
129NO_LOCAL_HOOK_ADDaddHookscould not find the local hook file to add
130LOCAL_HOOK_EXISTaddHookslocal hook already exists
131LOCAL_HOOK_ADD_COPY_FAILaddHooksfailed to copy over the local hook file
132LOCAL_HOOK_ADD_CHMOD_FAILaddHookscould not make local hooks executable
133GLOBAL_HOOK_ADD_FAILaddHookscould not add global hooks due to an unknown git error
216CF_TEMPLATE_PARSE_FAILsearchCFTemplatefailed to parse the CloudFormation template
250NOT_IMPLEMENTEDfunctionality is not implemented yet (or ever)
251DEPRECATEDfunctionality is deprecated
254MISSING_ARGSmissing command line arguments
255WRONG_ARGSwrong command line arguments