SwiftLint icon indicating copy to clipboard operation
SwiftLint copied to clipboard

Rule Request: Avoid multiple statements on a single line separated with semicolons

Open SimplyDanny opened this issue 1 year ago • 4 comments

New Rule Request

Statements should stand on their own line.

  1. Why should this rule be added? Share links to existing discussion about what the community thinks about this.

    See header.

  2. Provide several examples of what would and wouldn't trigger violations.

    let a = 1; let b = 2
    
  3. Should the rule be configurable, if so what parameters should be configurable?

    Nothing to configure.

  4. Should the rule be opt-in or enabled by default? Why? See README.md for guidelines on when to mark a rule as opt-in.

    Could be enabled by default as not too many violations are expected.

SimplyDanny avatar Oct 18 '24 19:10 SimplyDanny

Hello @SimplyDanny, Could I work on it? 😊

val25-dev avatar Nov 03 '24 16:11 val25-dev

Hello @SimplyDanny,

Could I work on it? 😊

Sure. Please go ahead.

SimplyDanny avatar Nov 03 '24 16:11 SimplyDanny

Hi @SimplyDanny 😊 it seems like it's not done yet, so I already implemented the code and want to create the PR for that, can you please assign it to me if it's not done yet?

Thanks in advance

AhmedZaghloul19 avatar Feb 03 '25 14:02 AhmedZaghloul19

Hi @SimplyDanny 😊 it seems like it's not done yet, so I already implemented the code and want to create the PR for that, can you please assign it to me if it's not done yet?

Thanks in advance

Done. Thanks for taking over!

SimplyDanny avatar Feb 03 '25 14:02 SimplyDanny