mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Disable PredicateName and LargeNumbers rules by default
This commit is contained in:
		
							parent
							
								
									a0f31dc943
								
							
						
					
					
						commit
						970ca4be1b
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -31,6 +31,7 @@ module Ameba::Rule::Style
 | 
				
			||||||
    properties do
 | 
					    properties do
 | 
				
			||||||
      description "Disallows usage of large numbers without underscore"
 | 
					      description "Disallows usage of large numbers without underscore"
 | 
				
			||||||
      int_min_digits 5
 | 
					      int_min_digits 5
 | 
				
			||||||
 | 
					      enabled false
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    MSG = "Large numbers should be written with underscores: %s"
 | 
					    MSG = "Large numbers should be written with underscores: %s"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -32,6 +32,7 @@ module Ameba::Rule::Style
 | 
				
			||||||
  struct PredicateName < Base
 | 
					  struct PredicateName < Base
 | 
				
			||||||
    properties do
 | 
					    properties do
 | 
				
			||||||
      description "Disallows tautological predicate names"
 | 
					      description "Disallows tautological predicate names"
 | 
				
			||||||
 | 
					      enabled false
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    MSG = "Favour method name '%s?' over '%s'"
 | 
					    MSG = "Favour method name '%s?' over '%s'"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue