In Ruby, class names should be meaningful and concise, and follow the naming conventions. Avoid using terms that might be considered offensive, derogatory, or otherwise inappropriate. Instead, use terminology that accurately represents the functionality or role of the class.
For instance, instead of using MasterClass, consider using PrimaryClass, MainClass, or another appropriate term that doesn’t have potentially negative connotations.
Non-Compliant Code Examples
classMasterClassdefmy_methodendend
Compliant Code Examples
classPrimaryClassdefmy_methodendend
シームレスな統合。 Datadog Code Security をお試しください
Datadog Code Security
このルールを試し、Datadog Code Security でコードを解析する
このルールの使用方法
1
2
rulesets:- ruby-inclusive # Rules to enforce Ruby inclusive.