DD2480-G12 / libphonenumber

Google's common Java, C++ and JavaScript library for parsing, formatting, and validating international phone numbers.
Apache License 2.0
0 stars 0 forks source link

Calculate code complexity for AsYouTypeFormatter::getAvailableFormats #47

Open newinteger opened 2 years ago

newinteger commented 2 years ago

lizard gives a CCN of 14

newinteger commented 2 years ago

I counted it to 13

  1. Difference of 1 compared to lizard
  2. The function is quite short
  3. The functions gets the available formats that a phone number can have
  4. The function does not have any exceptions
  5. The function is well documented