xixiaofinland / afmt

Salesforce Apex code formatter written in Rust
20 stars 3 forks source link

SOQL Order By clause's order expressions should be joined by commas #19

Closed aheber closed 2 days ago

aheber commented 3 days ago

If a SOQL query includes multiple ORDER BY expressions then should be separated by commas.

Example:

class Me {
  {
    [SELECT Id FROM Account ORDER BY Name DESC NULLS LAST, Phone ASC];
  }
}

Formatted

class Me {
  {
    [SELECT Id FROM Account ORDER BY Name DESC NULLS LAST Phone ASC];
  }
}
aheber commented 3 days ago

I'll send a PR for this.

xixiaofinland commented 2 days ago

fixed by PR: https://github.com/xixiaofinland/afmt/pull/20