mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Rename to Lint/NotNilAfterNoBang
				
					
				
			This commit is contained in:
		
							parent
							
								
									9515e624c3
								
							
						
					
					
						commit
						63407c1bd1
					
				
					 2 changed files with 4 additions and 4 deletions
				
			
		|  | @ -1,9 +1,9 @@ | |||
| require "../../../spec_helper" | ||||
| 
 | ||||
| module Ameba::Rule::Lint | ||||
|   subject = NotNilWithNoBang.new | ||||
|   subject = NotNilAfterNoBang.new | ||||
| 
 | ||||
|   describe NotNilWithNoBang do | ||||
|   describe NotNilAfterNoBang do | ||||
|     it "passes for valid cases" do | ||||
|       expect_no_issues subject, <<-CRYSTAL | ||||
|         (1..3).index(1).not_nil!(:foo) | ||||
|  | @ -16,10 +16,10 @@ module Ameba::Rule::Lint | |||
|   # YAML configuration example: | ||||
|   # | ||||
|   # ``` | ||||
|   # Lint/NotNilWithNoBang: | ||||
|   # Lint/NotNilAfterNoBang: | ||||
|   #   Enabled: true | ||||
|   # ``` | ||||
|   class NotNilWithNoBang < Base | ||||
|   class NotNilAfterNoBang < Base | ||||
|     include AST::Util | ||||
| 
 | ||||
|     properties do | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue