
    g                        d Z ddlmZ ddlZddlZddlZddlmZ ddlmZ ddl	m
Z
 ddl	mZ  ej                  e      Z ej                  d	      dd
       Z G d de      Zy)z3Contains the Violation error class used internally.    )annotationsN)Match)
NamedTuple)defaults)utilsi   )maxsizec                @    t         j                  j                  |       S )N)r   NOQA_INLINE_REGEXPsearch)physical_lines    S/var/www/html/brdwt/brdwt/brdwtenv/lib/python3.12/site-packages/flake8/violation.py
_find_noqar      s    &&--m<<    c                  V    e Zd ZU dZded<   ded<   ded<   ded<   ded<   d	ed
<   ddZy)	Violationz2Class representing a violation reported by Flake8.strcodefilenameintline_numbercolumn_numbertextz
str | Noner   c                   | j                   }|ry|*t        j                  | j                  | j                        }t        |      }|t        j                  d|        y|j                         d   }|t        j                  d|        yt        t        j                  |            }| j                  |v s$| j                  j                  t        |            rt        j                  d| |       yt        j                  d| |       y)zDetermine if a comment has been added to ignore this line.

        :param disable_noqa:
            Whether or not users have provided ``--disable-noqa``.
        :returns:
            True if error is ignored in-line, False otherwise.
        Fz%r is not inline ignoredcodesz%%r is ignored by a blanket ``# noqa``Tz5%r is ignored specifically inline with ``# noqa: %s``z,%r is not ignored inline with ``# noqa: %s``)r   	linecachegetliner   r   r   LOGdebug	groupdictsetr   parse_comma_separated_listr   
startswithtuple)selfdisable_noqar   
noqa_match	codes_strr   s         r   is_inline_ignoredzViolation.is_inline_ignored    s     ** %--dmmT=M=MNM.
II0$7((*73	II=tDE44Y?@99!5!5eEl!CIIG
 		:D)	
 r   N)r%   boolreturnr)   )__name__
__module____qualname____doc____annotations__r(    r   r   r   r      s+    <
IM
I%r   r   )r   r   r*   zMatch[str] | None)r.   
__future__r   	functoolsr   loggingtypingr   r   flake8r   r   	getLoggerr+   r   	lru_cacher   r   r0   r   r   <module>r8      sa    9 "        g! S!= "=/
 /r   