feat: use conf.json
This commit is contained in:
		
							parent
							
								
									9938ef006e
								
							
						
					
					
						commit
						1f53f4df20
					
				
							
								
								
									
										70
									
								
								conf.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										70
									
								
								conf.json
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,70 @@ | ||||||
|  | { | ||||||
|  |   "stages": [ | ||||||
|  |     { | ||||||
|  |       "name": "keyword", | ||||||
|  |       "executor": { | ||||||
|  |         "name": "sandbox", | ||||||
|  |         "with": { | ||||||
|  |           "default": { | ||||||
|  |             "args": [ | ||||||
|  |               "bash", | ||||||
|  |               "-c", | ||||||
|  |               "clang-tidy --header-filter=.* --quiet -checks=* src/*.cpp" | ||||||
|  |             ], | ||||||
|  |             "env": [ | ||||||
|  |               "PATH=/usr/bin:/bin:/usr/local/bin" | ||||||
|  |             ], | ||||||
|  |             "cpuLimit": 10000000000, | ||||||
|  |             "memoryLimit": 104857600, | ||||||
|  |             "procLimit": 50, | ||||||
|  |             "copyInCwd": true, | ||||||
|  |             "copyOut": [ | ||||||
|  |               "stdout", | ||||||
|  |               "stderr" | ||||||
|  |             ], | ||||||
|  |             "stdin": { | ||||||
|  |               "content": "" | ||||||
|  |             }, | ||||||
|  |             "stdout": { | ||||||
|  |               "name": "stdout", | ||||||
|  |               "max": 65536 | ||||||
|  |             }, | ||||||
|  |             "stderr": { | ||||||
|  |               "name": "stderr", | ||||||
|  |               "max": 65536 | ||||||
|  |             } | ||||||
|  |           } | ||||||
|  |         } | ||||||
|  |       }, | ||||||
|  |       "parser": { | ||||||
|  |         "name": "keyword", | ||||||
|  |         "with": { | ||||||
|  |           "fullScore": 1000, | ||||||
|  |           "minScore": 0, | ||||||
|  |           "files": [ | ||||||
|  |             "stdout" | ||||||
|  |           ], | ||||||
|  |           "endOnMatch": true, | ||||||
|  |           "matches": [ | ||||||
|  |             { | ||||||
|  |               "keyword": "[cppcoreguidelines-avoid-non-const-global-variables]", | ||||||
|  |               "score": 5 | ||||||
|  |             }, | ||||||
|  |             { | ||||||
|  |               "keyword": "[readability-identifier-length]", | ||||||
|  |               "score": 2 | ||||||
|  |             }, | ||||||
|  |             { | ||||||
|  |               "keyword": "[misc-use-anonymous-namespace]", | ||||||
|  |               "score": 2 | ||||||
|  |             }, | ||||||
|  |             { | ||||||
|  |               "keyword": "[llvmlibc-implementation-in-namespace]", | ||||||
|  |               "score": 0 | ||||||
|  |             } | ||||||
|  |           ] | ||||||
|  |         } | ||||||
|  |       } | ||||||
|  |     } | ||||||
|  |   ] | ||||||
|  | } | ||||||
							
								
								
									
										40
									
								
								conf.toml
									
									
									
									
									
								
							
							
						
						
									
										40
									
								
								conf.toml
									
									
									
									
									
								
							|  | @ -1,40 +0,0 @@ | ||||||
| skipGitea = true |  | ||||||
| [[stages]] |  | ||||||
| name = "keyword" |  | ||||||
| [stages.executor] |  | ||||||
| name = "sandbox" |  | ||||||
| [stages.executor.with.default] |  | ||||||
| args = ["bash", "-c", "clang-tidy --header-filter=.* --quiet -checks=* src/*.cpp"] |  | ||||||
| env = ["PATH=/usr/bin:/bin:/usr/local/bin"] |  | ||||||
| cpuLimit = 10_000_000_000 |  | ||||||
| memoryLimit = 104_857_600 |  | ||||||
| procLimit = 50 |  | ||||||
| copyInCwd = true |  | ||||||
| copyOut = ["stdout", "stderr"] |  | ||||||
| [stages.executor.with.default.stdin] |  | ||||||
| content = "" |  | ||||||
| [stages.executor.with.default.stdout] |  | ||||||
| name = "stdout" |  | ||||||
| max = 65_536 |  | ||||||
| [stages.executor.with.default.stderr] |  | ||||||
| name = "stderr" |  | ||||||
| max = 65_536 |  | ||||||
| [stages.parser] |  | ||||||
| name = "keyword" |  | ||||||
| [stages.parser.with] |  | ||||||
| fullScore = 1000 |  | ||||||
| minScore = 0 |  | ||||||
| files = ["stdout"] |  | ||||||
| endOnMatch = true |  | ||||||
| [[stages.parser.with.matches]] |  | ||||||
| keyword = "[cppcoreguidelines-avoid-non-const-global-variables]" |  | ||||||
| score = 5 |  | ||||||
| [[stages.parser.with.matches]] |  | ||||||
| keyword = "[readability-identifier-length]" |  | ||||||
| score = 2 |  | ||||||
| [[stages.parser.with.matches]] |  | ||||||
| keyword = "[misc-use-anonymous-namespace]" |  | ||||||
| score = 2 |  | ||||||
| [[stages.parser.with.matches]] |  | ||||||
| keyword = "[llvmlibc-implementation-in-namespace]" |  | ||||||
| score = 0 |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user