GithubHelp home page GithubHelp logo

Update copyright years to 2015 about ros2 HOT 12 CLOSED

ros2 avatar ros2 commented on June 3, 2024
Update copyright years to 2015

from ros2.

Comments (12)

esteve avatar esteve commented on June 3, 2024

Sounds good.

from ros2.

dirk-thomas avatar dirk-thomas commented on June 3, 2024

You don't want to apply this to the existing files - only to new ones, right?

Most of the existing code was developed in 2014.

from ros2.

wjwwood avatar wjwwood commented on June 3, 2024

@dirk-thomas you're probably right. I'll go through and make sure any modified files have the right year, untouched files I'll leave alone. I think the change on write policy is appropriate.

Ideally, we could setup a post install hook which checks that the year is right in changed files on commit. Or a unit test which looks at the last modified date of each file and checks against the copyright year in the file, if it has one. It's pretty low priority, but I think it actually might be pretty easy to do.

from ros2.

dirk-thomas avatar dirk-thomas commented on June 3, 2024

I don't think that we should ever remove a copyright year but only include the current year on change.

See http://stackoverflow.com/questions/3487007/when-to-update-the-year-in-open-source-copyright-notice for similar questions.

from ros2.

wjwwood avatar wjwwood commented on June 3, 2024

Ok, that works for me too, I'll go through and check that the existing files which were created in 2015 have the right year, others which were created in 2014 have that year. Additionally, if the files were created in 2014, but modified in 2015 that they include both.

I think a tool to check this is sounding better all the time. Again, low priority.

from ros2.

dirk-thomas avatar dirk-thomas commented on June 3, 2024

The functionality could be added to the linter package ament_copyright. It would be great if it can not only check the code but also update it if necessary.

from ros2.

wjwwood avatar wjwwood commented on June 3, 2024

I agree, however, I will say that tools that automatically change my code annoy me. For example, in the Tango project there is a post commit hook that runs everything through clang-format and automatically updates the commit. This was incredibly frustrating and it made my commits messier than they needed to be, mixing style changes with code changes.

I would prefer tools like this tell me there is a problem (ideally as a test failure) and then give me a command I can run to fix it automatically or explicitly skip testing for that instance.

from ros2.

dirk-thomas avatar dirk-thomas commented on June 3, 2024

All current linter packages provide the feedback what needs to change.

But some of them also have a command line option to perform the recommended modifications. I consider that a very helpful option to not waste time if the tool has already figured out what needs to be changed.

from ros2.

wjwwood avatar wjwwood commented on June 3, 2024

Another item, make sure the actual snippet is consistent: ament/ament_lint#3 (comment)

from ros2.

wjwwood avatar wjwwood commented on June 3, 2024

@esteve, use the tool if possible.

from ros2.

dirk-thomas avatar dirk-thomas commented on June 3, 2024

I think this has been addressed while adding all the missing copyright / license information as part of ament/ament_lint#15 (comment)
I tried to use reasonable year ranges where ever possible from looking at the git history.

from ros2.

wjwwood avatar wjwwood commented on June 3, 2024

Sounds good to me.

from ros2.

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.