No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
169da52
... +1 ...
d246492
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
109 | 109 | # Handle vector of hexadecimal or named colors |
|
110 | 110 | if (length(palette) > 1) { |
|
111 | 111 | # Verify colors are valid |
|
112 | - | if (!all(tolower(palette) %in% x11_hex()$hex)) { |
|
112 | + | is_valid_hex <- grepl(toupper(palette), pattern = "#[0-9A-F]{6}") |
|
113 | + | if (!all(is_valid_hex)) { |
|
113 | 114 | emit_error(fcn_name = fcn_name, |
|
114 | 115 | reasons = "The color palette contains invalid hexadecimal values.") |
|
115 | 116 | } |
156 | 156 | # Handle vector of hexadecimal or named colors |
|
157 | 157 | if (length(palette) > 1) { |
|
158 | 158 | # Verify colors are valid |
|
159 | - | if (!all(tolower(palette) %in% x11_hex()$hex)) { |
|
159 | + | is_valid_hex <- grepl(toupper(palette), pattern = "#[0-9A-F]{6}") |
|
160 | + | if (!all(is_valid_hex)) { |
|
160 | 161 | emit_error(fcn_name = fcn_name, |
|
161 | 162 | reasons = "The color palette contains invalid hexadecimal values.") |
|
162 | 163 | } |
Files | Coverage |
---|---|
Project Totals (241 files) | 81.04% |
d246492
34ff6d9
169da52