-
Notifications
You must be signed in to change notification settings - Fork 21
Cthl 5116 adds global regex anotation #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| @@ -0,0 +1,135 @@ | |||
| package annotation | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
глобальное исключение по конфигу - это уже не аннотирование. стоит перенести в другой пакет
| } | ||
|
|
||
| // findLinesMatchingRegex scans a source file and returns line numbers that match the given regex. | ||
| func (r *RegexCollector) findLinesMatchingRegex(filePath string, regex *regexp.Regexp) ([]int, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не очень красиво, когда функция полностью скопипащена из другого файла. давай сделаем ее общей и будем переиспользовать
|
|
||
| // Collector defines the interface for handlers. | ||
| // Implementations should handle specific annotation types. | ||
| type Collector interface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
не совсем понимаю, зачем нам тут нужен интерфейс
No description provided.