Skip to content

LGTM.com - false positive: "Duplicate HTML element attributes" caused by valid Django template tags #5296

@pirate

Description

@pirate

Description of the false positive

<form id="changelist-form" method="post"{% if cl.formset and cl.formset.is_multipart %} enctype="multipart/form-data"{% endif %} novalidate>{% csrf_token %}

This is valid Django template HTML with no duplicate attributes, however LGTM reports it as having duplicate tags due to it seeing {% and %} appear multiple times in a single opening tag.

URL to the alert on the project page on LGTM.com

https://lgtm.com/projects/g/ArchiveBox/ArchiveBox/snapshot/665e2817780d54eb2e1540fd80e48aeef9950775/files/archivebox/templates/admin/private_index_grid.html#L61

image

Possibly related PRs/Issues:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions