code: def allowPatternsForNameChecking(self, patternsFunc, patternsClass):
          
          cfgParser = self.linter.cfgfile_parser
          nameChecker = self.getCheckerByName(NameChecker)
          if not nameChecker:
              return
          if patternsFunc:
              regexFuncAdd = "|((%s).+)$" % "|".join(patternsFunc)
          else:
              regexFuncAdd = ""
          if patternsClass:
              regexClassAdd = "|((%s).+)$" % "|".join(patternsClass)
          else:
              regexClassAdd = ""
          # Modify regex for function, method and class name.
          regexMethod = cfgParser.get("BASIC", "method-rgx") + regexFuncAdd
          regexFunction = cfgParser.get("BASIC", "function-rgx") + regexFuncAdd
          regexClass = cfgParser.get("BASIC", "class-rgx") + regexClassAdd
          # Save to config parser.
          cfgParser.set("BASIC", "method-rgx", regexMethod)
          cfgParser.set("BASIC", "function-rgx", regexFunction)
          cfgParser.set("BASIC", "class-rgx", regexClass)
          # Save to name checker.
          nameChecker.config.method_rgx = re.compile(regexMethod)
          nameChecker.config.function_rgx = re.compile(regexFunction)
          nameChecker.config.class_rgx = re.compile(regexClass)
docs: Allow name exceptions by given patterns.
  
          @param patternsFunc: patterns of special function names
          @param patternsClass: patterns of special class names