mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
fix: improve AI comment detection accuracy in FileWatcher
This commit is contained in:
parent
ee7bb71a05
commit
97bf5e8d69
4 changed files with 47 additions and 31 deletions
31
tests/fixtures/watch.py
vendored
31
tests/fixtures/watch.py
vendored
|
@ -1,19 +1,20 @@
|
|||
# Regular AI comment
|
||||
# ai do something
|
||||
# AI make this better
|
||||
# ai! urgent change needed
|
||||
# AI! another urgent one
|
||||
//ai javascript style
|
||||
//AI do that thing
|
||||
//ai! urgent js thing
|
||||
// ai with some space
|
||||
// AI with caps
|
||||
// ai! with bang
|
||||
# flake8: noqa
|
||||
|
||||
# Regular not AI comment
|
||||
# ai 1 do something
|
||||
# AI 2 make this better
|
||||
# ai! 3 urgent change needed
|
||||
# AI! 4 another urgent one
|
||||
# this is not an ai comment
|
||||
// this is also not an ai comment
|
||||
# aider is not an ai comment
|
||||
// aider is not an ai comment
|
||||
# not an ai! comment
|
||||
|
||||
|
||||
def dummy_function():
|
||||
# ai inside function
|
||||
pass
|
||||
# ai inside 5 function
|
||||
# final 6 ai!
|
||||
# final 7 ai
|
||||
# ai
|
||||
# ai
|
||||
# those are 8+9
|
||||
pass # ai 10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue