mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Merge pull request #239 from crystal-ameba/Sija/fix-typos
Fix typos throughout the codebase
This commit is contained in:
		
						commit
						9a91e42bcc
					
				
					 4 changed files with 5 additions and 5 deletions
				
			
		|  | @ -95,7 +95,7 @@ module Ameba | |||
|       end | ||||
|     ) | ||||
| 
 | ||||
|     it "does not report emtpy expression in macro" do | ||||
|     it "does not report empty expression in macro" do | ||||
|       s = Source.new %q( | ||||
|         module MyModule | ||||
|           macro conditional_error_for_inline_callbacks | ||||
|  |  | |||
|  | @ -201,7 +201,7 @@ module Ameba::Rule::Lint | |||
|         subject.catch(source).should be_valid | ||||
|       end | ||||
| 
 | ||||
|       it "does not report shadowed vars in macro withing the same scope" do | ||||
|       it "does not report shadowed vars in macro within the same scope" do | ||||
|         source = Source.new %( | ||||
|           {% methods = klass.methods.select { |m| m.annotation(MyAnn) } %} | ||||
| 
 | ||||
|  | @ -214,7 +214,7 @@ module Ameba::Rule::Lint | |||
|         subject.catch(source).should be_valid | ||||
|       end | ||||
| 
 | ||||
|       it "does not report shadowed vars withing nested macro" do | ||||
|       it "does not report shadowed vars within nested macro" do | ||||
|         source = Source.new %( | ||||
|           module Foo | ||||
|             macro included | ||||
|  |  | |||
|  | @ -154,7 +154,7 @@ module Ameba::AST | |||
|         node.location == @node.location | ||||
|     end | ||||
| 
 | ||||
|     # Returns true if the variable is delcared before the `node`. | ||||
|     # Returns true if the variable is declared before the `node`. | ||||
|     def declared_before?(node) | ||||
|       var_location, node_location = location, node.location | ||||
| 
 | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ module Ameba::Rule::Lint | |||
|   # In specs `focus: true` is mainly used to focus on a spec | ||||
|   # item locally during development. However, if such change | ||||
|   # is committed, it silently runs only focused spec on all | ||||
|   # other enviroment, which is undesired. | ||||
|   # other environment, which is undesired. | ||||
|   # | ||||
|   # This is considered bad: | ||||
|   # | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue