これは以前に回答されたことがあると思いますが、長いコード行をフォーマットするときのベストプラクティスに興味があります。
実行時間が長すぎる場合、それぞれをどのようにフォーマットしますか
これは、以下の適切なコードではなく、各タイプのrunonステートメントをフォーマットする方法に関するものであることに注意してください。
javascript/jqueryに長い条件演算子があるとします
var tablesToHide = $('table').length > 1 ? $('table') : $($('.nav > li[class="active"] > a').attr('href'));
tablesToHide.hide();
nullチェックを使用したJavaの長い条件があるとします
if(person.firstName != null && person.firstName.length() > 32 && person.firstName.length() < 5 && person.lastName != null && person.lastName.length() > 32 && person.lastName.length() < 5){//ridiculous operation}
長い操作があるとしましょう
long worldVsUnitedStates = (worldDuckCount + worldCatCount + worldTugBoatCount)/(unitedStatesTugBoatCount + unitedStatesDuckCount + unitedStatesCatCount)
Guava操作のような長いメソッド呼び出し
final Iterable<AccountingDocument> documentList = Iterables.filter(resultRecord.getAccountingDocuments(), AccountingDocument.class);
ロギングステートメントのような大きなメソッドパラメータ
logger.entering("UserAccountingAdministrationController", "createNewUserAccountingDocument", new Object[] { userAccountingForm, result, model });
FindBugsとthrows宣言を使用するための大きなメソッドパラメータ
public void saveAccountingFormWithValues( @Nullable FooA firstValue, @Nonnull FooB secondValue, @Nullable FooC thirdValue, @Nullable FooD fourthValue) throws DataAccessException