codenautas/js-to-html

View on GitHub

Showing 162 of 180 total issues

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    q(optsOrContent?:Attr4HTMLQuoteElement|Content, content?:Content){ return indirect("q", optsOrContent, content) as HtmlTag<HTMLQuoteElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    td(optsOrContent?:Attr4HTMLTableCellElement|Content, content?:Content){ return indirect("td", optsOrContent, content) as HtmlTag<HTMLTableCellElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    del(optsOrContent?:Attr4HTMLModElement|Content, content?:Content){ return indirect("del", optsOrContent, content) as HtmlTag<HTMLModElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    dialog(optsOrContent?:Attr4HTMLDialogElement|Content, content?:Content){ return indirect("dialog", optsOrContent, content) as HtmlTag<HTMLDialogElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    ins(optsOrContent?:Attr4HTMLModElement|Content, content?:Content){ return indirect("ins", optsOrContent, content) as HtmlTag<HTMLModElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    li(optsOrContent?:Attr4HTMLLIElement|Content, content?:Content){ return indirect("li", optsOrContent, content) as HtmlTag<HTMLLIElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    mark(optsOrContent?:Attr4HTMLElement|Content, content?:Content){ return indirect("mark", optsOrContent, content) as HtmlTag<HTMLElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    nav(optsOrContent?:Attr4HTMLElement|Content, content?:Content){ return indirect("nav", optsOrContent, content) as HtmlTag<HTMLElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    p(optsOrContent?:Attr4HTMLParagraphElement|Content, content?:Content){ return indirect("p", optsOrContent, content) as HtmlTag<HTMLParagraphElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    title(optsOrContent?:Attr4HTMLTitleElement|Content, content?:Content){ return indirect("title", optsOrContent, content) as HtmlTag<HTMLTitleElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 2 locations. Consider refactoring.
Open

export interface Attr4HTMLEmbedElement extends Attr4HTMLElement {src?:any,type?:any,width?:any,height?:any,any?:any,}
Severity: Minor
Found in src/js-to-html.ts and 1 other location - About 40 mins to fix
src/js-to-html.ts on lines 102..102

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    audio(optsOrContent?:Attr4HTMLAudioElement|Content, content?:Content){ return indirect("audio", optsOrContent, content) as HtmlTag<HTMLAudioElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    canvas(optsOrContent?:Attr4HTMLCanvasElement|Content, content?:Content){ return indirect("canvas", optsOrContent, content) as HtmlTag<HTMLCanvasElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    code(optsOrContent?:Attr4HTMLElement|Content, content?:Content){ return indirect("code", optsOrContent, content) as HtmlTag<HTMLElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    figure(optsOrContent?:Attr4HTMLElement|Content, content?:Content){ return indirect("figure", optsOrContent, content) as HtmlTag<HTMLElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    s(optsOrContent?:Attr4HTMLElement|Content, content?:Content){ return indirect("s", optsOrContent, content) as HtmlTag<HTMLElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    span(optsOrContent?:Attr4HTMLSpanElement|Content, content?:Content){ return indirect("span", optsOrContent, content) as HtmlTag<HTMLSpanElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    tbody(optsOrContent?:Attr4HTMLTableSectionElement|Content, content?:Content){ return indirect("tbody", optsOrContent, content) as HtmlTag<HTMLTableSectionElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 234..234
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 96 locations. Consider refactoring.
Open

    tfoot(optsOrContent?:Attr4HTMLTableSectionElement|Content, content?:Content){ return indirect("tfoot", optsOrContent, content) as HtmlTag<HTMLTableSectionElement>; },
Severity: Major
Found in src/js-to-html.ts and 95 other locations - About 40 mins to fix
src/js-to-html.ts on lines 133..133
src/js-to-html.ts on lines 134..134
src/js-to-html.ts on lines 136..136
src/js-to-html.ts on lines 137..137
src/js-to-html.ts on lines 138..138
src/js-to-html.ts on lines 139..139
src/js-to-html.ts on lines 141..141
src/js-to-html.ts on lines 142..142
src/js-to-html.ts on lines 143..143
src/js-to-html.ts on lines 144..144
src/js-to-html.ts on lines 146..146
src/js-to-html.ts on lines 147..147
src/js-to-html.ts on lines 148..148
src/js-to-html.ts on lines 149..149
src/js-to-html.ts on lines 150..150
src/js-to-html.ts on lines 152..152
src/js-to-html.ts on lines 153..153
src/js-to-html.ts on lines 154..154
src/js-to-html.ts on lines 155..155
src/js-to-html.ts on lines 156..156
src/js-to-html.ts on lines 157..157
src/js-to-html.ts on lines 158..158
src/js-to-html.ts on lines 159..159
src/js-to-html.ts on lines 160..160
src/js-to-html.ts on lines 161..161
src/js-to-html.ts on lines 162..162
src/js-to-html.ts on lines 163..163
src/js-to-html.ts on lines 165..165
src/js-to-html.ts on lines 166..166
src/js-to-html.ts on lines 167..167
src/js-to-html.ts on lines 168..168
src/js-to-html.ts on lines 169..169
src/js-to-html.ts on lines 170..170
src/js-to-html.ts on lines 171..171
src/js-to-html.ts on lines 172..172
src/js-to-html.ts on lines 173..173
src/js-to-html.ts on lines 174..174
src/js-to-html.ts on lines 175..175
src/js-to-html.ts on lines 176..176
src/js-to-html.ts on lines 177..177
src/js-to-html.ts on lines 178..178
src/js-to-html.ts on lines 180..180
src/js-to-html.ts on lines 181..181
src/js-to-html.ts on lines 185..185
src/js-to-html.ts on lines 186..186
src/js-to-html.ts on lines 187..187
src/js-to-html.ts on lines 188..188
src/js-to-html.ts on lines 189..189
src/js-to-html.ts on lines 191..191
src/js-to-html.ts on lines 192..192
src/js-to-html.ts on lines 193..193
src/js-to-html.ts on lines 194..194
src/js-to-html.ts on lines 195..195
src/js-to-html.ts on lines 197..197
src/js-to-html.ts on lines 198..198
src/js-to-html.ts on lines 199..199
src/js-to-html.ts on lines 200..200
src/js-to-html.ts on lines 201..201
src/js-to-html.ts on lines 202..202
src/js-to-html.ts on lines 203..203
src/js-to-html.ts on lines 204..204
src/js-to-html.ts on lines 205..205
src/js-to-html.ts on lines 207..207
src/js-to-html.ts on lines 208..208
src/js-to-html.ts on lines 209..209
src/js-to-html.ts on lines 210..210
src/js-to-html.ts on lines 211..211
src/js-to-html.ts on lines 212..212
src/js-to-html.ts on lines 213..213
src/js-to-html.ts on lines 214..214
src/js-to-html.ts on lines 215..215
src/js-to-html.ts on lines 217..217
src/js-to-html.ts on lines 218..218
src/js-to-html.ts on lines 219..219
src/js-to-html.ts on lines 220..220
src/js-to-html.ts on lines 222..222
src/js-to-html.ts on lines 223..223
src/js-to-html.ts on lines 224..224
src/js-to-html.ts on lines 225..225
src/js-to-html.ts on lines 226..226
src/js-to-html.ts on lines 227..227
src/js-to-html.ts on lines 228..228
src/js-to-html.ts on lines 229..229
src/js-to-html.ts on lines 230..230
src/js-to-html.ts on lines 231..231
src/js-to-html.ts on lines 233..233
src/js-to-html.ts on lines 235..235
src/js-to-html.ts on lines 236..236
src/js-to-html.ts on lines 237..237
src/js-to-html.ts on lines 238..238
src/js-to-html.ts on lines 239..239
src/js-to-html.ts on lines 241..241
src/js-to-html.ts on lines 242..242
src/js-to-html.ts on lines 243..243
src/js-to-html.ts on lines 244..244

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 48.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Similar blocks of code found in 3 locations. Consider refactoring.
Open

    constructor(directObject:DirectObject){
        super(directObject, validDirectProperties.htmlCode.properties)
        this.htmlCode=directObject.htmlCode
    }
Severity: Minor
Found in src/js-to-html.ts and 2 other locations - About 35 mins to fix
src/js-to-html.ts on lines 562..565
src/js-to-html.ts on lines 590..593

Duplicated Code

Duplicated code can lead to software that is hard to understand and difficult to change. The Don't Repeat Yourself (DRY) principle states:

Every piece of knowledge must have a single, unambiguous, authoritative representation within a system.

When you violate DRY, bugs and maintenance problems are sure to follow. Duplicated code has a tendency to both continue to replicate and also to diverge (leaving bugs as two similar implementations differ in subtle ways).

Tuning

This issue has a mass of 46.

We set useful threshold defaults for the languages we support but you may want to adjust these settings based on your project guidelines.

The threshold configuration represents the minimum mass a code block must have to be analyzed for duplication. The lower the threshold, the more fine-grained the comparison.

If the engine is too easily reporting duplication, try raising the threshold. If you suspect that the engine isn't catching enough duplication, try lowering the threshold. The best setting tends to differ from language to language.

See codeclimate-duplication's documentation for more information about tuning the mass threshold in your .codeclimate.yml.

Refactorings

Further Reading

Severity
Category
Status
Source
Language