MCPcopy
hub / github.com/Aider-AI/aider / lint_edited

Method lint_edited

aider/coders/base_coder.py:1681–1696  ·  view source on GitHub ↗
(self, fnames)

Source from the content-addressed store, hash-verified

1679 self.io.offer_url(urls.token_limits)
1680
1681 def lint_edited(self, fnames):
1682 res = ""
1683 for fname in fnames:
1684 if not fname:
1685 continue
1686 errors = self.linter.lint(self.abs_root_path(fname))
1687
1688 if errors:
1689 res += "\n"
1690 res += errors
1691 res += "\n"
1692
1693 if res:
1694 self.io.tool_warning(res)
1695
1696 return res
1697
1698 def __del__(self):
1699 """Cleanup when the Coder object is destroyed."""

Callers 1

send_messageMethod · 0.95

Calls 3

abs_root_pathMethod · 0.95
lintMethod · 0.80
tool_warningMethod · 0.45

Tested by

no test coverage detected