forked from koalaman/shellcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an empty Custom.hs to simplify site-specific patching
- Loading branch information
Showing
5 changed files
with
27 additions
and
0 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{- | ||
This empty file is provided for ease of patching in site specific checks. | ||
However, there are no guarantees regarding compatibility between versions. | ||
-} | ||
|
||
{-# LANGUAGE TemplateHaskell #-} | ||
module ShellCheck.Checks.Custom (checker, ShellCheck.Checks.Custom.runTests) where | ||
|
||
import ShellCheck.AnalyzerLib | ||
import Test.QuickCheck | ||
|
||
checker :: Parameters -> Checker | ||
checker params = Checker { | ||
perScript = const $ return (), | ||
perToken = const $ return () | ||
} | ||
|
||
prop_CustomTestsWork = True | ||
|
||
return [] | ||
runTests = $quickCheckAll |
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