pylint/lint.py
def set_option(self, optname, value, action=None, optdict=None):
        """overridden from config.OptionsProviderMixin to handle some
        special options
        """
        if optname in self._options_methods or optname in self._bw_options_methods:
            if value:
                try:
                    meth = self._options_methods[optname]
                except KeyError:
                    meth = self._bw_options_methods[optname]
                    warnings.warn(
                        "%s is deprecated, replace it by %s"
                        % (optname, optname.split("-")[0]),
                        DeprecationWarning,
                    )
                value = utils._check_csv(value)
                if isinstance(value, (list, tuple)):
                    for _id in value:
                        meth(_id, ignore_unknown=True)
                else:
                    meth(value)
                return  # no need to call set_option, disable/enable methods do it
        elif optname == "output-format":
            self._reporter_name = value
            # If the reporters are already available, load
            # the reporter class.
            if self._reporters:
                self._load_reporter()

        try:
            checkers.BaseTokenChecker.set_option(self, optname, value, action, optdict)
        except config.UnsupportedAction:
            print("option %s can't be read from config file" % optname, file=sys.stderr)
def set_option(self, optname, value, action=None, optdict=None):
        if optname in self._options_methods or optname in self._bw_options_methods:
            if value:
                try:
                    meth = self._options_methods[optname]
                except KeyError:
                    meth = self._bw_options_methods[optname]
                    warnings.warn(
                        "%s is deprecated, replace it by %s"
                        % (optname, optname.split("-")[0]),
                        DeprecationWarning,
                    )
                value = utils._check_csv(value)
                if isinstance(value, (list, tuple)):
                    for _id in value:
                        meth(_id, ignore_unknown=True)
                else:
                    meth(value)
                return  # no need to call set_option, disable/enable methods do it
        elif optname == "output-format":
            self._reporter_name = value
            # If the reporters are already available, load
            # the reporter class.
            if self._reporters:
                self._load_reporter()

        try:
            checkers.BaseTokenChecker.set_option(self, optname, value, action, optdict)
        except config.UnsupportedAction:
            print("option %s can't be read from config file" % optname, file=sys.stderr)
def set_option ( self , optname , value , action = None , optdict = None ) : if optname in self . _options_methods or optname in self . _bw_options_methods : if value : try : meth = self . _options_methods [ optname ] except KeyError : meth = self . _bw_options_methods [ optname ] warnings . warn ( "%s is deprecated, replace it by %s" % ( optname , optname . split ( "-" ) [ 0 ] ) , DeprecationWarning , ) value = utils . _check_csv ( value ) if isinstance ( value , ( list , tuple ) ) : for _id in value : meth ( _id , ignore_unknown = True ) else : meth ( value ) return # no need to call set_option, disable/enable methods do it elif optname == "output-format" : self . _reporter_name = value # If the reporters are already available, load # the reporter class. if self . _reporters : self . _load_reporter ( ) try : checkers . BaseTokenChecker . set_option ( self , optname , value , action , optdict ) except config . UnsupportedAction : print ( "option %s can't be read from config file" % optname , file = sys . stderr )
overridden from config.OptionsProviderMixin to handle some
        special options
overridden from config . OptionsProviderMixin to handle some special options