Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitefa5fb6

Browse files
authored
QUA-460: fix calculateConfig returning Promise (#575)
1 parent8be1e6b commitefa5fb6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎lib/eslint.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ async function run(console, runOptions) {
5656
returncontent+"Source: http://eslint.org/docs/rules/\n"
5757
}
5858

59-
functionbuildIssueJson(message,path){
59+
asyncfunctionbuildIssueJson(message,path){
6060
// ESLint doesn't emit a ruleId in the
6161
// case of a fatal error (such as an invalid
6262
// token)
@@ -88,7 +88,7 @@ async function run(console, runOptions) {
8888
},
8989
},
9090
},
91-
remediation_points:checks.remediationPoints(checkName,message,cli.calculateConfigForFile(path)),
91+
remediation_points:checks.remediationPoints(checkName,message,awaitcli.calculateConfigForFile(path)),
9292
}
9393

9494
varfingerprint=computeFingerprint(path,checkName,message.message)
@@ -201,16 +201,16 @@ async function run(console, runOptions) {
201201
batchReport=awaitcli.lintFiles(batchFiles)
202202
})
203203

204-
runWithTiming("report-batch"+batchNum,function(){
204+
awaitrunWithTimingAsync("report-batch"+batchNum,asyncfunction(){
205205
batchReport.forEach(function(result){
206206
varpath=result.filePath.replace(/^\/code\//,"")
207207

208-
result.messages.forEach(function(message){
208+
result.messages.forEach(asyncfunction(message){
209209
if(ignoreWarnings&&message.severity===ESLINT_WARNING_SEVERITY){
210210
return
211211
}
212212

213-
varreadableJsonStream=buildIssueJson(message,path)
213+
varreadableJsonStream=awaitbuildIssueJson(message,path)
214214
varoutput=""
215215
readableJsonStream.on('data',(chunk)=>{
216216
output=output+`${JSON.stringify(chunk)}`

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp