Coder Social home page Coder Social logo

Comments (3)

dirk-thomas avatar dirk-thomas commented on July 24, 2024

Do you think this is related to the uncrustify configuration file provided by the package or a bug in uncrustify itself? If it is the latter please create a ticket in the upstream uncrustify repository instead.

from ament_lint.

rotu avatar rotu commented on July 24, 2024

Investigating... It may even be a bug of the pinned version of uncrustify in uncrustify_vendor. Nevertheless, even if it's a problem in the upstream code, it's a functional shortcoming that ought to be documented against ament_lint somehow, since the intent is to faithfully enforce the coding standards.

from ament_lint.

rotu avatar rotu commented on July 24, 2024

Alright. It seems that uncrustify (current HEAD version) does not treat object direct initialization (of the form var Class(args ...)) as function calls for purposes of nl_func_call_start_multi_line and I can't find a configuration option

I can see 3 possible resolutions. I'm leaning toward 2 or 3:

  1. I'm interpreting the developer guide wrong and the formatting guidelines for function calls differ from direct initialization.
  2. This is a bug in uncrustify and direct initialization should be considered function calls.
  3. This is a missing feature in uncrustify, and we can't expect the uncrustify linter to enforce this part of the developer guide.

from ament_lint.

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.