Meet SourceLevel, your automatic code reviewer

SourceLevel does continuous static analysis of your GitHub repositories and delivers it straight to your Pull Requests

Get started for free

Great, lib/jwt/base64.rb does not have any issues!

Go to line 1
# frozen_string_literal: true
Go to line 3
require 'base64'
Go to line 5
module JWT
Go to line 6
  # Base64 helpers
Go to line 7
  class Base64
Go to line 8
    class << self
Go to line 9
      def url_encode(str)
Go to line 10
        ::Base64.encode64(str).tr('+/', '-_').gsub(/[\n=]/, '')
Go to line 13
      def url_decode(str)
Go to line 14
        str += '=' * (4 - str.length.modulo(4))
Go to line 15
        ::Base64.decode64(str.tr('-_', '+/'))