Skip to content
Myr

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

1 file+110 added−110 removed

modified:cobra/cmd/licenses.go+110 added-110 removed
55 unmodified lines
56// 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: `6060 Apache License61 Version 2.0, January 200462 http://www.apache.org/licenses/63
200 unmodified lines
264 Licenses["mit"] = License{265 Name: "Mit",266 PossibleMatches: []string{"mit"},267 Header: `269 The MIT License (MIT)268Permission is hereby granted, free of charge, to any person obtaining a copy269of this software and associated documentation files (the "Software"), to deal270in the Software without restriction, including without limitation the rights271to use, copy, modify, merge, publish, distribute, sublicense, and/or sell272copies of the Software, and to permit persons to whom the Software is273furnished to do so, subject to the following conditions:274271 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:275The above copyright notice and this permission notice shall be included in276all copies or substantial portions of the Software.277278 The above copyright notice and this permission notice shall be included in all279 copies or substantial portions of the Software.278THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR279IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,280FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE281AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER282LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,283OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN284THE SOFTWARE.`,285 Text: `The MIT License (MIT)286281 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 }}288291 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:289Permission is hereby granted, free of charge, to any person obtaining a copy290of this software and associated documentation files (the "Software"), to deal291in the Software without restriction, including without limitation the rights292to use, copy, modify, merge, publish, distribute, sublicense, and/or sell293copies of the Software, and to permit persons to whom the Software is294furnished to do so, subject to the following conditions:295298 The above copyright notice and this permission notice shall be included in all299 copies or substantial portions of the Software.296The above copyright notice and this permission notice shall be included in297all copies or substantial portions of the Software.298301 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.299THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR300IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,301FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE302AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER303LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,304OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN305THE SOFTWARE.306`,307 }308309 Licenses["bsd"] = License{310 Name: "NewBSD",311 PossibleMatches: []string{"bsd", "newbsd", "3 clause bsd"},312 Header: `315 All rights reserved.313All rights reserved.314317 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.315Redistribution and use in source and binary forms, with or without316modification, are permitted provided that the following conditions are met:317328 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.3181. Redistributions of source code must retain the above copyright notice,319 this list of conditions and the following disclaimer.320341 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.3212. 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.324352 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.3253. 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.328329THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"330AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE331IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE332ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE333LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR334CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF335SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS336INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN337CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)338ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE339POSSIBILITY OF SUCH DAMAGE.`,340 Text: `{{ .copyright }}341All rights reserved.342343Redistribution and use in source and binary forms, with or without344modification, are permitted provided that the following conditions are met:3453461. Redistributions of source code must retain the above copyright notice,347 this list of conditions and the following disclaimer.3483492. 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.3523533. 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.356357THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"358AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE359IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE360DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE361FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL362DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR363SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER364CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,365OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE366OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.367`,368 }369370 Licenses["freebsd"] = License{
4 unmodified lines
375376Redistribution and use in source and binary forms, with or without377modification, are permitted provided that the following conditions are met:3783741. Redistributions of source code must retain the above copyright notice, this375 list of conditions and the following disclaimer.3791. Redistributions of source code must retain the above copyright notice,380 this list of conditions and the following disclaimer.3813822. 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.385380THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND381ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED382WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE383DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR384ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES385(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;386LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND387ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT388(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS389SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.390391The views and conclusions contained in the software and documentation are those392of the authors and should not be interpreted as representing official policies,393either expressed or implied, of the FreeBSD Project.`,394 Text: `386THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"387AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE388IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE389ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE390LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR391CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF392SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS393INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN394CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)395ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE396POSSIBILITY OF SUCH DAMAGE.`,397 Text: `{{ .copyright }}398All rights reserved.399400Redistribution and use in source and binary forms, with or without401modification, are permitted provided that the following conditions are met:4024001. Redistributions of source code must retain the above copyright notice, this401 list of conditions and the following disclaimer.4031. Redistributions of source code must retain the above copyright notice,404 this list of conditions and the following disclaimer.4054062. 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.409406THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND407ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED408WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE409DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR410ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES411(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;412LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND413ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT414(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS415SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.416417The views and conclusions contained in the software and documentation are those418of the authors and should not be interpreted as representing official policies,419either expressed or implied, of the FreeBSD Project.410THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"411AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE412IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE413DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE414FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL415DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR416SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER417CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,418OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE419OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.420`,421 }422423 // Licenses["apache20"] = License{
8 unmodified lines