Apexに関するコーディング規約

イシュー

  • 変数名の規約決め

参考

5.1 Rules common to all identifiers

Identifiers use only ASCII letters and digits, and in two cases noted below, underscores. Thus each valid identifier name is matched by the regular expression \w+ .

In Google Style special prefixes or suffixes, like those seen in the examples name_, mName, s_name and kName, are not used.

5.1 すべての識別子に共通するルール

識別子はASCII文字と数字のみを使用します。そして以下の2つの例ではアンダースコアも使用します。 したがって、それぞれ有効な識別子名は、正規表現「\W+」に一致します。

Googleのスタイル例に見られるような特殊な接頭辞や接尾辞である、name_ や mName や s_name や kName は、使用しません。

JavaStyleをベースにしたApexコーディング規約

参考

Lightning Design System

参考

ベストプラクティス的な記事

作成中

Eclipseによるコードフォーマッタ

参考