def __init__(self, view, syntax): """Override init to dynamically set config_file.""" Linter.__init__(self, view, syntax) settings = self.get_view_settings() config_file_name = settings.get('config_file_name') aux_config_dirs = settings.get('aux_config_dirs') config_file_tuple = ('-configfile', config_file_name) for conf in aux_config_dirs: config_file_tuple += (conf, ) self.config_file = config_file_tuple
def __init__(self, view, syntax): """Initialize and load GOPATH from settings if present.""" Linter.__init__(self, view, syntax) if not self.env: self.env = {} gopath = self.get_view_settings().get('gopath') if gopath: self.env['GOPATH'] = gopath print('sublimelinter: (custom) GOPATH={}'.format( self.env['GOPATH'])) else: print('sublimelinter: (system) GOPATH={}'.format( os.environ.get('GOPATH', ''))) goroot = self.get_view_settings().get('goroot') if goroot: self.env['GOROOT'] = goroot print('sublimelinter: (custom) GOROOT={}'.format( self.env['GOROOT'])) else: print('sublimelinter: (system) GOROOT={}'.format( os.environ.get('GOROOT', '')))
def __init__(self, view, settings): linters.Megacheck.__init__(self) Linter.__init__(self, view, settings)
def __init__(self, view, settings): linters.Govet.__init__(self) Linter.__init__(self, view, settings)
def __init__(self, view, syntax): """Initialize and load lc-community-server from settings if present.""" Linter.__init__(self, view, syntax)
def __init__(self, view, syntax): Linter.__init__(self, view, syntax) if not self.env: self.env = {} self.env.update(utils.get_env())