mukeshsolanki/Google-Places-AutoComplete-EditText

View on GitHub

Showing 1 of 1 total issue

Method parseDetailsData has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  private fun parseDetailsData(jsonResults: StringBuilder, listener: OnPlacesDetailsListener) {
    val jsonObj = JSONObject(jsonResults.toString())
extendlog(jsonObj.toString())
    val resultJsonObject = jsonObj.getJSONObject(RESULT)
    val addressArray = resultJsonObject.getJSONArray(ADDRESS_COMPONENTS)
Severity: Minor
Found in library/src/main/java/in/madapps/placesautocomplete/PlaceApi.kt - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language