Technical Debt - ChoDragon9/posts GitHub Wiki

Code Climate 기술적 뢀채 뢄석 포인트 10가지

원본
  1. Argument count - Methods or functions defined with a high number of arguments
  2. Complex boolean logic - Boolean logic that may be hard to understand
  3. File length - Excessive lines of code within a single file
  4. Identical blocks of code - Duplicate code which is syntactically identical (but may be formatted differently)
  5. Method count - Classes defined with a high number of functions or methods
  6. Method length - Excessive lines of code within a single function or method
  7. Nested control flow - Deeply nested control structures like if or case
  8. Return statements - Functions or methods with a high number of return statements
  9. Similar blocks of code - Duplicate code which is not identical but shares the same structure (e.g. variable names may differ)
  10. Method complexity - Functions or methods that may be hard to understand
λ²ˆμ—­
  1. 인자 갯수 - λ§Žμ€ 수의 인자둜 μ •μ˜λœ λ©”μ†Œλ“œ λ˜λŠ” ν•¨μˆ˜
  2. λ³΅μž‘ν•œ λΆˆλ¦¬μ–Έ 둜직 - μ΄ν•΄ν•˜κΈ° νž˜λ“  λΆˆλ¦¬μ–Έ 둜직
  3. 파일 길이 - ν•œνŒŒμΌμ— κ³Όλ„ν•œ 라인의 μ½”λ“œ
  4. λ™μΌν•œ μ½”λ“œ 블둝 - ꡬ문 적으둜 λ™μΌν•œ 쀑볡 μ½”λ“œ (κ·ΈλŸ¬λ‚˜ ν˜•μ‹μ΄ λ‹€λ₯Ό 수 있음)
  5. λ©”μ†Œλ“œ 수 - λ§Žμ€ 수의 ν•¨μˆ˜ λ˜λŠ” λ©”μ†Œλ“œλ‘œ μ •μ˜ 된 클래슀
  6. λ©”μ„œλ“œ 길이 - 단일 ν•¨μˆ˜ λ˜λŠ” λ©”μ„œλ“œ λ‚΄μ—μ„œ μ½”λ“œκ°€ μ§€λ‚˜μΉ˜κ²Œ 많음
  7. 쀑첩 μ œμ–΄ 흐름 - if λ˜λŠ” case와 같이 쀑첩 된 μ œμ–΄ ꡬ쑰
  8. return λ¬Έ - λ§Žμ€ 수의 return 문을 μ‚¬μš©ν•˜λŠ” ν•¨μˆ˜ λ˜λŠ” λ©”μ„œλ“œ
  9. μœ μ‚¬ν•œ μ½”λ“œ 블둝 - λ™μΌν•˜μ§€λŠ” μ•Šμ§€λ§Œ λ™μΌν•œ ꡬ쑰λ₯Ό κ³΅μœ ν•˜λŠ” 쀑볡 μ½”λ“œ (예 : λ³€μˆ˜ 이름이 λ‹€λ₯Ό 수 있음)
  10. λ©”μ†Œλ“œ λ³΅μž‘μ„± - μ΄ν•΄ν•˜κΈ° μ–΄λ €μšΈ μˆ˜μžˆλŠ” ν•¨μˆ˜ λ˜λŠ” λ©”μ†Œλ“œ