question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

suggestion: automatically add copyright header to files missing one

See original GitHub issue

Currently, the licence check tool prints the list of files missing a copyright header and throws an error. It’d be cool if the tool could instead insert the copyright at the top of the file as defined by the COPYRIGHT constant. It should be easy to implement.

The tool is located at _tools/check_licence.ts and is run using deno task lint:licence-headers.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
schwarzkopfbcommented, Dec 3, 2022

also auto-updating the year to present would be great

2reactions
lino-levancommented, Dec 6, 2022

I agree with @iuioiua in this case. As long as the complexity is low we should just be updating everything.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there an easy way to have the copyright notice automatically ...
In Preferences --> Copyright --> Copyright Profiles, create a profile, and replace the default text with your own custom copyright notice.
Read more >
Add document header for files automatically in Visual Studio
In this blog post I am going to share how you can add a document header image of xml comments with code file...
Read more >
Create a script that automatically add/update license header ...
The REUSE program has an automated tool to automatically insert the copyright notice in each file. This is called the REUSE helper tool...
Read more >
Adding a Copyright License Header for Java Source Files in ...
In this quick article, we learned how to configure IntelliJ IDEA to add license headers automatically to all of our project files –...
Read more >
Top 10 C++ header file mistakes and how to fix them
Recommendation : Always use an include guard as shown above to optimize build times and avoid weird build errors. If your compiler supports...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found