forked from tern-tools/tern
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dfile_lock & dfobj flags to analysis functions
This commit makes changes to the execution path when analyzing a dockerfile or utilizing the dockerfile lock functionality. Instead of using a True/False 'dockerfile' flag to indicate there is a Dockerfile to analyze, provide a 'dfobj' dockerfile object instead. When using a dockerfile object, the file path is still available to access via dfobj.filepath. This commit also adds a dfile_lock True/False flag as an argument to a handful of functions to differentiate between a "dockerfile lock" dockerfile and regular dockerfile analysis. Even though the execution path is similar for both options, this distinction is important for determining the output file that should be generated. Works towards tern-tools#522 Signed-off-by: Rose Judge <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters