-
Notifications
You must be signed in to change notification settings - Fork 549
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* without `-print0` / `-0`, paths with spaces were skipped sometimes; * `--stdin-filename` flag incorrectly consumed the first file. Signed-off-by: Alexey Palazhchenko <[email protected]>
- Loading branch information
Showing
25 changed files
with
149 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
!website | ||
!.golangci.yml | ||
!.markdownlint.json | ||
!.textlintrc.json | ||
!go.mod | ||
!go.sum | ||
!prototool.yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"rules": { | ||
"one-sentence-per-line": true | ||
}, | ||
"filters": { | ||
"comments": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -606,6 +606,7 @@ FROM node:16.1.0-alpine AS lint-markdown | |
RUN apk add --no-cache findutils | ||
RUN npm i -g [email protected] | ||
RUN npm i -g [email protected] | ||
RUN npm i -g [email protected] | ||
RUN npm i -g [email protected] | ||
WORKDIR /src | ||
COPY . . | ||
|
@@ -615,7 +616,8 @@ RUN markdownlint \ | |
--ignore '**/CODE_OF_CONDUCT.md' \ | ||
--ignore '**/node_modules/**' \ | ||
--ignore '**/hack/chglog/**' \ | ||
--ignore 'website/content/docs/*/Reference/*' . | ||
--ignore 'website/content/docs/*/Reference/*' \ | ||
. | ||
RUN find . \ | ||
-name '*.md' \ | ||
-not -path './LICENCE.md' \ | ||
|
@@ -624,7 +626,8 @@ RUN find . \ | |
-not -path '*/node_modules/*' \ | ||
-not -path './hack/chglog/**' \ | ||
-not -path './website/content/docs/*/Reference/*' \ | ||
| xargs textlint --rule one-sentence-per-line --stdin-filename | ||
-print0 \ | ||
| xargs -0 textlint | ||
|
||
# The docs target generates documentation. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.