Coder Social home page Coder Social logo

Comments (6)

tfoote avatar tfoote commented on August 28, 2024

The underlying cause appears to be that C style comments, /* , are not covered here: https://github.com/ament/ament_lint/blob/master/ament_copyright/ament_copyright/__init__.py#L314

This the copyright block is not considered a comment and not scanned for the copyright.

from ament_lint.

dirk-thomas avatar dirk-thomas commented on August 28, 2024

In order to keep the logic of this package simple it does not detect block comments. I don't think we should increase complexity for that but update the existing code to use non-block comments.

from ament_lint.

tfoote avatar tfoote commented on August 28, 2024

We could make it the standard for all our new code. But we're already preferring the block quotes greping our current code base we have 36 instances of c-style copyright blocks and 0 instances of c++ style copyright blocks.

(r2) tfoote@yeti:~/work/r2/ros2_ws$ grep -rI Copyright * > /tmp/copyright
(r2) tfoote@yeti:~/work/r2/ros2_ws$ cat /tmp/copyright | grep "\*" | wc -l
36
(r2) tfoote@yeti:~/work/r2/ros2_ws$ cat /tmp/copyright | grep "//" | wc -l
0

Also important is that the c-style copyright and licenses has been the default template used throughout the ROS ecosystem already. Not fixing this would force anyone to change the license block on packages being ported. It's both a pain for anyone making the port as well as making a mess for checking licensing.

And lastly it should be true that if anyone embeds code it should be detected without modifications.

It will make the logic much simpler in this script, but that's making this tool not useful in many of our use cases.

from ament_lint.

dirk-thomas avatar dirk-thomas commented on August 28, 2024

We decided in today's meeting to not support block comments for now.

Therefore I would propose to close the ticket.

from ament_lint.

tfoote avatar tfoote commented on August 28, 2024

Yeah, we can close it. It would be good to add comment to this effect in the documentation so people know it won't expect it to detect on c-style comments.

from ament_lint.

dirk-thomas avatar dirk-thomas commented on August 28, 2024

The PR extending ament_copyright to support licenses will contain a note in the documentation that block comments are not supported: https://github.com/ament/ament_lint/pull/15/files#diff-156d8d387088e2de200fc4c6f5bec6ecR47

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.