

def on_post_save(self, view):
    if self.IsValidScope(view):
        settings = SublimePapyrus.GetSettings()
        if (settings and settings.get('linter_on_save', True)):
            filePath = view.file_name()
            if scriptName:
                (folderPath, fileName) = os.path.split(filePath)
                scriptName = fileName[:fileName.rfind('.')].upper()
                if self.linterRunning:
                    return
                self.ClearSemanticAnalysisCache(scriptName)
                self.ClearCompletionCache(scriptName)
                self.bufferID = view.buffer_id()
                if self.bufferID:
                    self.linterQueue += 1
                    (lineNumber, columnNumber) = view.rowcol(view.sel()[0].begin())
                    lineNumber += 1
                    self.Linter(view, lineNumber)

dataset/ETHPy150Open Kapiainen/SublimePapyrus/Source/Modules/Skyrim/Plugin.py EventListener.on_post_save/VarMisuse@55/77 `filePath`->`scriptName`