@@ -1188,3 +1188,45 @@ function combine(a, b) {
1188
1188
}
1189
1189
```
1190
1190
** [ ⬆ 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