Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solargraphの設定を削除 #709

Merged
merged 4 commits into from
Jun 6, 2024
Merged

Solargraphの設定を削除 #709

merged 4 commits into from
Jun 6, 2024

Conversation

yonta
Copy link
Collaborator

@yonta yonta commented Mar 26, 2024

Ruby LSPのSolargraph!
特にアプリの動作は変わらないPR

やったこと

  • Solargraphの設定を更新
    • ad hockなコードを削除し、solargraph-rails gemを利用するようにした
    • Solargraphのチェッカーをすべてオンにした
      • 参考程度のTypecheckerをオンにした
      • solargraph typecheckで動かせる
      • 今後はRuby3で標準となったSteepがメインになるかも?
  • YARDにおける型ミスを修正
    • solargraph typecheckでYARDのHashの書き方のミスがわかりました
  • Solargraphの設定ファイルsolargraph.ymlを削除
    • 今までは設定ファイルはあるけどGemfileへは記述していなかった
      • つまり、Solargraphを使う人はglobalにinstall
      • プロジェクトのGemfileにはSolargraphが含まれていない
      • でもsolargraph.ymlはあるのでプロジェクト設定がされる
    • 今後は、Solargraphを使いたい人は、設定もグローバルに設定する

今まではsolargraph公式gistのad hocなコードを追加していた。
このコミットではsolargraph-railsプラグインを利用するようにした。
手元のグローバルgemにsolargraph/solargraph-railsをインストールすると使える。
Copy link

codecov bot commented Mar 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.57%. Comparing base (a56bb6e) to head (44779fc).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #709   +/-   ##
=======================================
  Coverage   96.57%   96.57%           
=======================================
  Files          17       17           
  Lines         321      321           
=======================================
  Hits          310      310           
  Misses         11       11           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yonta yonta changed the title Solargraphの設定を更新 Solargraphの設定を削除 May 21, 2024
Copy link
Owner

@momocus momocus left a comment

Choose a reason for hiding this comment

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

オッケー

@momocus momocus merged commit 210864d into main Jun 6, 2024
12 checks passed
@momocus momocus deleted the solargraph-rails branch June 6, 2024 06:59
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.

2 participants