mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Add some more excluded operators to BinaryOperatorParameterName rule
				
					
				
			This commit is contained in:
		
							parent
							
								
									9f9d5fae32
								
							
						
					
					
						commit
						47088b10ca
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -25,13 +25,13 @@ module Ameba::Rule::Naming | ||||||
|   # ``` |   # ``` | ||||||
|   # Naming/BinaryOperatorParameterName: |   # Naming/BinaryOperatorParameterName: | ||||||
|   #   Enabled: true |   #   Enabled: true | ||||||
|   #   ExcludedOperators: ["[]", "[]?", "[]=", "<<", "=~"] |   #   ExcludedOperators: ["[]", "[]?", "[]=", "<<", ">>", "=~", "!~"] | ||||||
|   # ``` |   # ``` | ||||||
|   class BinaryOperatorParameterName < Base |   class BinaryOperatorParameterName < Base | ||||||
|     properties do |     properties do | ||||||
|       description "Enforces that certain binary operator methods have " \ |       description "Enforces that certain binary operator methods have " \ | ||||||
|                   "their sole parameter named `other`" |                   "their sole parameter named `other`" | ||||||
|       excluded_operators %w[[] []? []= << ` =~] |       excluded_operators %w[[] []? []= << >> ` =~ !~] | ||||||
|     end |     end | ||||||
| 
 | 
 | ||||||
|     MSG = "When defining the `%s` operator, name its argument `other`" |     MSG = "When defining the `%s` operator, name its argument `other`" | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue