Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (16 sloc) 586 Bytes
import os
import sys
import urllib
import webbrowser
import sublime, sublime_plugin
import git_utils
class CodeClimateCommand(sublime_plugin.TextCommand):
def run(self, args):
file_info = git_utils.GitFileInfo(self.view.file_name())
params = urllib.urlencode({"repo": file_info.remote_repository(), "path": file_info.path()})
url = "" % params
print "Opening URL: " + url
except git_utils.GitInfoError as err:
sys.stderr.write("Cannot open file in CodeClimate: " + str(err))
Jump to Line
Something went wrong with that request. Please try again.