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

Commitb09fc7c

Browse files
committed
Remove private noErrors parameter to main entry point, hardcode "true" behavior.
1 parent53bf1fc commitb09fc7c

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

‎markdownlint-cli2.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,6 @@ const enumerateFiles = async (
473473
baseDir,
474474
globPatterns,
475475
dirToDirInfo,
476-
noErrors,
477476
noRequire
478477
)=>{
479478
consttasks=[];
@@ -482,11 +481,9 @@ const enumerateFiles = async (
482481
"cwd":baseDir,
483482
"dot":true,
484483
"expandDirectories":false,
484+
"suppressErrors":true,
485485
fs
486486
};
487-
if(noErrors){
488-
globbyOptions.suppressErrors=true;
489-
}
490487
// Special-case literal files
491488
constliteralFiles=[];
492489
constfilteredGlobPatterns=globPatterns.filter(
@@ -608,7 +605,6 @@ const createDirInfos = async (
608605
globPatterns,
609606
dirToDirInfo,
610607
optionsOverride,
611-
noErrors,
612608
noRequire
613609
)=>{
614610
awaitenumerateFiles(
@@ -617,7 +613,6 @@ const createDirInfos = async (
617613
baseDir,
618614
globPatterns,
619615
dirToDirInfo,
620-
noErrors,
621616
noRequire
622617
);
623618
awaitenumerateParents(
@@ -898,7 +893,6 @@ const main = async (params) => {
898893
optionsOverride,
899894
fileContents,
900895
nonFileContents,
901-
noErrors,
902896
noGlobs,
903897
noRequire,
904898
name
@@ -989,7 +983,6 @@ const main = async (params) => {
989983
globPatterns,
990984
dirToDirInfo,
991985
optionsOverride,
992-
noErrors,
993986
noRequire
994987
);
995988
// Output linting status

‎test/markdownlint-cli2-test.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,7 @@ test("custom fs, extension scenario with exception", (t) => {
475475
"stat":null,
476476
"readdir":null,
477477
"readFile":null
478-
},
479-
"noErrors":true
478+
}
480479
}).
481480
then((exitCode)=>{
482481
t.is(exitCode,0);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp