Skip to content

Conversation

@Serelllka
Copy link
Collaborator

No description provided.

@@ -0,0 +1,135 @@
package annotation
Copy link
Collaborator

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) {
Copy link
Collaborator

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 {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

не совсем понимаю, зачем нам тут нужен интерфейс

@AlexanderAsmakov AlexanderAsmakov self-requested a review December 26, 2025 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants