def METHOD_NAME(self):
    """Get the path to the composer.json file for the current file."""
    filename = self.view.file_name()
    cwd = (
        os.path.dirname(filename) if filename else
        linter.guess_project_root_of_view(self.view)
    )
    return self.rev_parse_manifest_path(cwd) if cwd else None