Giter Site home page Giter Site logo

Comments (4)

jmgrassau avatar jmgrassau commented on September 26, 2024

Hi Josh,

good point – I completely agree that no-one would want …

class->method( CHANGING
                 field1 = value1 ).

That was easy to fix. However, what should be done if someone configures this:

image
image

Should the rule then continue after the keywords as well (ignoring the second setting) …

class->method( CHANGING field1 = value1
                        field2 = value2
                        field3 = value3 ).

… or would you then rather expect …

class->method( CHANGING
                 field1 = value1
                 field2 = value2
                 field3 = value3 ).

… for cases that are not one-liners?

Not sure here. We could of course turn the "…put keywords … on own line" into a selection, e.g. "Always / Only below the call / Never"; then the second option would 'allow' us to behave differently if we continue after the call.

Kind regards,
Jörg-Michael

from abap-cleaner.

jmgrassau avatar jmgrassau commented on September 26, 2024

Hi Josh,

version 1.4.1 was just released and should do the trick for one-liners. Keeping this open, though, to find a solution for multi-line cases as well.

Kind regards,
Jörg-Michael

from abap-cleaner.

jelliottp avatar jelliottp commented on September 26, 2024

Thank you!

Regarding the multi-line cases, we are not running into this since we're limiting to 1 parameter behind the call. However, if I was to use it for multiple lines and I had the "Put keywords on own line" setting on, I would assume I'd get this:

class->method( CHANGING
                 field1 = value1
                 field2 = value2
                 field3 = value3 ).

I would like to hear from others though who are using the settings in this manner.

from abap-cleaner.

jmgrassau avatar jmgrassau commented on September 26, 2024

Hi Josh,

perfect, then the behavior for >1 parameter is as you would expect it, too. Unless someone explicitly wants >1 parameters cases to look different, we can close this for now!

Kind regards,
Jörg-Michael

from abap-cleaner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.