10
11
12
13
14
15
16
17
18
|
# File 'lib/zendesk_apps_support/validations/secure_settings.rb', line 10
def call(package)
manifest_params = package.manifest.parameters
insecure_params_found = manifest_params.any? { |param| insecure_param?(param) }
package.warnings << secure_settings_warning if insecure_params_found
secure_or_hidden_default_param_found = manifest_params.any? { |param| secure_or_hidden_default_param?(param) }
package.warnings << hidden_default_parameter_warning if secure_or_hidden_default_param_found
end
|