Comments (9)
I'm now thinking about the config structure like the below for allowing multiple year patterns.
{
"**/*.js": "// Copyright {YEAR} My Name. All rights reserved. MIT license.",
"params": {
"YEAR": "some regexp?"
}
}
from deno_license_checker.
Personally I often see people updating all years in headers around the new years day.
Yikes. I am a java developer and contribute to apache projects. As far as I can tell, there is usually one year only, which is updated when the file is being modified. I do not think updating projects at new year is a good thing. It is not a functional change, and if forgotten will fail PRs and future builds.
from deno_license_checker.
Currently there is no support of mixed years in copyright headers.
Is mixing years in copyright header common or good thing? Personally I often see people updating all years in headers around the new years day.
from deno_license_checker.
Also mentioned in the GPL FAQ: https://www.gnu.org/licenses/gpl-howto.html
from deno_license_checker.
If mixture of different years is allowed, do you have any idea of the design of the config file?
from deno_license_checker.
I basically would allow regex to be included. Sadly this would not be downwards compatible.
from deno_license_checker.
Got to this repository via search, to automate latest year inclusion. I.e. just to check whether pushed files contains current year in copyright string. It could be done as dealing with copyright as regexp, adding some placeholders like ${YEAR}, ${FILENAME}, maybe something else could be useful as well.
from deno_license_checker.
Is mixing years in copyright header common or good thing?
I don't think I have ever seen a codebase older than one year which did not include mixed years in copyright headers. It is common to see a range, for example "Copyright (c) 2003-2009 Foo, Inc.".
Personally I often see people updating all years in headers around the new years day.
Several of the places I have worked would have absolutely forbidden such a large, non-functional change across the entire codebase.
from deno_license_checker.
@kt3k this would be amazing!
from deno_license_checker.
Related Issues (15)
- Feature request: Multiline header support HOT 2
- support multiple configuration HOT 1
- Need to bump version from v1.5.0 HOT 1
- Type Error with Deno v1.6.0 HOT 2
- Matching multiple file extensions HOT 4
- Error running license check on Windows 10 HOT 2
- Folder with dot in name causes an error
- Cannot walk path like items/[id].ts HOT 1
- how can I use this to check license in .cpp files? HOT 1
- Add option to allow multiple types of licenses HOT 5
- Allow Regex in licenses HOT 2
- cannot update dependencies
- Github marketplace HOT 2
- multiple allowed licences
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 deno_license_checker.