1---
2stage: none
3group: unassigned
4info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
5---
6
7# Code comments
8
9Whenever you add comment to the code that is expected to be addressed at any time
10in future, please create a technical debt issue for it. Then put a link to it
11to the code comment you've created. This allows other developers to quickly
12check if a comment is still relevant and what needs to be done to address it.
13
14Examples:
15
16```ruby
17# Deprecated scope until code_owner column has been migrated to rule_type.
18# To be removed with https://gitlab.com/gitlab-org/gitlab/-/issues/11834.
19scope :code_owner, -> { where(code_owner: true).or(where(rule_type: :code_owner)) }
20```
21