alexreisner/geocoder

View on GitHub
lib/easting_northing.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Method to_osgb_36 has 78 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def to_osgb_36
      osgb_fo  = 0.9996012717
      northing0 = -100_000.0
      easting0 = 400_000.0
      phi0 = deg_to_rad(49.0)
Severity: Major
Found in lib/easting_northing.rb - About 3 hrs to fix

    Method to_WGS84 has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def to_WGS84(latlng)
          latitude = latlng[0]
          longitude = latlng[1]
    
          a = 6_377_563.396
    Severity: Minor
    Found in lib/easting_northing.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status