[ M A I N ] 
 
 
 
 #   A n a l y s e   i m p o r t   f a l l b a c k   b l o c k s .   T h i s   c a n   b e   u s e d   t o   s u p p o r t   b o t h   P y t h o n   2   a n d 
 
 #   3   c o m p a t i b l e   c o d e ,   w h i c h   m e a n s   t h a t   t h e   b l o c k   m i g h t   h a v e   c o d e   t h a t   e x i s t s 
 
 #   o n l y   i n   o n e   o r   a n o t h e r   i n t e r p r e t e r ,   l e a d i n g   t o   f a l s e   p o s i t i v e s   w h e n   a n a l y s e d . 
 
 a n a l y s e - f a l l b a c k - b l o c k s = n o 
 
 
 
 #   C l e a r   i n - m e m o r y   c a c h e s   u p o n   c o n c l u s i o n   o f   l i n t i n g .   U s e f u l   i f   r u n n i n g   p y l i n t 
 
 #   i n   a   s e r v e r - l i k e   m o d e . 
 
 c l e a r - c a c h e - p o s t - r u n = n o 
 
 
 
 #   L o a d   a n d   e n a b l e   a l l   a v a i l a b l e   e x t e n s i o n s .   U s e   - - l i s t - e x t e n s i o n s   t o   s e e   a   l i s t 
 
 #   a l l   a v a i l a b l e   e x t e n s i o n s . 
 
 # e n a b l e - a l l - e x t e n s i o n s = 
 
 
 
 #   I n   e r r o r   m o d e ,   m e s s a g e s   w i t h   a   c a t e g o r y   b e s i d e s   E R R O R   o r   F A T A L   a r e 
 
 #   s u p p r e s s e d ,   a n d   n o   r e p o r t s   a r e   d o n e   b y   d e f a u l t .   E r r o r   m o d e   i s   c o m p a t i b l e   w i t h 
 
 #   d i s a b l i n g   s p e c i f i c   e r r o r s . 
 
 # e r r o r s - o n l y = 
 
 
 
 #   A l w a y s   r e t u r n   a   0   ( n o n - e r r o r )   s t a t u s   c o d e ,   e v e n   i f   l i n t   e r r o r s   a r e   f o u n d . 
 
 #   T h i s   i s   p r i m a r i l y   u s e f u l   i n   c o n t i n u o u s   i n t e g r a t i o n   s c r i p t s . 
 
 # e x i t - z e r o = 
 
 
 
 #   A   c o m m a - s e p a r a t e d   l i s t   o f   p a c k a g e   o r   m o d u l e   n a m e s   f r o m   w h e r e   C   e x t e n s i o n s   m a y 
 
 #   b e   l o a d e d .   E x t e n s i o n s   a r e   l o a d i n g   i n t o   t h e   a c t i v e   P y t h o n   i n t e r p r e t e r   a n d   m a y 
 
 #   r u n   a r b i t r a r y   c o d e . 
 
 e x t e n s i o n - p k g - a l l o w - l i s t = 
 
 
 
 #   A   c o m m a - s e p a r a t e d   l i s t   o f   p a c k a g e   o r   m o d u l e   n a m e s   f r o m   w h e r e   C   e x t e n s i o n s   m a y 
 
 #   b e   l o a d e d .   E x t e n s i o n s   a r e   l o a d i n g   i n t o   t h e   a c t i v e   P y t h o n   i n t e r p r e t e r   a n d   m a y 
 
 #   r u n   a r b i t r a r y   c o d e .   ( T h i s   i s   a n   a l t e r n a t i v e   n a m e   t o   e x t e n s i o n - p k g - a l l o w - l i s t 
 
 #   f o r   b a c k w a r d   c o m p a t i b i l i t y . ) 
 
 e x t e n s i o n - p k g - w h i t e l i s t = 
 
 
 
 #   R e t u r n   n o n - z e r o   e x i t   c o d e   i f   a n y   o f   t h e s e   m e s s a g e s / c a t e g o r i e s   a r e   d e t e c t e d , 
 
 #   e v e n   i f   s c o r e   i s   a b o v e   - - f a i l - u n d e r   v a l u e .   S y n t a x   s a m e   a s   e n a b l e .   M e s s a g e s 
 
 #   s p e c i f i e d   a r e   e n a b l e d ,   w h i l e   c a t e g o r i e s   o n l y   c h e c k   a l r e a d y - e n a b l e d   m e s s a g e s . 
 
 f a i l - o n = 
 
 
 
 #   S p e c i f y   a   s c o r e   t h r e s h o l d   u n d e r   w h i c h   t h e   p r o g r a m   w i l l   e x i t   w i t h   e r r o r . 
 
 f a i l - u n d e r = 1 0 
 
 
 
 #   I n t e r p r e t   t h e   s t d i n   a s   a   p y t h o n   s c r i p t ,   w h o s e   f i l e n a m e   n e e d s   t o   b e   p a s s e d   a s 
 
 #   t h e   m o d u l e _ o r _ p a c k a g e   a r g u m e n t . 
 
 # f r o m - s t d i n = 
 
 
 
 #   F i l e s   o r   d i r e c t o r i e s   t o   b e   s k i p p e d .   T h e y   s h o u l d   b e   b a s e   n a m e s ,   n o t   p a t h s . 
 
 i g n o r e = C V S 
 
 
 
 #   A d d   f i l e s   o r   d i r e c t o r i e s   m a t c h i n g   t h e   r e g u l a r   e x p r e s s i o n s   p a t t e r n s   t o   t h e 
 
 #   i g n o r e - l i s t .   T h e   r e g e x   m a t c h e s   a g a i n s t   p a t h s   a n d   c a n   b e   i n   P o s i x   o r   W i n d o w s 
 
 #   f o r m a t .   B e c a u s e   ' \ \ '   r e p r e s e n t s   t h e   d i r e c t o r y   d e l i m i t e r   o n   W i n d o w s   s y s t e m s , 
 
 #   i t   c a n ' t   b e   u s e d   a s   a n   e s c a p e   c h a r a c t e r . 
 
 i g n o r e - p a t h s = 
 
 
 
 #   F i l e s   o r   d i r e c t o r i e s   m a t c h i n g   t h e   r e g u l a r   e x p r e s s i o n   p a t t e r n s   a r e   s k i p p e d . 
 
 #   T h e   r e g e x   m a t c h e s   a g a i n s t   b a s e   n a m e s ,   n o t   p a t h s .   T h e   d e f a u l t   v a l u e   i g n o r e s 
 
 #   E m a c s   f i l e   l o c k s 
 
 i g n o r e - p a t t e r n s = ^ \ . # 
 
 
 
 #   L i s t   o f   m o d u l e   n a m e s   f o r   w h i c h   m e m b e r   a t t r i b u t e s   s h o u l d   n o t   b e   c h e c k e d 
 
 #   ( u s e f u l   f o r   m o d u l e s / p r o j e c t s   w h e r e   n a m e s p a c e s   a r e   m a n i p u l a t e d   d u r i n g   r u n t i m e 
 
 #   a n d   t h u s   e x i s t i n g   m e m b e r   a t t r i b u t e s   c a n n o t   b e   d e d u c e d   b y   s t a t i c   a n a l y s i s ) .   I t 
 
 #   s u p p o r t s   q u a l i f i e d   m o d u l e   n a m e s ,   a s   w e l l   a s   U n i x   p a t t e r n   m a t c h i n g . 
 
 i g n o r e d - m o d u l e s = 
 
 
 
 #   P y t h o n   c o d e   t o   e x e c u t e ,   u s u a l l y   f o r   s y s . p a t h   m a n i p u l a t i o n   s u c h   a s 
 
 #   p y g t k . r e q u i r e ( ) . 
 
 # i n i t - h o o k = 
 
 
 
 #   U s e   m u l t i p l e   p r o c e s s e s   t o   s p e e d   u p   P y l i n t .   S p e c i f y i n g   0   w i l l   a u t o - d e t e c t   t h e 
 
 #   n u m b e r   o f   p r o c e s s o r s   a v a i l a b l e   t o   u s e ,   a n d   w i l l   c a p   t h e   c o u n t   o n   W i n d o w s   t o 
 
 #   a v o i d   h a n g s . 
 
 j o b s = 1 
 
 
 
 #   C o n t r o l   t h e   a m o u n t   o f   p o t e n t i a l   i n f e r r e d   v a l u e s   w h e n   i n f e r r i n g   a   s i n g l e 
 
 #   o b j e c t .   T h i s   c a n   h e l p   t h e   p e r f o r m a n c e   w h e n   d e a l i n g   w i t h   l a r g e   f u n c t i o n s   o r 
 
 #   c o m p l e x ,   n e s t e d   c o n d i t i o n s . 
 
 l i m i t - i n f e r e n c e - r e s u l t s = 1 0 0 
 
 
 
 #   L i s t   o f   p l u g i n s   ( a s   c o m m a   s e p a r a t e d   v a l u e s   o f   p y t h o n   m o d u l e   n a m e s )   t o   l o a d , 
 
 #   u s u a l l y   t o   r e g i s t e r   a d d i t i o n a l   c h e c k e r s . 
 
 l o a d - p l u g i n s = 
 
 
 
 #   P i c k l e   c o l l e c t e d   d a t a   f o r   l a t e r   c o m p a r i s o n s . 
 
 p e r s i s t e n t = y e s 
 
 
 
 #   M i n i m u m   P y t h o n   v e r s i o n   t o   u s e   f o r   v e r s i o n   d e p e n d e n t   c h e c k s .   W i l l   d e f a u l t   t o 
 
 #   t h e   v e r s i o n   u s e d   t o   r u n   p y l i n t . 
 
 p y - v e r s i o n = 3 . 9 
 
 
 
 #   D i s c o v e r   p y t h o n   m o d u l e s   a n d   p a c k a g e s   i n   t h e   f i l e   s y s t e m   s u b t r e e . 
 
 r e c u r s i v e = n o 
 
 
 
 #   A d d   p a t h s   t o   t h e   l i s t   o f   t h e   s o u r c e   r o o t s .   S u p p o r t s   g l o b b i n g   p a t t e r n s .   T h e 
 
 #   s o u r c e   r o o t   i s   a n   a b s o l u t e   p a t h   o r   a   p a t h   r e l a t i v e   t o   t h e   c u r r e n t   w o r k i n g 
 
 #   d i r e c t o r y   u s e d   t o   d e t e r m i n e   a   p a c k a g e   n a m e s p a c e   f o r   m o d u l e s   l o c a t e d   u n d e r   t h e 
 
 #   s o u r c e   r o o t . 
 
 s o u r c e - r o o t s = 
 
 
 
 #   W h e n   e n a b l e d ,   p y l i n t   w o u l d   a t t e m p t   t o   g u e s s   c o m m o n   m i s c o n f i g u r a t i o n   a n d   e m i t 
 
 #   u s e r - f r i e n d l y   h i n t s   i n s t e a d   o f   f a l s e - p o s i t i v e   e r r o r   m e s s a g e s . 
 
 s u g g e s t i o n - m o d e = y e s 
 
 
 
 #   A l l o w   l o a d i n g   o f   a r b i t r a r y   C   e x t e n s i o n s .   E x t e n s i o n s   a r e   i m p o r t e d   i n t o   t h e 
 
 #   a c t i v e   P y t h o n   i n t e r p r e t e r   a n d   m a y   r u n   a r b i t r a r y   c o d e . 
 
 u n s a f e - l o a d - a n y - e x t e n s i o n = n o 
 
 
 
 #   I n   v e r b o s e   m o d e ,   e x t r a   n o n - c h e c k e r - r e l a t e d   i n f o   w i l l   b e   d i s p l a y e d . 
 
 # v e r b o s e = 
 
 
 
 
 
 [ B A S I C ] 
 
 
 
 #   N a m i n g   s t y l e   m a t c h i n g   c o r r e c t   a r g u m e n t   n a m e s . 
 
 a r g u m e n t - n a m i n g - s t y l e = s n a k e _ c a s e 
 
 
 
 #   R e g u l a r   e x p r e s s i o n   m a t c h i n g   c o r r e c t   a r g u m e n t   n a m e s .   O v e r r i d e s   a r g u m e n t - 
 
 #   n a m i n g - s t y l e .   I f   l e f t   e m p t y ,   a r g u m e n t   n a m e s   w i l l   b e   c h e c k e d   w i t h   t h e   s e t 
 
 #   n a m i n g   s t y l e . 
 
 # a r g u m e n t - r g x = 
 
 
 
 #   N a m i n g   s t y l e   m a t c h i n g   c o r r e c t   a t t r i b u t e   n a m e s . 
 
 a t t r - n a m i n g - s t y l e = s n a k e _ c a s e 
 
 
 
 #   R e g u l a r   e x p r e s s i o n   m a t c h i n g   c o r r e c t   a t t r i b u t e   n a m e s .   O v e r r i d e s   a t t r - n a m i n g - 
 
 #   s t y l e .   I f   l e f t   e m p t y ,   a t t r i b u t e   n a m e s   w i l l   b e   c h e c k e d   w i t h   t h e   s e t   n a m i n g 
 
 #   s t y l e . 
 
 # a t t r - r g x = 
 
 
 
 #   B a d   v a r i a b l e   n a m e s   w h i c h   s h o u l d   a l w a y s   b e   r e f u s e d ,   s e p a r a t e d   b y   a   c o m m a . 
 
 b a d - n a m e s = f o o , 
 
                     b a r , 
 
                     b a z , 
 
                     t o t o , 
 
                     t u t u , 
 
                     t a t a 
 
 
 
 #   B a d   v a r i a b l e   n a m e s   r e g e x e s ,   s e p a r a t e d   b y   a   c o m m a .   I f   n a m e s   m a t c h   a n y   r e g e x , 
 
 #   t h e y   w i l l   a l w a y s   b e   r e f u s e d 
 
 b a d - n a m e s - r g x s = 
 
 
 
 #   N a m i n g   s t y l e   m a t c h i n g   c o r r e c t   c l a s s   a t t r i b u t e   n a m e s . 
 
 c l a s s - a t t r i b u t e - n a m i n g - s t y l e = a n y 
 
 
 
 #   R e g u l a r   e x p r e s s i o n   m a t c h i n g   c o r r e c t   c l a s s   a t t r i b u t e   n a m e s .   O v e r r i d e s   c l a s s - 
 
 #   a t t r i b u t e - n a m i n g - s t y l e .   I f   l e f t   e m p t y ,   c l a s s   a t t r i b u t e   n a m e s   w i l l   b e   c h e c k e d 
 
 #   w i t h   t h e   s e t   n a m i n g   s t y l e . 
 
 # c l a s s - a t t r i b u t e - r g x = 
 
 
 
 #   N a m i n g   s t y l e   m a t c h i n g   c o r r e c t   c l a s s   c o n s t a n t   n a m e s . 
 
 c l a s s - c o n s t - n a m i n g - s t y l e = U P P E R _ C A S E 
 
 
 
 #   R e g u l a r   e x p r e s s i o n   m a t c h i n g   c o r r e c t   c l a s s   c o n s t a n t   n a m e s .   O v e r r i d e s   c l a s s - 
 
 #   c o n s t - n a m i n g - s t y l e .   I f   l e f t   e m p t y ,   c l a s s   c o n s t a n t   n a m e s   w i l l   b e   c h e c k e d   w i t h 
 
 #   t h e   s e t   n a m i n g   s t y l e . 
 
 # c l a s s - c o n s t - r g x = 
 
 
 
 #   N a m i n g   s t y l e   m a t c h i n g   c o r r e c t   c l a s s   n a m e s . 
 
 c l a s s - n a m i n g - s t y l e = P a s c a l C a s e 
 
 
 
 #   R e g u l a r   e x p r e s s i o n   m a t c h i n g   c o r r e c t   c l a s s   n a m e s .   O v e r r i d e s   c l a s s - n a m i n g - 
 
 #   s t y l e .   I f   l e f t   e m p t y ,   c l a s s   n a m e s   w i l l   b e   c h e c k e d   w i t h   t h e   s e t   n a m i n g   s t y l e . 
 
 # c l a s s - r g x = 
 
 
 
 #   N a m i n g   s t y l e   m a t c h i n g   c o r r e c t   c o n s t a n t   n a m e s . 
 
 c o n s t - n a m i n g - s t y l e = U P P E R _ C A S E 
 
 
 
 #   R e g u l a r   e x p r e s s i o n   m a t c h i n g   c o r r e c t   c o n s t a n t   n a m e s .   O v e r r i d e s   c o n s t - n a m i n g - 
 
 #   s t y l e .   I f   l e f t   e m p t y ,   c o n s t a n t   n a m e s   w i l l   b e   c h e c k e d   w i t h   t h e   s e t   n a m i n g 
 
 #   s t y l e . 
 
 # c o n s t - r g x = 
 
 
 
 #   M i n i m u m   l i n e   l e n g t h   f o r   f u n c t i o n s / c l a s s e s   t h a t   r e q u i r e   d o c s t r i n g s ,   s h o r t e r 
 
 #   o n e s   a r e   e x e m p t . 
 
 d o c s t r i n g - m i n - l e n g t h = - 1 
 
 
 
 #   N a m i n g   s t y l e   m a t c h i n g   c o r r e c t   f u n c t i o n   n a m e s . 
 
 f u n c t i o n - n a m i n g - s t y l e = s n a k e _ c a s e 
 
 
 
 #   R e g u l a r   e x p r e s s i o n   m a t c h i n g   c o r r e c t   f u n c t i o n   n a m e s .   O v e r r i d e s   f u n c t i o n - 
 
 #   n a m i n g - s t y l e .   I f   l e f t   e m p t y ,   f u n c t i o n   n a m e s   w i l l   b e   c h e c k e d   w i t h   t h e   s e t 
 
 #   n a m i n g   s t y l e . 
 
 # f u n c t i o n - r g x = 
 
 
 
 #   G o o d   v a r i a b l e   n a m e s   w h i c h   s h o u l d   a l w a y s   b e   a c c e p t e d ,   s e p a r a t e d   b y   a   c o m m a . 
 
 g o o d - n a m e s = i , 
 
                       j , 
 
                       k , 
 
                       e x , 
 
                       R u n , 
 
                       _ 
 
 
 
 #   G o o d   v a r i a b l e   n a m e s   r e g e x e s ,   s e p a r a t e d   b y   a   c o m m a .   I f   n a m e s   m a t c h   a n y   r e g e x , 
 
 #   t h e y   w i l l   a l w a y s   b e   a c c e p t e d 
 
 g o o d - n a m e s - r g x s = 
 
 
 
 #   I n c l u d e   a   h i n t   f o r   t h e   c o r r e c t   n a m i n g   f o r m a t   w i t h   i n v a l i d - n a m e . 
 
 i n c l u d e - n a m i n g - h i n t = n o 
 
 
 
 #   N a m i n g   s t y l e   m a t c h i n g   c o r r e c t   i n l i n e   i t e r a t i o n   n a m e s . 
 
 i n l i n e v a r - n a m i n g - s t y l e = a n y 
 
 
 
 #   R e g u l a r   e x p r e s s i o n   m a t c h i n g   c o r r e c t   i n l i n e   i t e r a t i o n   n a m e s .   O v e r r i d e s 
 
 #   i n l i n e v a r - n a m i n g - s t y l e .   I f   l e f t   e m p t y ,   i n l i n e   i t e r a t i o n   n a m e s   w i l l   b e   c h e c k e d 
 
 #   w i t h   t h e   s e t   n a m i n g   s t y l e . 
 
 # i n l i n e v a r - r g x = 
 
 
 
 #   N a m i n g   s t y l e   m a t c h i n g   c o r r e c t   m e t h o d   n a m e s . 
 
 m e t h o d - n a m i n g - s t y l e = s n a k e _ c a s e 
 
 
 
 #   R e g u l a r   e x p r e s s i o n   m a t c h i n g   c o r r e c t   m e t h o d   n a m e s .   O v e r r i d e s   m e t h o d - n a m i n g - 
 
 #   s t y l e .   I f   l e f t   e m p t y ,   m e t h o d   n a m e s   w i l l   b e   c h e c k e d   w i t h   t h e   s e t   n a m i n g   s t y l e . 
 
 # m e t h o d - r g x = 
 
 
 
 #   N a m i n g   s t y l e   m a t c h i n g   c o r r e c t   m o d u l e   n a m e s . 
 
 m o d u l e - n a m i n g - s t y l e = s n a k e _ c a s e 
 
 
 
 #   R e g u l a r   e x p r e s s i o n   m a t c h i n g   c o r r e c t   m o d u l e   n a m e s .   O v e r r i d e s   m o d u l e - n a m i n g - 
 
 #   s t y l e .   I f   l e f t   e m p t y ,   m o d u l e   n a m e s   w i l l   b e   c h e c k e d   w i t h   t h e   s e t   n a m i n g   s t y l e . 
 
 # m o d u l e - r g x = 
 
 
 
 #   C o l o n - d e l i m i t e d   s e t s   o f   n a m e s   t h a t   d e t e r m i n e   e a c h   o t h e r ' s   n a m i n g   s t y l e   w h e n 
 
 #   t h e   n a m e   r e g e x e s   a l l o w   s e v e r a l   s t y l e s . 
 
 n a m e - g r o u p = 
 
 
 
 #   R e g u l a r   e x p r e s s i o n   w h i c h   s h o u l d   o n l y   m a t c h   f u n c t i o n   o r   c l a s s   n a m e s   t h a t   d o 
 
 #   n o t   r e q u i r e   a   d o c s t r i n g . 
 
 n o - d o c s t r i n g - r g x = ^ _ 
 
 
 
 #   L i s t   o f   d e c o r a t o r s   t h a t   p r o d u c e   p r o p e r t i e s ,   s u c h   a s   a b c . a b s t r a c t p r o p e r t y .   A d d 
 
 #   t o   t h i s   l i s t   t o   r e g i s t e r   o t h e r   d e c o r a t o r s   t h a t   p r o d u c e   v a l i d   p r o p e r t i e s . 
 
 #   T h e s e   d e c o r a t o r s   a r e   t a k e n   i n   c o n s i d e r a t i o n   o n l y   f o r   i n v a l i d - n a m e . 
 
 p r o p e r t y - c l a s s e s = a b c . a b s t r a c t p r o p e r t y 
 
 
 
 #   R e g u l a r   e x p r e s s i o n   m a t c h i n g   c o r r e c t   t y p e   a l i a s   n a m e s .   I f   l e f t   e m p t y ,   t y p e 
 
 #   a l i a s   n a m e s   w i l l   b e   c h e c k e d   w i t h   t h e   s e t   n a m i n g   s t y l e . 
 
 # t y p e a l i a s - r g x = 
 
 
 
 #   R e g u l a r   e x p r e s s i o n   m a t c h i n g   c o r r e c t   t y p e   v a r i a b l e   n a m e s .   I f   l e f t   e m p t y ,   t y p e 
 
 #   v a r i a b l e   n a m e s   w i l l   b e   c h e c k e d   w i t h   t h e   s e t   n a m i n g   s t y l e . 
 
 # t y p e v a r - r g x = 
 
 
 
 #   N a m i n g   s t y l e   m a t c h i n g   c o r r e c t   v a r i a b l e   n a m e s . 
 
 v a r i a b l e - n a m i n g - s t y l e = s n a k e _ c a s e 
 
 
 
 #   R e g u l a r   e x p r e s s i o n   m a t c h i n g   c o r r e c t   v a r i a b l e   n a m e s .   O v e r r i d e s   v a r i a b l e - 
 
 #   n a m i n g - s t y l e .   I f   l e f t   e m p t y ,   v a r i a b l e   n a m e s   w i l l   b e   c h e c k e d   w i t h   t h e   s e t 
 
 #   n a m i n g   s t y l e . 
 
 # v a r i a b l e - r g x = 
 
 
 
 
 
 [ C L A S S E S ] 
 
 
 
 #   W a r n   a b o u t   p r o t e c t e d   a t t r i b u t e   a c c e s s   i n s i d e   s p e c i a l   m e t h o d s 
 
 c h e c k - p r o t e c t e d - a c c e s s - i n - s p e c i a l - m e t h o d s = n o 
 
 
 
 #   L i s t   o f   m e t h o d   n a m e s   u s e d   t o   d e c l a r e   ( i . e .   a s s i g n )   i n s t a n c e   a t t r i b u t e s . 
 
 d e f i n i n g - a t t r - m e t h o d s = _ _ i n i t _ _ , 
 
                                             _ _ n e w _ _ , 
 
                                             s e t U p , 
 
                                             a s y n c S e t U p , 
 
                                             _ _ p o s t _ i n i t _ _ 
 
 
 
 #   L i s t   o f   m e m b e r   n a m e s ,   w h i c h   s h o u l d   b e   e x c l u d e d   f r o m   t h e   p r o t e c t e d   a c c e s s 
 
 #   w a r n i n g . 
 
 e x c l u d e - p r o t e c t e d = _ a s d i c t , _ f i e l d s , _ r e p l a c e , _ s o u r c e , _ m a k e , o s . _ e x i t 
 
 
 
 #   L i s t   o f   v a l i d   n a m e s   f o r   t h e   f i r s t   a r g u m e n t   i n   a   c l a s s   m e t h o d . 
 
 v a l i d - c l a s s m e t h o d - f i r s t - a r g = c l s 
 
 
 
 #   L i s t   o f   v a l i d   n a m e s   f o r   t h e   f i r s t   a r g u m e n t   i n   a   m e t a c l a s s   c l a s s   m e t h o d . 
 
 v a l i d - m e t a c l a s s - c l a s s m e t h o d - f i r s t - a r g = m c s 
 
 
 
 
 
 [ D E S I G N ] 
 
 
 
 #   L i s t   o f   r e g u l a r   e x p r e s s i o n s   o f   c l a s s   a n c e s t o r   n a m e s   t o   i g n o r e   w h e n   c o u n t i n g 
 
 #   p u b l i c   m e t h o d s   ( s e e   R 0 9 0 3 ) 
 
 e x c l u d e - t o o - f e w - p u b l i c - m e t h o d s = 
 
 
 
 #   L i s t   o f   q u a l i f i e d   c l a s s   n a m e s   t o   i g n o r e   w h e n   c o u n t i n g   c l a s s   p a r e n t s   ( s e e 
 
 #   R 0 9 0 1 ) 
 
 i g n o r e d - p a r e n t s = 
 
 
 
 #   M a x i m u m   n u m b e r   o f   a r g u m e n t s   f o r   f u n c t i o n   /   m e t h o d . 
 
 m a x - a r g s = 5 
 
 
 
 #   M a x i m u m   n u m b e r   o f   a t t r i b u t e s   f o r   a   c l a s s   ( s e e   R 0 9 0 2 ) . 
 
 m a x - a t t r i b u t e s = 7 
 
 
 
 #   M a x i m u m   n u m b e r   o f   b o o l e a n   e x p r e s s i o n s   i n   a n   i f   s t a t e m e n t   ( s e e   R 0 9 1 6 ) . 
 
 m a x - b o o l - e x p r = 5 
 
 
 
 #   M a x i m u m   n u m b e r   o f   b r a n c h   f o r   f u n c t i o n   /   m e t h o d   b o d y . 
 
 m a x - b r a n c h e s = 1 2 
 
 
 
 #   M a x i m u m   n u m b e r   o f   l o c a l s   f o r   f u n c t i o n   /   m e t h o d   b o d y . 
 
 m a x - l o c a l s = 1 5 
 
 
 
 #   M a x i m u m   n u m b e r   o f   p a r e n t s   f o r   a   c l a s s   ( s e e   R 0 9 0 1 ) . 
 
 m a x - p a r e n t s = 7 
 
 
 
 #   M a x i m u m   n u m b e r   o f   p u b l i c   m e t h o d s   f o r   a   c l a s s   ( s e e   R 0 9 0 4 ) . 
 
 m a x - p u b l i c - m e t h o d s = 2 0 
 
 
 
 #   M a x i m u m   n u m b e r   o f   r e t u r n   /   y i e l d   f o r   f u n c t i o n   /   m e t h o d   b o d y . 
 
 m a x - r e t u r n s = 6 
 
 
 
 #   M a x i m u m   n u m b e r   o f   s t a t e m e n t s   i n   f u n c t i o n   /   m e t h o d   b o d y . 
 
 m a x - s t a t e m e n t s = 5 0 
 
 
 
 #   M i n i m u m   n u m b e r   o f   p u b l i c   m e t h o d s   f o r   a   c l a s s   ( s e e   R 0 9 0 3 ) . 
 
 m i n - p u b l i c - m e t h o d s = 2 
 
 
 
 
 
 [ E X C E P T I O N S ] 
 
 
 
 #   E x c e p t i o n s   t h a t   w i l l   e m i t   a   w a r n i n g   w h e n   c a u g h t . 
 
 o v e r g e n e r a l - e x c e p t i o n s = b u i l t i n s . B a s e E x c e p t i o n , b u i l t i n s . E x c e p t i o n 
 
 
 
 
 
 [ F O R M A T ] 
 
 
 
 #   E x p e c t e d   f o r m a t   o f   l i n e   e n d i n g ,   e . g .   e m p t y   ( a n y   l i n e   e n d i n g ) ,   L F   o r   C R L F . 
 
 e x p e c t e d - l i n e - e n d i n g - f o r m a t = 
 
 
 
 #   R e g e x p   f o r   a   l i n e   t h a t   i s   a l l o w e d   t o   b e   l o n g e r   t h a n   t h e   l i m i t . 
 
 i g n o r e - l o n g - l i n e s = ^ \ s * ( #   ) ? < ? h t t p s ? : / / \ S + > ? $ 
 
 
 
 #   N u m b e r   o f   s p a c e s   o f   i n d e n t   r e q u i r e d   i n s i d e   a   h a n g i n g   o r   c o n t i n u e d   l i n e . 
 
 i n d e n t - a f t e r - p a r e n = 4 
 
 
 
 #   S t r i n g   u s e d   a s   i n d e n t a t i o n   u n i t .   T h i s   i s   u s u a l l y   "         "   ( 4   s p a c e s )   o r   " \ t "   ( 1 
 
 #   t a b ) . 
 
 i n d e n t - s t r i n g = '         ' 
 
 
 
 #   M a x i m u m   n u m b e r   o f   c h a r a c t e r s   o n   a   s i n g l e   l i n e . 
 
 m a x - l i n e - l e n g t h = 1 0 0 
 
 
 
 #   M a x i m u m   n u m b e r   o f   l i n e s   i n   a   m o d u l e . 
 
 m a x - m o d u l e - l i n e s = 1 0 0 0 
 
 
 
 #   A l l o w   t h e   b o d y   o f   a   c l a s s   t o   b e   o n   t h e   s a m e   l i n e   a s   t h e   d e c l a r a t i o n   i f   b o d y 
 
 #   c o n t a i n s   s i n g l e   s t a t e m e n t . 
 
 s i n g l e - l i n e - c l a s s - s t m t = n o 
 
 
 
 #   A l l o w   t h e   b o d y   o f   a n   i f   t o   b e   o n   t h e   s a m e   l i n e   a s   t h e   t e s t   i f   t h e r e   i s   n o 
 
 #   e l s e . 
 
 s i n g l e - l i n e - i f - s t m t = n o 
 
 
 
 
 
 [ I M P O R T S ] 
 
 
 
 #   L i s t   o f   m o d u l e s   t h a t   c a n   b e   i m p o r t e d   a t   a n y   l e v e l ,   n o t   j u s t   t h e   t o p   l e v e l 
 
 #   o n e . 
 
 a l l o w - a n y - i m p o r t - l e v e l = 
 
 
 
 #   A l l o w   e x p l i c i t   r e e x p o r t s   b y   a l i a s   f r o m   a   p a c k a g e   _ _ i n i t _ _ . 
 
 a l l o w - r e e x p o r t - f r o m - p a c k a g e = n o 
 
 
 
 #   A l l o w   w i l d c a r d   i m p o r t s   f r o m   m o d u l e s   t h a t   d e f i n e   _ _ a l l _ _ . 
 
 a l l o w - w i l d c a r d - w i t h - a l l = n o 
 
 
 
 #   D e p r e c a t e d   m o d u l e s   w h i c h   s h o u l d   n o t   b e   u s e d ,   s e p a r a t e d   b y   a   c o m m a . 
 
 d e p r e c a t e d - m o d u l e s = 
 
 
 
 #   O u t p u t   a   g r a p h   ( . g v   o r   a n y   s u p p o r t e d   i m a g e   f o r m a t )   o f   e x t e r n a l   d e p e n d e n c i e s 
 
 #   t o   t h e   g i v e n   f i l e   ( r e p o r t   R P 0 4 0 2   m u s t   n o t   b e   d i s a b l e d ) . 
 
 e x t - i m p o r t - g r a p h = 
 
 
 
 #   O u t p u t   a   g r a p h   ( . g v   o r   a n y   s u p p o r t e d   i m a g e   f o r m a t )   o f   a l l   ( i . e .   i n t e r n a l   a n d 
 
 #   e x t e r n a l )   d e p e n d e n c i e s   t o   t h e   g i v e n   f i l e   ( r e p o r t   R P 0 4 0 2   m u s t   n o t   b e 
 
 #   d i s a b l e d ) . 
 
 i m p o r t - g r a p h = 
 
 
 
 #   O u t p u t   a   g r a p h   ( . g v   o r   a n y   s u p p o r t e d   i m a g e   f o r m a t )   o f   i n t e r n a l   d e p e n d e n c i e s 
 
 #   t o   t h e   g i v e n   f i l e   ( r e p o r t   R P 0 4 0 2   m u s t   n o t   b e   d i s a b l e d ) . 
 
 i n t - i m p o r t - g r a p h = 
 
 
 
 #   F o r c e   i m p o r t   o r d e r   t o   r e c o g n i z e   a   m o d u l e   a s   p a r t   o f   t h e   s t a n d a r d 
 
 #   c o m p a t i b i l i t y   l i b r a r i e s . 
 
 k n o w n - s t a n d a r d - l i b r a r y = 
 
 
 
 #   F o r c e   i m p o r t   o r d e r   t o   r e c o g n i z e   a   m o d u l e   a s   p a r t   o f   a   t h i r d   p a r t y   l i b r a r y . 
 
 k n o w n - t h i r d - p a r t y = e n c h a n t 
 
 
 
 #   C o u p l e s   o f   m o d u l e s   a n d   p r e f e r r e d   m o d u l e s ,   s e p a r a t e d   b y   a   c o m m a . 
 
 p r e f e r r e d - m o d u l e s = 
 
 
 
 
 
 [ L O G G I N G ] 
 
 
 
 #   T h e   t y p e   o f   s t r i n g   f o r m a t t i n g   t h a t   l o g g i n g   m e t h o d s   d o .   ` o l d `   m e a n s   u s i n g   % 
 
 #   f o r m a t t i n g ,   ` n e w `   i s   f o r   ` { } `   f o r m a t t i n g . 
 
 l o g g i n g - f o r m a t - s t y l e = o l d 
 
 
 
 #   L o g g i n g   m o d u l e s   t o   c h e c k   t h a t   t h e   s t r i n g   f o r m a t   a r g u m e n t s   a r e   i n   l o g g i n g 
 
 #   f u n c t i o n   p a r a m e t e r   f o r m a t . 
 
 l o g g i n g - m o d u l e s = l o g g i n g 
 
 
 
 
 
 [ M E S S A G E S   C O N T R O L ] 
 
 
 
 #   O n l y   s h o w   w a r n i n g s   w i t h   t h e   l i s t e d   c o n f i d e n c e   l e v e l s .   L e a v e   e m p t y   t o   s h o w 
 
 #   a l l .   V a l i d   l e v e l s :   H I G H ,   C O N T R O L _ F L O W ,   I N F E R E N C E ,   I N F E R E N C E _ F A I L U R E , 
 
 #   U N D E F I N E D . 
 
 c o n f i d e n c e = H I G H , 
 
                       C O N T R O L _ F L O W , 
 
                       I N F E R E N C E , 
 
                       I N F E R E N C E _ F A I L U R E , 
 
                       U N D E F I N E D 
 
 
 
 #   D i s a b l e   t h e   m e s s a g e ,   r e p o r t ,   c a t e g o r y   o r   c h e c k e r   w i t h   t h e   g i v e n   i d ( s ) .   Y o u 
 
 #   c a n   e i t h e r   g i v e   m u l t i p l e   i d e n t i f i e r s   s e p a r a t e d   b y   c o m m a   ( , )   o r   p u t   t h i s 
 
 #   o p t i o n   m u l t i p l e   t i m e s   ( o n l y   o n   t h e   c o m m a n d   l i n e ,   n o t   i n   t h e   c o n f i g u r a t i o n 
 
 #   f i l e   w h e r e   i t   s h o u l d   a p p e a r   o n l y   o n c e ) .   Y o u   c a n   a l s o   u s e   " - - d i s a b l e = a l l "   t o 
 
 #   d i s a b l e   e v e r y t h i n g   f i r s t   a n d   t h e n   r e - e n a b l e   s p e c i f i c   c h e c k s .   F o r   e x a m p l e ,   i f 
 
 #   y o u   w a n t   t o   r u n   o n l y   t h e   s i m i l a r i t i e s   c h e c k e r ,   y o u   c a n   u s e   " - - d i s a b l e = a l l 
 
 #   - - e n a b l e = s i m i l a r i t i e s " .   I f   y o u   w a n t   t o   r u n   o n l y   t h e   c l a s s e s   c h e c k e r ,   b u t   h a v e 
 
 #   n o   W a r n i n g   l e v e l   m e s s a g e s   d i s p l a y e d ,   u s e   " - - d i s a b l e = a l l   - - e n a b l e = c l a s s e s 
 
 #   - - d i s a b l e = W " . 
 
 d i s a b l e = r a w - c h e c k e r - f a i l e d , 
 
                 b a d - i n l i n e - o p t i o n , 
 
                 l o c a l l y - d i s a b l e d , 
 
                 f i l e - i g n o r e d , 
 
                 s u p p r e s s e d - m e s s a g e , 
 
                 u s e l e s s - s u p p r e s s i o n , 
 
                 d e p r e c a t e d - p r a g m a , 
 
                 u s e - s y m b o l i c - m e s s a g e - i n s t e a d 
 
 
 
 #   E n a b l e   t h e   m e s s a g e ,   r e p o r t ,   c a t e g o r y   o r   c h e c k e r   w i t h   t h e   g i v e n   i d ( s ) .   Y o u   c a n 
 
 #   e i t h e r   g i v e   m u l t i p l e   i d e n t i f i e r   s e p a r a t e d   b y   c o m m a   ( , )   o r   p u t   t h i s   o p t i o n 
 
 #   m u l t i p l e   t i m e   ( o n l y   o n   t h e   c o m m a n d   l i n e ,   n o t   i n   t h e   c o n f i g u r a t i o n   f i l e   w h e r e 
 
 #   i t   s h o u l d   a p p e a r   o n l y   o n c e ) .   S e e   a l s o   t h e   " - - d i s a b l e "   o p t i o n   f o r   e x a m p l e s . 
 
 e n a b l e = c - e x t e n s i o n - n o - m e m b e r 
 
 
 
 
 
 [ M E T H O D _ A R G S ] 
 
 
 
 #   L i s t   o f   q u a l i f i e d   n a m e s   ( i . e . ,   l i b r a r y . m e t h o d )   w h i c h   r e q u i r e   a   t i m e o u t 
 
 #   p a r a m e t e r   e . g .   ' r e q u e s t s . a p i . g e t , r e q u e s t s . a p i . p o s t ' 
 
 t i m e o u t - m e t h o d s = r e q u e s t s . a p i . d e l e t e , r e q u e s t s . a p i . g e t , r e q u e s t s . a p i . h e a d , r e q u e s t s . a p i . o p t i o n s , r e q u e s t s . a p i . p a t c h , r e q u e s t s . a p i . p o s t , r e q u e s t s . a p i . p u t , r e q u e s t s . a p i . r e q u e s t 
 
 
 
 
 
 [ M I S C E L L A N E O U S ] 
 
 
 
 #   L i s t   o f   n o t e   t a g s   t o   t a k e   i n   c o n s i d e r a t i o n ,   s e p a r a t e d   b y   a   c o m m a . 
 
 n o t e s = F I X M E , 
 
             X X X , 
 
             T O D O 
 
 
 
 #   R e g u l a r   e x p r e s s i o n   o f   n o t e   t a g s   t o   t a k e   i n   c o n s i d e r a t i o n . 
 
 n o t e s - r g x = 
 
 
 
 
 
 [ R E F A C T O R I N G ] 
 
 
 
 #   M a x i m u m   n u m b e r   o f   n e s t e d   b l o c k s   f o r   f u n c t i o n   /   m e t h o d   b o d y 
 
 m a x - n e s t e d - b l o c k s = 5 
 
 
 
 #   C o m p l e t e   n a m e   o f   f u n c t i o n s   t h a t   n e v e r   r e t u r n s .   W h e n   c h e c k i n g   f o r 
 
 #   i n c o n s i s t e n t - r e t u r n - s t a t e m e n t s   i f   a   n e v e r   r e t u r n i n g   f u n c t i o n   i s   c a l l e d   t h e n 
 
 #   i t   w i l l   b e   c o n s i d e r e d   a s   a n   e x p l i c i t   r e t u r n   s t a t e m e n t   a n d   n o   m e s s a g e   w i l l   b e 
 
 #   p r i n t e d . 
 
 n e v e r - r e t u r n i n g - f u n c t i o n s = s y s . e x i t , a r g p a r s e . p a r s e _ e r r o r 
 
 
 
 
 
 [ R E P O R T S ] 
 
 
 
 #   P y t h o n   e x p r e s s i o n   w h i c h   s h o u l d   r e t u r n   a   s c o r e   l e s s   t h a n   o r   e q u a l   t o   1 0 .   Y o u 
 
 #   h a v e   a c c e s s   t o   t h e   v a r i a b l e s   ' f a t a l ' ,   ' e r r o r ' ,   ' w a r n i n g ' ,   ' r e f a c t o r ' , 
 
 #   ' c o n v e n t i o n ' ,   a n d   ' i n f o '   w h i c h   c o n t a i n   t h e   n u m b e r   o f   m e s s a g e s   i n   e a c h 
 
 #   c a t e g o r y ,   a s   w e l l   a s   ' s t a t e m e n t '   w h i c h   i s   t h e   t o t a l   n u m b e r   o f   s t a t e m e n t s 
 
 #   a n a l y z e d .   T h i s   s c o r e   i s   u s e d   b y   t h e   g l o b a l   e v a l u a t i o n   r e p o r t   ( R P 0 0 0 4 ) . 
 
 e v a l u a t i o n = m a x ( 0 ,   0   i f   f a t a l   e l s e   1 0 . 0   -   ( ( f l o a t ( 5   *   e r r o r   +   w a r n i n g   +   r e f a c t o r   +   c o n v e n t i o n )   /   s t a t e m e n t )   *   1 0 ) ) 
 
 
 
 #   T e m p l a t e   u s e d   t o   d i s p l a y   m e s s a g e s .   T h i s   i s   a   p y t h o n   n e w - s t y l e   f o r m a t   s t r i n g 
 
 #   u s e d   t o   f o r m a t   t h e   m e s s a g e   i n f o r m a t i o n .   S e e   d o c   f o r   a l l   d e t a i l s . 
 
 m s g - t e m p l a t e = 
 
 
 
 #   S e t   t h e   o u t p u t   f o r m a t .   A v a i l a b l e   f o r m a t s   a r e   t e x t ,   p a r s e a b l e ,   c o l o r i z e d ,   j s o n 
 
 #   a n d   m s v s   ( v i s u a l   s t u d i o ) .   Y o u   c a n   a l s o   g i v e   a   r e p o r t e r   c l a s s ,   e . g . 
 
 #   m y p a c k a g e . m y m o d u l e . M y R e p o r t e r C l a s s . 
 
 # o u t p u t - f o r m a t = 
 
 
 
 #   T e l l s   w h e t h e r   t o   d i s p l a y   a   f u l l   r e p o r t   o r   o n l y   t h e   m e s s a g e s . 
 
 r e p o r t s = n o 
 
 
 
 #   A c t i v a t e   t h e   e v a l u a t i o n   s c o r e . 
 
 s c o r e = y e s 
 
 
 
 
 
 [ S I M I L A R I T I E S ] 
 
 
 
 #   C o m m e n t s   a r e   r e m o v e d   f r o m   t h e   s i m i l a r i t y   c o m p u t a t i o n 
 
 i g n o r e - c o m m e n t s = y e s 
 
 
 
 #   D o c s t r i n g s   a r e   r e m o v e d   f r o m   t h e   s i m i l a r i t y   c o m p u t a t i o n 
 
 i g n o r e - d o c s t r i n g s = y e s 
 
 
 
 #   I m p o r t s   a r e   r e m o v e d   f r o m   t h e   s i m i l a r i t y   c o m p u t a t i o n 
 
 i g n o r e - i m p o r t s = y e s 
 
 
 
 #   S i g n a t u r e s   a r e   r e m o v e d   f r o m   t h e   s i m i l a r i t y   c o m p u t a t i o n 
 
 i g n o r e - s i g n a t u r e s = y e s 
 
 
 
 #   M i n i m u m   l i n e s   n u m b e r   o f   a   s i m i l a r i t y . 
 
 m i n - s i m i l a r i t y - l i n e s = 4 
 
 
 
 
 
 [ S P E L L I N G ] 
 
 
 
 #   L i m i t s   c o u n t   o f   e m i t t e d   s u g g e s t i o n s   f o r   s p e l l i n g   m i s t a k e s . 
 
 m a x - s p e l l i n g - s u g g e s t i o n s = 4 
 
 
 
 #   S p e l l i n g   d i c t i o n a r y   n a m e .   N o   a v a i l a b l e   d i c t i o n a r i e s   :   Y o u   n e e d   t o   i n s t a l l 
 
 #   b o t h   t h e   p y t h o n   p a c k a g e   a n d   t h e   s y s t e m   d e p e n d e n c y   f o r   e n c h a n t   t o   w o r k . . 
 
 s p e l l i n g - d i c t = 
 
 
 
 #   L i s t   o f   c o m m a   s e p a r a t e d   w o r d s   t h a t   s h o u l d   b e   c o n s i d e r e d   d i r e c t i v e s   i f   t h e y 
 
 #   a p p e a r   a t   t h e   b e g i n n i n g   o f   a   c o m m e n t   a n d   s h o u l d   n o t   b e   c h e c k e d . 
 
 s p e l l i n g - i g n o r e - c o m m e n t - d i r e c t i v e s = f m t :   o n , f m t :   o f f , n o q a : , n o q a , n o s e c , i s o r t : s k i p , m y p y : 
 
 
 
 #   L i s t   o f   c o m m a   s e p a r a t e d   w o r d s   t h a t   s h o u l d   n o t   b e   c h e c k e d . 
 
 s p e l l i n g - i g n o r e - w o r d s = 
 
 
 
 #   A   p a t h   t o   a   f i l e   t h a t   c o n t a i n s   t h e   p r i v a t e   d i c t i o n a r y ;   o n e   w o r d   p e r   l i n e . 
 
 s p e l l i n g - p r i v a t e - d i c t - f i l e = 
 
 
 
 #   T e l l s   w h e t h e r   t o   s t o r e   u n k n o w n   w o r d s   t o   t h e   p r i v a t e   d i c t i o n a r y   ( s e e   t h e 
 
 #   - - s p e l l i n g - p r i v a t e - d i c t - f i l e   o p t i o n )   i n s t e a d   o f   r a i s i n g   a   m e s s a g e . 
 
 s p e l l i n g - s t o r e - u n k n o w n - w o r d s = n o 
 
 
 
 
 
 [ S T R I N G ] 
 
 
 
 #   T h i s   f l a g   c o n t r o l s   w h e t h e r   i n c o n s i s t e n t - q u o t e s   g e n e r a t e s   a   w a r n i n g   w h e n   t h e 
 
 #   c h a r a c t e r   u s e d   a s   a   q u o t e   d e l i m i t e r   i s   u s e d   i n c o n s i s t e n t l y   w i t h i n   a   m o d u l e . 
 
 c h e c k - q u o t e - c o n s i s t e n c y = n o 
 
 
 
 #   T h i s   f l a g   c o n t r o l s   w h e t h e r   t h e   i m p l i c i t - s t r - c o n c a t   s h o u l d   g e n e r a t e   a   w a r n i n g 
 
 #   o n   i m p l i c i t   s t r i n g   c o n c a t e n a t i o n   i n   s e q u e n c e s   d e f i n e d   o v e r   s e v e r a l   l i n e s . 
 
 c h e c k - s t r - c o n c a t - o v e r - l i n e - j u m p s = n o 
 
 
 
 
 
 [ T Y P E C H E C K ] 
 
 
 
 #   L i s t   o f   d e c o r a t o r s   t h a t   p r o d u c e   c o n t e x t   m a n a g e r s ,   s u c h   a s 
 
 #   c o n t e x t l i b . c o n t e x t m a n a g e r .   A d d   t o   t h i s   l i s t   t o   r e g i s t e r   o t h e r   d e c o r a t o r s   t h a t 
 
 #   p r o d u c e   v a l i d   c o n t e x t   m a n a g e r s . 
 
 c o n t e x t m a n a g e r - d e c o r a t o r s = c o n t e x t l i b . c o n t e x t m a n a g e r 
 
 
 
 #   L i s t   o f   m e m b e r s   w h i c h   a r e   s e t   d y n a m i c a l l y   a n d   m i s s e d   b y   p y l i n t   i n f e r e n c e 
 
 #   s y s t e m ,   a n d   s o   s h o u l d n ' t   t r i g g e r   E 1 1 0 1   w h e n   a c c e s s e d .   P y t h o n   r e g u l a r 
 
 #   e x p r e s s i o n s   a r e   a c c e p t e d . 
 
 g e n e r a t e d - m e m b e r s = 
 
 
 
 #   T e l l s   w h e t h e r   t o   w a r n   a b o u t   m i s s i n g   m e m b e r s   w h e n   t h e   o w n e r   o f   t h e   a t t r i b u t e 
 
 #   i s   i n f e r r e d   t o   b e   N o n e . 
 
 i g n o r e - n o n e = y e s 
 
 
 
 #   T h i s   f l a g   c o n t r o l s   w h e t h e r   p y l i n t   s h o u l d   w a r n   a b o u t   n o - m e m b e r   a n d   s i m i l a r 
 
 #   c h e c k s   w h e n e v e r   a n   o p a q u e   o b j e c t   i s   r e t u r n e d   w h e n   i n f e r r i n g .   T h e   i n f e r e n c e 
 
 #   c a n   r e t u r n   m u l t i p l e   p o t e n t i a l   r e s u l t s   w h i l e   e v a l u a t i n g   a   P y t h o n   o b j e c t ,   b u t 
 
 #   s o m e   b r a n c h e s   m i g h t   n o t   b e   e v a l u a t e d ,   w h i c h   r e s u l t s   i n   p a r t i a l   i n f e r e n c e .   I n 
 
 #   t h a t   c a s e ,   i t   m i g h t   b e   u s e f u l   t o   s t i l l   e m i t   n o - m e m b e r   a n d   o t h e r   c h e c k s   f o r 
 
 #   t h e   r e s t   o f   t h e   i n f e r r e d   o b j e c t s . 
 
 i g n o r e - o n - o p a q u e - i n f e r e n c e = y e s 
 
 
 
 #   L i s t   o f   s y m b o l i c   m e s s a g e   n a m e s   t o   i g n o r e   f o r   M i x i n   m e m b e r s . 
 
 i g n o r e d - c h e c k s - f o r - m i x i n s = n o - m e m b e r , 
 
                                                     n o t - a s y n c - c o n t e x t - m a n a g e r , 
 
                                                     n o t - c o n t e x t - m a n a g e r , 
 
                                                     a t t r i b u t e - d e f i n e d - o u t s i d e - i n i t 
 
 
 
 #   L i s t   o f   c l a s s   n a m e s   f o r   w h i c h   m e m b e r   a t t r i b u t e s   s h o u l d   n o t   b e   c h e c k e d   ( u s e f u l 
 
 #   f o r   c l a s s e s   w i t h   d y n a m i c a l l y   s e t   a t t r i b u t e s ) .   T h i s   s u p p o r t s   t h e   u s e   o f 
 
 #   q u a l i f i e d   n a m e s . 
 
 i g n o r e d - c l a s s e s = o p t p a r s e . V a l u e s , t h r e a d . _ l o c a l , _ t h r e a d . _ l o c a l , a r g p a r s e . N a m e s p a c e 
 
 
 
 #   S h o w   a   h i n t   w i t h   p o s s i b l e   n a m e s   w h e n   a   m e m b e r   n a m e   w a s   n o t   f o u n d .   T h e   a s p e c t 
 
 #   o f   f i n d i n g   t h e   h i n t   i s   b a s e d   o n   e d i t   d i s t a n c e . 
 
 m i s s i n g - m e m b e r - h i n t = y e s 
 
 
 
 #   T h e   m i n i m u m   e d i t   d i s t a n c e   a   n a m e   s h o u l d   h a v e   i n   o r d e r   t o   b e   c o n s i d e r e d   a 
 
 #   s i m i l a r   m a t c h   f o r   a   m i s s i n g   m e m b e r   n a m e . 
 
 m i s s i n g - m e m b e r - h i n t - d i s t a n c e = 1 
 
 
 
 #   T h e   t o t a l   n u m b e r   o f   s i m i l a r   n a m e s   t h a t   s h o u l d   b e   t a k e n   i n   c o n s i d e r a t i o n   w h e n 
 
 #   s h o w i n g   a   h i n t   f o r   a   m i s s i n g   m e m b e r . 
 
 m i s s i n g - m e m b e r - m a x - c h o i c e s = 1 
 
 
 
 #   R e g e x   p a t t e r n   t o   d e f i n e   w h i c h   c l a s s e s   a r e   c o n s i d e r e d   m i x i n s . 
 
 m i x i n - c l a s s - r g x = . * [ M m ] i x i n 
 
 
 
 #   L i s t   o f   d e c o r a t o r s   t h a t   c h a n g e   t h e   s i g n a t u r e   o f   a   d e c o r a t e d   f u n c t i o n . 
 
 s i g n a t u r e - m u t a t o r s = 
 
 
 
 
 
 [ V A R I A B L E S ] 
 
 
 
 #   L i s t   o f   a d d i t i o n a l   n a m e s   s u p p o s e d   t o   b e   d e f i n e d   i n   b u i l t i n s .   R e m e m b e r   t h a t 
 
 #   y o u   s h o u l d   a v o i d   d e f i n i n g   n e w   b u i l t i n s   w h e n   p o s s i b l e . 
 
 a d d i t i o n a l - b u i l t i n s = 
 
 
 
 #   T e l l s   w h e t h e r   u n u s e d   g l o b a l   v a r i a b l e s   s h o u l d   b e   t r e a t e d   a s   a   v i o l a t i o n . 
 
 a l l o w - g l o b a l - u n u s e d - v a r i a b l e s = y e s 
 
 
 
 #   L i s t   o f   n a m e s   a l l o w e d   t o   s h a d o w   b u i l t i n s 
 
 a l l o w e d - r e d e f i n e d - b u i l t i n s = 
 
 
 
 #   L i s t   o f   s t r i n g s   w h i c h   c a n   i d e n t i f y   a   c a l l b a c k   f u n c t i o n   b y   n a m e .   A   c a l l b a c k 
 
 #   n a m e   m u s t   s t a r t   o r   e n d   w i t h   o n e   o f   t h o s e   s t r i n g s . 
 
 c a l l b a c k s = c b _ , 
 
                     _ c b 
 
 
 
 #   A   r e g u l a r   e x p r e s s i o n   m a t c h i n g   t h e   n a m e   o f   d u m m y   v a r i a b l e s   ( i . e .   e x p e c t e d   t o 
 
 #   n o t   b e   u s e d ) . 
 
 d u m m y - v a r i a b l e s - r g x = _ + $ | ( _ [ a - z A - Z 0 - 9 _ ] * [ a - z A - Z 0 - 9 ] + ? $ ) | d u m m y | ^ i g n o r e d _ | ^ u n u s e d _ 
 
 
 
 #   A r g u m e n t   n a m e s   t h a t   m a t c h   t h i s   e x p r e s s i o n   w i l l   b e   i g n o r e d . 
 
 i g n o r e d - a r g u m e n t - n a m e s = _ . * | ^ i g n o r e d _ | ^ u n u s e d _ 
 
 
 
 #   T e l l s   w h e t h e r   w e   s h o u l d   c h e c k   f o r   u n u s e d   i m p o r t   i n   _ _ i n i t _ _   f i l e s . 
 
 i n i t - i m p o r t = n o 
 
 
 
 #   L i s t   o f   q u a l i f i e d   m o d u l e   n a m e s   w h i c h   c a n   h a v e   o b j e c t s   t h a t   c a n   r e d e f i n e 
 
 #   b u i l t i n s . 
 
 r e d e f i n i n g - b u i l t i n s - m o d u l e s = s i x . m o v e s , p a s t . b u i l t i n s , f u t u r e . b u i l t i n s , b u i l t i n s , i o 
 
 
