Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checks.whitespace: add initial check for bad whitespace character usage
- Loading branch information
Showing
5 changed files
with
94 additions
and
1 deletion.
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
2 changes: 2 additions & 0 deletions
2
tests/data/repos/standalone/WhitespaceCheck/BadWhitespaceCharacter/expected
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,2 @@ | ||
WhitespaceCheck/BadWhitespaceCharacter | ||
BadWhitespaceCharacter: version 0: bad whitespace character '\xa0' on line 8: '\tcd "${S}"/cpp ||\xa0die\n' |
11 changes: 11 additions & 0 deletions
11
tests/data/repos/standalone/WhitespaceCheck/BadWhitespaceCharacter/fix.patch
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,11 @@ | ||
diff -Naur standalone/WhitespaceCheck/BadWhitespaceCharacter/BadWhitespaceCharacter-0.ebuild fixed/WhitespaceCheck/BadWhitespaceCharacter/BadWhitespaceCharacter-0.ebuild | ||
--- standalone/WhitespaceCheck/BadWhitespaceCharacter/BadWhitespaceCharacter-0.ebuild 2019-12-02 18:58:31.312559463 -0700 | ||
+++ fixed/WhitespaceCheck/BadWhitespaceCharacter/BadWhitespaceCharacter-0.ebuild 2019-12-02 18:59:44.859861442 -0700 | ||
@@ -5,6 +5,6 @@ | ||
LICENSE="BSD" | ||
|
||
src_test() { | ||
- cd "${S}"/cpp || die | ||
+ cd "${S}"/cpp || die | ||
default | ||
} |
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
10 changes: 10 additions & 0 deletions
10
...s/repos/standalone/WhitespaceCheck/BadWhitespaceCharacter/BadWhitespaceCharacter-0.ebuild
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,10 @@ | ||
EAPI=7 | ||
DESCRIPTION="Ebuild uses bad whitespace character" | ||
HOMEPAGE="https://github.com/pkgcore/pkgcheck" | ||
SLOT="0" | ||
LICENSE="BSD" | ||
|
||
src_test() { | ||
cd "${S}"/cpp || die | ||
default | ||
} |