mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Add description to syntax special rule
This commit is contained in:
		
							parent
							
								
									20938da89a
								
							
						
					
					
						commit
						148044f479
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -20,6 +20,8 @@ module Ameba::Rule::Lint
 | 
				
			||||||
  # ```
 | 
					  # ```
 | 
				
			||||||
  #
 | 
					  #
 | 
				
			||||||
  struct Syntax < Base
 | 
					  struct Syntax < Base
 | 
				
			||||||
 | 
					    getter description = "Reports invalid Crystal syntax."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def test(source)
 | 
					    def test(source)
 | 
				
			||||||
      source.ast
 | 
					      source.ast
 | 
				
			||||||
    rescue e : Crystal::SyntaxException
 | 
					    rescue e : Crystal::SyntaxException
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue