Skip to content

Commit 7799e77

Browse files
committed
No legal comments
1 parent 66a5f80 commit 7799e77

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1188,3 +1188,45 @@ function combine(a, b) {
11881188
}
11891189
```
11901190
**[⬆ back to top](#table-of-contents)**
1191+
1192+
### Avoid legal comments in source files
1193+
That's what your `LICENSE` file at the top of your source tree is for.
1194+
1195+
**Bad:**
1196+
```javascript
1197+
/*
1198+
The MIT License (MIT)
1199+
1200+
Copyright (c) 2016 Ryan McDermott
1201+
1202+
Permission is hereby granted, free of charge, to any person obtaining a copy
1203+
of this software and associated documentation files (the "Software"), to deal
1204+
in the Software without restriction, including without limitation the rights
1205+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1206+
copies of the Software, and to permit persons to whom the Software is
1207+
furnished to do so, subject to the following conditions:
1208+
1209+
The above copyright notice and this permission notice shall be included in all
1210+
copies or substantial portions of the Software.
1211+
1212+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1213+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1214+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1215+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1216+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1217+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1218+
SOFTWARE
1219+
*/
1220+
1221+
function calculateBill() {
1222+
// ...
1223+
}
1224+
```
1225+
1226+
**Good**:
1227+
```javascript
1228+
function calculateBill() {
1229+
// ...
1230+
}
1231+
```
1232+
**[⬆ back to top](#table-of-contents)**

0 commit comments

Comments
 (0)