mirror of
				https://github.com/actions-rs/cargo.git
				synced 2025-11-03 22:31:58 +02:00 
			
		
		
		
	rustfmt matcher
This commit is contained in:
		
							parent
							
								
									2daac5e246
								
							
						
					
					
						commit
						40ef48bb22
					
				
					 3 changed files with 15 additions and 2 deletions
				
			
		
							
								
								
									
										12
									
								
								.matchers/rustfmt.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								.matchers/rustfmt.json
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,12 @@
 | 
			
		|||
{
 | 
			
		||||
    "problemMatcher": [
 | 
			
		||||
        {
 | 
			
		||||
            "owner": "rustfmt",
 | 
			
		||||
            "pattern": {
 | 
			
		||||
                "regexp": "^Diff in (\\S+) at line (\\d+):$",
 | 
			
		||||
                "file": 1,
 | 
			
		||||
                "line": 2
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
    ]
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										2
									
								
								dist/index.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/index.js
									
										
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| 
						 | 
				
			
			@ -25,7 +25,8 @@ export async function run(actionInput: input.Input): Promise<void> {
 | 
			
		|||
 | 
			
		||||
async function main(): Promise<void> {
 | 
			
		||||
    const matchersPath = path.join(__dirname, '.matchers');
 | 
			
		||||
    console.log(`##[add-matcher]${path.join(matchersPath, 'rust.json')}`);
 | 
			
		||||
    console.log(`::[add-matcher]${path.join(matchersPath, 'rust.json')}`);
 | 
			
		||||
    console.log(`::[add-matcher]${path.join(matchersPath, 'rustfmt.json')}`);
 | 
			
		||||
 | 
			
		||||
    const actionInput = input.get();
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue