Reflow license text and add copyright year and name
Before adoption: this commit came in with the history the project adopted, so no landing records it.
* Format license text and header to fit within 80 characters per line * Remove extra top line from LICENSE file for Apache-2.0 * Remove the FreeBSD-specific disclaimer from the BSD-2-Clause license * Use {{ .copyright }} to add "Copyright © YEAR FULL NAME" to the LICENSE file for MIT and BSD licenses.
authored by Anthony Fok · committed by Anthony Fok · parent 6d6c92d · Browse files · 1 file·+110 added−110 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
1 file+110 added−110 removed
- other:+110 added−110 removed
Provenance
- Commit
4b09651- Tree
12d8b1f- Author
Anthony Fok <foka@debian.org>- Committer
Anthony Fok <foka@debian.org>- Parent
6d6c92d
1 file changed+110 added−110 removed
modified:cobra/cmd/licenses.go+110 added-110 removed
55 unmodified lines56 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.57 // See the License for the specific language governing permissions and58 // limitations under the License.`,59 Text: `60-60 Apache License61 Version 2.0, January 200462 http://www.apache.org/licenses/63 200 unmodified lines264 Licenses["mit"] = License{265 Name: "Mit",266 PossibleMatches: []string{"mit"},267 Header: `269- The MIT License (MIT)268+Permission is hereby granted, free of charge, to any person obtaining a copy269+of this software and associated documentation files (the "Software"), to deal270+in the Software without restriction, including without limitation the rights271+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell272+copies of the Software, and to permit persons to whom the Software is273+furnished to do so, subject to the following conditions:274 271- Permission is hereby granted, free of charge, to any person obtaining a copy272- of this software and associated documentation files (the "Software"), to deal273- in the Software without restriction, including without limitation the rights274- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell275- copies of the Software, and to permit persons to whom the Software is276- furnished to do so, subject to the following conditions:275+The above copyright notice and this permission notice shall be included in276+all copies or substantial portions of the Software.277 278- The above copyright notice and this permission notice shall be included in all279- copies or substantial portions of the Software.278+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR279+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,280+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE281+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER282+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,283+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN284+THE SOFTWARE.`,285+ Text: `The MIT License (MIT)286 281- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR282- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,283- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE284- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER285- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,286- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE287- SOFTWARE.`,288- Text: `289- The MIT License (MIT)287+{{ .copyright }}288 291- Permission is hereby granted, free of charge, to any person obtaining a copy292- of this software and associated documentation files (the "Software"), to deal293- in the Software without restriction, including without limitation the rights294- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell295- copies of the Software, and to permit persons to whom the Software is296- furnished to do so, subject to the following conditions:289+Permission is hereby granted, free of charge, to any person obtaining a copy290+of this software and associated documentation files (the "Software"), to deal291+in the Software without restriction, including without limitation the rights292+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell293+copies of the Software, and to permit persons to whom the Software is294+furnished to do so, subject to the following conditions:295 298- The above copyright notice and this permission notice shall be included in all299- copies or substantial portions of the Software.296+The above copyright notice and this permission notice shall be included in297+all copies or substantial portions of the Software.298 301- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR302- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,303- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE304- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER305- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,306- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE307- SOFTWARE.299+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR300+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,301+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE302+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER303+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,304+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN305+THE SOFTWARE.306 `,307 }308 309 Licenses["bsd"] = License{310 Name: "NewBSD",311 PossibleMatches: []string{"bsd", "newbsd", "3 clause bsd"},312 Header: `315- All rights reserved.313+All rights reserved.314 317- Redistribution and use in source and binary forms, with or without318- modification, are permitted provided that the following conditions are met:319- * Redistributions of source code must retain the above copyright320- notice, this list of conditions and the following disclaimer.321- * Redistributions in binary form must reproduce the above copyright322- notice, this list of conditions and the following disclaimer in the323- documentation and/or other materials provided with the distribution.324- * Neither the name of the <organization> nor the325- names of its contributors may be used to endorse or promote products326- derived from this software without specific prior written permission.315+Redistribution and use in source and binary forms, with or without316+modification, are permitted provided that the following conditions are met:317 328- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND329- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED330- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE331- DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY332- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES333- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;334- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND335- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT336- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS337- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.`,338- Text: `339- All rights reserved.318+1. Redistributions of source code must retain the above copyright notice,319+ this list of conditions and the following disclaimer.320 341- Redistribution and use in source and binary forms, with or without342- modification, are permitted provided that the following conditions are met:343- * Redistributions of source code must retain the above copyright344- notice, this list of conditions and the following disclaimer.345- * Redistributions in binary form must reproduce the above copyright346- notice, this list of conditions and the following disclaimer in the347- documentation and/or other materials provided with the distribution.348- * Neither the name of the <organization> nor the349- names of its contributors may be used to endorse or promote products350- derived from this software without specific prior written permission.321+2. Redistributions in binary form must reproduce the above copyright notice,322+ this list of conditions and the following disclaimer in the documentation323+ and/or other materials provided with the distribution.324 352- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND353- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED354- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE355- DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY356- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES357- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;358- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND359- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT360- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS361- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.325+3. Neither the name of the copyright holder nor the names of its contributors326+ may be used to endorse or promote products derived from this software327+ without specific prior written permission.328+329+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"330+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE331+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE332+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE333+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR334+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF335+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS336+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN337+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)338+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE339+POSSIBILITY OF SUCH DAMAGE.`,340+ Text: `{{ .copyright }}341+All rights reserved.342+343+Redistribution and use in source and binary forms, with or without344+modification, are permitted provided that the following conditions are met:345+346+1. Redistributions of source code must retain the above copyright notice,347+ this list of conditions and the following disclaimer.348+349+2. Redistributions in binary form must reproduce the above copyright notice,350+ this list of conditions and the following disclaimer in the documentation351+ and/or other materials provided with the distribution.352+353+3. Neither the name of the copyright holder nor the names of its contributors354+ may be used to endorse or promote products derived from this software355+ without specific prior written permission.356+357+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"358+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE359+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE360+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE361+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL362+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR363+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER364+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,365+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE366+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.367 `,368 }369 370 Licenses["freebsd"] = License{4 unmodified lines375 376 Redistribution and use in source and binary forms, with or without377 modification, are permitted provided that the following conditions are met:378 374-1. Redistributions of source code must retain the above copyright notice, this375- list of conditions and the following disclaimer.379+1. Redistributions of source code must retain the above copyright notice,380+ this list of conditions and the following disclaimer.381+382 2. Redistributions in binary form must reproduce the above copyright notice,383 this list of conditions and the following disclaimer in the documentation384 and/or other materials provided with the distribution.385 380-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND381-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED382-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE383-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR384-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES385-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;386-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND387-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT388-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS389-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.390-391-The views and conclusions contained in the software and documentation are those392-of the authors and should not be interpreted as representing official policies,393-either expressed or implied, of the FreeBSD Project.`,394- Text: `386+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"387+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE388+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE389+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE390+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR391+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF392+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS393+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN394+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)395+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE396+POSSIBILITY OF SUCH DAMAGE.`,397+ Text: `{{ .copyright }}398 All rights reserved.399 400 Redistribution and use in source and binary forms, with or without401 modification, are permitted provided that the following conditions are met:402 400-1. Redistributions of source code must retain the above copyright notice, this401- list of conditions and the following disclaimer.403+1. Redistributions of source code must retain the above copyright notice,404+ this list of conditions and the following disclaimer.405+406 2. Redistributions in binary form must reproduce the above copyright notice,407 this list of conditions and the following disclaimer in the documentation408 and/or other materials provided with the distribution.409 406-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND407-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED408-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE409-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR410-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES411-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;412-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND413-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT414-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS415-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.416-417-The views and conclusions contained in the software and documentation are those418-of the authors and should not be interpreted as representing official policies,419-either expressed or implied, of the FreeBSD Project.410+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"411+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE412+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE413+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE414+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL415+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR416+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER417+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,418+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE419+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.420 `,421 }422 423 // Licenses["apache20"] = License{8 unmodified lines