chore: trim old code
This commit is contained in:
		
							parent
							
								
									8f099d8a33
								
							
						
					
					
						commit
						72f09e7e4b
					
				|  | @ -21,7 +21,11 @@ def fix_keyword(task_stage: TaskStage, conf_stage: ResultStage) -> ResultStage: | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| 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) | ||||||
|  |  | ||||||
|  | @ -18,7 +18,7 @@ | ||||||
|                                 "/<function", |                                 "/<function", | ||||||
|                                 "get_temp_directory", |                                 "get_temp_directory", | ||||||
|                                 "at", |                                 "at", | ||||||
|                                 "0x7fbd328431a0>/repo-health-checker", |                                 "0x7ff2358271a0>/repo-health-checker", | ||||||
|                                 "-root=.", |                                 "-root=.", | ||||||
|                                 "-repoSize=50.5", |                                 "-repoSize=50.5", | ||||||
|                                 "-meta=main.py", |                                 "-meta=main.py", | ||||||
|  | @ -71,8 +71,8 @@ | ||||||
|                             "cpuRateLimit": 0, |                             "cpuRateLimit": 0, | ||||||
|                             "cpuSetLimit": "", |                             "cpuSetLimit": "", | ||||||
|                             "copyIn": { |                             "copyIn": { | ||||||
|                                 "//tmp/repo-checker-04l9les6/repo-health-checker": { |                                 "//tmp/repo-checker-3qi07atp/repo-health-checker": { | ||||||
|                                     "src": "//tmp/repo-checker-_34sofm5/repo-health-checker", |                                     "src": "//tmp/repo-checker-ebujap5a/repo-health-checker", | ||||||
|                                     "content": null, |                                     "content": null, | ||||||
|                                     "fileId": null, |                                     "fileId": null, | ||||||
|                                     "name": null, |                                     "name": null, | ||||||
|  | @ -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