homplexity 0.4.7.0 → 0.4.8.0
raw patch · 3 files changed
+22/−14 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- app/Homplexity.hs +17/−12
- changelog.md +3/−0
- homplexity.cabal +2/−2
app/Homplexity.hs view
@@ -162,18 +162,23 @@ main :: IO () main = do args <- $initHFlags ("Homplexity " ++ versionString ++ " - automatic analysis of Haskell code quality")- when flags_version $- report $ unwords ["Version: ", versionString]-- if null args- then do report ("Use Haskell source file or directory as an argument, " ++- "or use --help to discover options.")- exitFailure- else do exts <- cabalExtensions- sums <- mapM (processFile exts) =<< concatMapM subTrees args- report $ unwords ["Correctly parsed", show $ length $ filter P.id sums,- "out of", show $ length sums,- "input files."]+ if flags_version+ then do report $ unwords ["Homplexity version: ", versionString]+ exitSuccess+ else if null args+ then do report ("Use Haskell source file or directory as an argument, " +++ "or use --help to discover options.")+ exitFailure+ else do exts <- cabalExtensions+ sums <- mapM (processFile exts) =<< concatMapM subTrees args+ let successes = length $ filter P.id sums+ totalFiles = length sums+ report $ unwords ["Correctly parsed", show successes,+ "out of", show totalFiles,+ "input files."]+ if (successes == totalFiles)+ then exitSuccess+ else exitFailure cabalExtensions :: IO [Extension] cabalExtensions
changelog.md view
@@ -1,5 +1,8 @@ Changelog =========+ 0.4.8.0 Mar 2020+ * Do not return error when version number is requested.+ 0.4.7.0 Mar 2020 * Fix revision string for building without Git repo.
homplexity.cabal view
@@ -4,10 +4,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: 9b7a4010118e557d9ed6c07e4c8969a49ea71a6772a5942598489c73c14bb3e0+-- hash: f8472e1a914bbffeef9e1f8273601569d32a34529e483de131a5399de76f1198 name: homplexity-version: 0.4.7.0+version: 0.4.8.0 synopsis: Haskell code quality tool description: Homplexity aims to measure code complexity, warning about fragments that might have higher defect probability