Comments (12)
Sounds good.
from ros2.
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.
@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.
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.
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.
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.
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.
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.
Another item, make sure the actual snippet is consistent: ament/ament_lint#3 (comment)
from ros2.
@esteve, use the tool if possible.
from ros2.
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.
Sounds good to me.
from ros2.
Related Issues (20)
- Subscription count is 0 after subscriber is created in ros foxy HOT 4
- Support topic instances in DDS topics HOT 4
- Error with SetBool service HOT 5
- debian package with binary file for debian12 HOT 1
- typo in warning message: "Be aware that are nodes ..." HOT 3
- ImportError from rqt_bag HOT 3
- Action Introspection and Record/Play Support HOT 1
- Inconsistent Network Bandwidth Consumption in ROS2 Image Transmission HOT 1
- Iron Irwini Patch Release 5 Checklist
- Can't set double_array parameter via ros2 param set (humble) HOT 3
- Frame loss occurs when ROS2 plays point cloud data on Intel 13th generation CPU
- ROS2 Humble fails to build on Windows (mcap_vendor: missing: zstd_LIBRARY) HOT 4
- Could not find a package configuration file provided by "ament_cmake" HOT 2
- How to set joint angles when spawning robot in gazebo HOT 1
- When to support Ubuntu24. 04 pls HOT 4
- ros-rolling-pcl-conversions : Depends: libpcl-common1.13 but it is not installable HOT 2
- ROS2 python talker using tutorial_interfaces (Num type) causes segmentation fault HOT 6
- Ros2 sample Creating an action fails to compile HOT 2
- Some components in jazzy-release point to branches and not tags HOT 6
- QoS combability is too strict, should be more user-friendly and flexible?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ros2.