[Feature Request]: High cyclomatic complexity leds to bad readability

オープン
#295 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@llrs-roche がすでに取り組んでいます。

2026年9月8日 から。

  • #296 @llrs-roche による — オープン

評価

難易度
3/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
リファクタリング
明瞭さ
説明が足りない
活発さ
活発
技術スタック
r
領域
tooling

調査の方向性

extract_dependency と extract_occurrence の R 実装と呼び出し元を見つけ、その周辺にある既存のテストを読んでください。現在の動作を維持しながら、可読性を向上させ、サイクロマティック複雑度を下げるように関数をリファクタリングしてください。リポジトリに既存のチェックが通ることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

enhancement
Feature description

There are some functions that are highly complex and hard to read:

                         name cyclocomp
13         extract_occurrence        30
12         extract_dependency        13
33 move_functions_after_arrow        10
30                 lang2calls         7
5                      c.qenv         6
17       fix_shifted_comments         6

It would be good to make it easier to read the extract_dependency and extract_occurrence so that it is easier to modify them and fix any error.

Code of Conduct
  • I agree to follow this project's Code of Conduct.
Contribution Guidelines
  • I agree to follow this project's Contribution Guidelines.
Security Policy
  • I agree to follow this project's Security Policy.
主要言語
R
スター
12
フォーク
12
平均マージ
4日 22時間
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pharmaverse/teal.code のほかの issue

pharmaverse/teal.code の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。