This file contains a list of common issues we see during code reviews. It is designed to guide AI tools and agents to identify potential improvements.
SUGGESTION: Prefer selective field queries. EXAMPLE:
| import { Flex, type FlexProps, forwardRef, Text, Tooltip } from '@chakra-ui/react'; | |
| import { AwsIntegrationHealthStatus } from '@/generated/graphql'; | |
| import Status, { StatusTypes } from '@/components/core/status/Status'; | |
| type Props = { | |
| status: AwsIntegrationHealthStatus | null; | |
| title?: string; | |
| }; | |
| const AccountStatus = forwardRef<Props & FlexProps, 'div'>(({ status, title, ...rest }, ref) => { |
| /* eslint-disable camelcase */ | |
| import axios from 'axios'; | |
| import { err, ok, Result } from 'neverthrow'; | |
| import { Logger } from 'pino'; | |
| import semver from 'semver'; | |
| import { sleep } from '../../utils/helpers'; | |
| import { GitlabTokenRefreshError } from '../errors'; | |
| import RestApiClient from './restApiClient'; | |
| export type FullGitlabPullRequest = { |
| ### Keybase proof | |
| I hereby claim: | |
| * I am vdmgolub on github. | |
| * I am vdmgolub (https://keybase.io/vdmgolub) on keybase. | |
| * I have a public key whose fingerprint is C8A0 4702 DFE9 1CF4 A353 8D84 B162 7E99 70D4 1022 | |
| To claim this, I am signing this object: |
| namespace :api do | |
| constrants ApiVersion.new(1) do | |
| scope :module => :v1 do | |
| resource :app do | |
| resources :indices | |
| end | |
| end | |
| end | |
| constraints ApiVersion.new(2) do |