theodi/breasal

View on GitHub

Showing 2 of 2 total issues

Method to_latlng has 90 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def to_latlng(easting, northing, type = :gb)

          if type == :ie
          @OSGB_F0  = 1.000035
          @N0       = 250000.0
Severity: Major
Found in lib/breasal/easting_northing.rb - About 3 hrs to fix

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

          def to_WGS84
            
            if @type == :ie
              @a        = 6377340.189
              @b        = 6356034.447
    Severity: Minor
    Found in lib/breasal/latlng.rb - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language