codenautas/js-to-html

View on GitHub

Showing 180 of 180 total issues

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

    summary(optsOrContent?:Attr4HTMLElement|Content, content?:Content){ return indirect("summary", 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 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 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

    caption(optsOrContent?:Attr4HTMLTableCaptionElement|Content, content?:Content){ return indirect("caption", optsOrContent, content) as HtmlTag<HTMLTableCaptionElement>; },
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 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

    data(optsOrContent?:Attr4HTMLDataElement|Content, content?:Content){ return indirect("data", optsOrContent, content) as HtmlTag<HTMLDataElement>; },
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 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

    form(optsOrContent?:Attr4HTMLFormElement|Content, content?:Content){ return indirect("form", optsOrContent, content) as HtmlTag<HTMLFormElement>; },
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 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

    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

    dfn(optsOrContent?:Attr4HTMLElement|Content, content?:Content){ return indirect("dfn", 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 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

    h1(optsOrContent?:Attr4HTMLHeadingElement|Content, content?:Content){ return indirect("h1", optsOrContent, content) as HtmlTag<HTMLHeadingElement>; },
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 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

    map(optsOrContent?:Attr4HTMLMapElement|Content, content?:Content){ return indirect("map", optsOrContent, content) as HtmlTag<HTMLMapElement>; },
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 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

    noscript(optsOrContent?:Attr4HTMLElement|Content, content?:Content){ return indirect("noscript", 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 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

    object(optsOrContent?:Attr4HTMLObjectElement|Content, content?:Content){ return indirect("object", optsOrContent, content) as HtmlTag<HTMLObjectElement>; },
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 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

    ol(optsOrContent?:Attr4HTMLOListElement|Content, content?:Content){ return indirect("ol", optsOrContent, content) as HtmlTag<HTMLOListElement>; },
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 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

    picture(optsOrContent?:Attr4HTMLPictureElement|Content, content?:Content){ return indirect("picture", optsOrContent, content) as HtmlTag<HTMLPictureElement>; },
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 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

    output(optsOrContent?:Attr4HTMLOutputElement|Content, content?:Content){ return indirect("output", optsOrContent, content) as HtmlTag<HTMLOutputElement>; },
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 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

    thead(optsOrContent?:Attr4HTMLTableSectionElement|Content, content?:Content){ return indirect("thead", 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 234..234
src/js-to-html.ts on lines 235..235
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

Function setOrResetAttribute has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
Open

    setOrResetAttribute(element:HTMLElement|SVGElement, attr:string, valueOrNull:null|string, testFirst:boolean){
        html.auditArrange?.('attr.mod', false);
        if(!testFirst || valueOrNull == null && element.hasAttribute(attr) || valueOrNull != element.getAttribute(attr)){
            html.auditArrange?.('attr.mod', true);
            if(valueOrNull!=null){
Severity: Minor
Found in src/js-to-html.ts - About 35 mins to fix

Cognitive Complexity

Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

A method's cognitive complexity is based on a few simple rules:

  • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
  • Code is considered more complex for each "break in the linear flow of the code"
  • Code is considered more complex when "flow breaking structures are nested"

Further reading

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

    constructor(directObject:DirectObject){
        super(directObject, validDirectProperties.textNode.properties)
        this.textNode=directObject.textNode
    }
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 579..582
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

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

    constructor(directObject:DirectObject){
        super(directObject, validDirectProperties.commentText.properties)
        this.commentText=directObject.commentText
    }
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 579..582

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

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