chore: trim old code
This commit is contained in:
		
							parent
							
								
									5f51232cb0
								
							
						
					
					
						commit
						78dc81b864
					
				|  | @ -255,7 +255,11 @@ def fix_diff( | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def fix_comment(task_stage: TaskStage, conf_stage: ResultStage) -> ResultStage: | def fix_comment(task_stage: TaskStage, conf_stage: ResultStage) -> ResultStage: | ||||||
|     comment_parser = ["dummy", "result-status"] |     comment_parser = [ | ||||||
|  |         "dummy", | ||||||
|  |         "result-status", | ||||||
|  |         "cpplint", | ||||||
|  |     ]  # FIXME: determine where cpplint should be | ||||||
|     for parser in task_stage.parsers: |     for parser in task_stage.parsers: | ||||||
|         if parser in comment_parser: |         if parser in comment_parser: | ||||||
|             comment_parser_ = next(p for p in conf_stage.parsers if p.name == parser) |             comment_parser_ = next(p for p in conf_stage.parsers if p.name == parser) | ||||||
|  |  | ||||||
|  | @ -775,7 +775,18 @@ | ||||||
|                 "parsers": [ |                 "parsers": [ | ||||||
|                     { |                     { | ||||||
|                         "name": "cpplint", |                         "name": "cpplint", | ||||||
|                         "with": {} |                         "with": { | ||||||
|  |                             "keyword": [ | ||||||
|  |                                 "runtime", | ||||||
|  |                                 "readability", | ||||||
|  |                                 "build" | ||||||
|  |                             ], | ||||||
|  |                             "weight": [ | ||||||
|  |                                 10, | ||||||
|  |                                 20, | ||||||
|  |                                 15 | ||||||
|  |                             ] | ||||||
|  |                         } | ||||||
|                     }, |                     }, | ||||||
|                     { |                     { | ||||||
|                         "name": "dummy", |                         "name": "dummy", | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user