lib/tasks/add_templates_and_printers_to_pmb.rake
Complex method namespace(pmb)::task(add_label_templates)::LabelTemplateCreator::get_label_type_id (27.8) Open
Open
def get_label_type_id(name)
return label_types[name.downcase] if label_types.include? name.downcase
label_type = label_type_params(name)
res = RestClient.post(label_type_url, label_type.to_json, LabelPrinter::PmbClient.headers_v1)
- Read upRead up
- Exclude checks
Flog calculates the ABC score for methods. The ABC score is based on assignments, branches (method calls), and conditions.
You can read more about ABC metrics or the flog tool