mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 09:14:59 +00:00
Improve linter support and repo map coverage for various programming languages.
This commit is contained in:
parent
74201dd733
commit
e2fb2466a9
2 changed files with 63 additions and 26 deletions
|
@ -517,6 +517,7 @@ def get_scm_fname(lang):
|
|||
|
||||
def get_supported_languages_md():
|
||||
from grep_ast.parsers import PARSERS
|
||||
|
||||
from aider.linter import Linter
|
||||
|
||||
res = """
|
||||
|
@ -525,11 +526,11 @@ def get_supported_languages_md():
|
|||
"""
|
||||
data = sorted((lang, ex) for ex, lang in PARSERS.items())
|
||||
linter = Linter()
|
||||
|
||||
|
||||
for lang, ext in data:
|
||||
fn = get_scm_fname(lang)
|
||||
repo_map = "✓" if Path(fn).exists() else "✗"
|
||||
linter_support = "✓" if lang in linter.languages else "✗"
|
||||
repo_map = "✓" if Path(fn).exists() else ""
|
||||
linter_support = "✓"
|
||||
res += f"| {lang:20} | {ext:20} | {repo_map:^8} | {linter_support:^6} |\n"
|
||||
|
||||
res += "\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue