-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added option to bypass automatic tagging by adding comment above specific resources. * Fix of UT * Fix integration and go-lint tests * Fix integration_test and go-lint tests 2 * fix integration test3 * Fix integration_test and lint4 * "Another way to implement skipping resources tagging by comments" * Fix integration_test5 * Fix integration_test6 * Fix integration_test6 * Fix integration_test7 * Another way to solve the issue * Fix UT * readme file and fixing code review * Feature skip resource by comment * Fix the golint * Fix golint * Fix security * Update src/terraform/structure/terraform_parser.go --------- Co-authored-by: ChanochShayner <[email protected]>
- Loading branch information
1 parent
c6a0b50
commit 20ec9a6
Showing
27 changed files
with
479 additions
and
76 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,33 @@ | ||
package common | ||
|
||
type ColorStruct struct { | ||
NoColor bool | ||
Reset string | ||
Green string | ||
Yellow string | ||
Blue string | ||
Purple string | ||
NoColor bool | ||
Reset string | ||
Green string | ||
Yellow string | ||
Blue string | ||
Purple string | ||
} | ||
|
||
func NoColorCheck (NoColorBool bool) *ColorStruct { | ||
var colors ColorStruct | ||
colors = ColorStruct{ | ||
NoColor : true, | ||
Reset : "", | ||
Green : "", | ||
Yellow : "", | ||
Blue : "", | ||
Purple : "", | ||
} | ||
if !NoColorBool { | ||
colors = ColorStruct{ | ||
NoColor : false, | ||
Reset : "\033[0m", | ||
Green : "\033[32m", | ||
Yellow : "\033[33m", | ||
Blue : "\033[34m", | ||
Purple : "\033[35m", | ||
} | ||
} | ||
return &colors | ||
func NoColorCheck(noColorBool bool) *ColorStruct { | ||
var colors ColorStruct | ||
colors = ColorStruct{ | ||
NoColor: true, | ||
Reset: "", | ||
Green: "", | ||
Yellow: "", | ||
Blue: "", | ||
Purple: "", | ||
} | ||
if !noColorBool { | ||
colors = ColorStruct{ | ||
NoColor: false, | ||
Reset: "\033[0m", | ||
Green: "\033[32m", | ||
Yellow: "\033[33m", | ||
Blue: "\033[34m", | ||
Purple: "\033[35m", | ||
} | ||
} | ||
return &colors | ||
} | ||
|
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
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
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
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
Oops, something went wrong.