You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
111 lines
4.3 KiB
111 lines
4.3 KiB
10 years ago
|
diff -up ShellCheck-0.3.4/ShellCheck.cabal.orig ShellCheck-0.3.4/ShellCheck.cabal
|
||
|
--- ShellCheck-0.3.4/ShellCheck.cabal.orig 2014-07-09 10:52:01.000000000 +0900
|
||
|
+++ ShellCheck-0.3.4/ShellCheck.cabal 2014-11-06 19:34:50.761660370 +0900
|
||
|
@@ -41,8 +41,7 @@ library
|
||
|
json,
|
||
|
mtl,
|
||
|
parsec,
|
||
|
- regex-compat,
|
||
|
- QuickCheck >= 2.2
|
||
|
+ regex-compat
|
||
|
exposed-modules:
|
||
|
ShellCheck.Analytics
|
||
|
ShellCheck.AST
|
||
|
@@ -61,8 +60,7 @@ executable shellcheck
|
||
|
json,
|
||
|
mtl,
|
||
|
parsec,
|
||
|
- regex-compat,
|
||
|
- QuickCheck >= 2.2
|
||
|
+ regex-compat
|
||
|
main-is: shellcheck.hs
|
||
|
|
||
|
test-suite test-shellcheck
|
||
|
diff -up ShellCheck-0.3.4/ShellCheck/Analytics.hs.orig ShellCheck-0.3.4/ShellCheck/Analytics.hs
|
||
|
--- ShellCheck-0.3.4/ShellCheck/Analytics.hs.orig 2014-07-09 10:52:01.000000000 +0900
|
||
|
+++ ShellCheck-0.3.4/ShellCheck/Analytics.hs 2014-11-06 19:30:25.675907927 +0900
|
||
11 years ago
|
@@ -15,8 +15,7 @@
|
||
|
You should have received a copy of the GNU Affero General Public License
|
||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
-}
|
||
|
-{-# LANGUAGE TemplateHaskell #-}
|
||
|
-module ShellCheck.Analytics (AnalysisOption(..), filterByAnnotation, runAnalytics, shellForExecutable, runTests) where
|
||
|
+module ShellCheck.Analytics (AnalysisOption(..), filterByAnnotation, runAnalytics, shellForExecutable) where
|
||
|
|
||
|
import Control.Arrow (first)
|
||
|
import Control.Monad
|
||
10 years ago
|
@@ -33,7 +32,6 @@ import ShellCheck.Data
|
||
|
import ShellCheck.Parser hiding (runTests)
|
||
|
import Text.Regex
|
||
|
import qualified Data.Map as Map
|
||
|
-import Test.QuickCheck.All (quickCheckAll)
|
||
|
|
||
|
data Shell = Ksh | Zsh | Sh | Bash
|
||
|
deriving (Show, Eq)
|
||
|
@@ -2879,7 +2877,3 @@ checkFindActionPrecedence params = check
|
||
11 years ago
|
param <- getLiteralString t
|
||
|
return $ param `elem` strs
|
||
|
warnFor t = warn (getId t) 2146 "This action ignores everything before the -o. Use \\( \\) to group."
|
||
|
-
|
||
|
-return []
|
||
|
-runTests = $quickCheckAll
|
||
|
-
|
||
10 years ago
|
diff -up ShellCheck-0.3.4/ShellCheck/Parser.hs.orig ShellCheck-0.3.4/ShellCheck/Parser.hs
|
||
|
--- ShellCheck-0.3.4/ShellCheck/Parser.hs.orig 2014-07-09 10:52:01.000000000 +0900
|
||
|
+++ ShellCheck-0.3.4/ShellCheck/Parser.hs 2014-11-06 19:30:34.103931850 +0900
|
||
11 years ago
|
@@ -15,8 +15,8 @@
|
||
|
You should have received a copy of the GNU Affero General Public License
|
||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
-}
|
||
|
-{-# LANGUAGE NoMonomorphismRestriction, TemplateHaskell #-}
|
||
|
-module ShellCheck.Parser (Note(..), Severity(..), parseShell, ParseResult(..), ParseNote(..), sortNotes, noteToParseNote, runTests) where
|
||
|
+{-# LANGUAGE NoMonomorphismRestriction #-}
|
||
|
+module ShellCheck.Parser (Note(..), Severity(..), parseShell, ParseResult(..), ParseNote(..), sortNotes, noteToParseNote) where
|
||
|
|
||
|
import ShellCheck.AST
|
||
|
import ShellCheck.Data
|
||
10 years ago
|
@@ -33,7 +33,6 @@ import Prelude hiding (readList)
|
||
|
import System.IO
|
||
|
import Text.Parsec.Error
|
||
|
import GHC.Exts (sortWith)
|
||
|
-import Test.QuickCheck.All (quickCheckAll)
|
||
|
|
||
|
backslash = char '\\'
|
||
|
linefeed = optional carriageReturn >> char '\n'
|
||
|
@@ -2093,7 +2092,3 @@ parseShell filename contents =
|
||
11 years ago
|
|
||
|
lt x = trace (show x) x
|
||
|
ltt t = trace (show t)
|
||
|
-
|
||
|
-return []
|
||
|
-runTests = $quickCheckAll
|
||
|
-
|
||
10 years ago
|
diff -up ShellCheck-0.3.4/ShellCheck/Simple.hs.orig ShellCheck-0.3.4/ShellCheck/Simple.hs
|
||
|
--- ShellCheck-0.3.4/ShellCheck/Simple.hs.orig 2014-07-09 10:52:01.000000000 +0900
|
||
|
+++ ShellCheck-0.3.4/ShellCheck/Simple.hs 2014-11-06 19:30:46.321966530 +0900
|
||
|
@@ -15,15 +15,13 @@
|
||
11 years ago
|
You should have received a copy of the GNU Affero General Public License
|
||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||
|
-}
|
||
|
-{-# LANGUAGE TemplateHaskell #-}
|
||
|
-module ShellCheck.Simple (shellCheck, ShellCheckComment, scLine, scColumn, scSeverity, scCode, scMessage, runTests) where
|
||
|
+module ShellCheck.Simple (shellCheck, ShellCheckComment, scLine, scColumn, scSeverity, scCode, scMessage) where
|
||
|
|
||
|
import ShellCheck.Parser hiding (runTests)
|
||
|
import ShellCheck.Analytics hiding (runTests)
|
||
|
import Data.Maybe
|
||
|
import Text.Parsec.Pos
|
||
|
import Data.List
|
||
|
-import Test.QuickCheck.All (quickCheckAll)
|
||
|
|
||
|
shellCheck :: String -> [AnalysisOption] -> [ShellCheckComment]
|
||
|
shellCheck script options =
|
||
10 years ago
|
@@ -66,7 +64,3 @@ prop_commentDisablesAnalysisIssue1 =
|
||
11 years ago
|
null $ shellCheck "#shellcheck disable=SC2086\necho $1" []
|
||
|
prop_commentDisablesAnalysisIssue2 =
|
||
|
null $ shellCheck "#shellcheck disable=SC2086\n#lol\necho $1" []
|
||
|
-
|
||
|
-return []
|
||
|
-runTests = $quickCheckAll
|
||
|
-
|