@@ -44,7 +44,7 @@ import Fossa.API.Types (ApiKey (..), ApiOpts (..))
4444import Path (Abs , Dir , File , Path , toFilePath )
4545import Srclib.Types (Locator (.. ), renderLocator )
4646import Text.URI (render )
47- import Text.URI.Builder (PathComponent ( .. ), TrailingSlash ( .. ), setPath )
47+ import Text.URI.Builder ()
4848import Types (GlobFilter (.. ), LicenseScanPathFilters (.. ))
4949import Prelude hiding (unwords )
5050
@@ -137,9 +137,14 @@ runFicus ficusConfig = do
137137 let messages = parseFicusJson result Nothing
138138
139139 -- Log summary of results
140- logDebug $ " Ficus returned " <> pretty (length $ ficusMessageErrors messages) <> " errors, "
141- <> pretty (length $ ficusMessageDebugs messages) <> " debug messages, "
142- <> pretty (length $ ficusMessageFindings messages) <> " findings"
140+ logDebug $
141+ " Ficus returned "
142+ <> pretty (length $ ficusMessageErrors messages)
143+ <> " errors, "
144+ <> pretty (length $ ficusMessageDebugs messages)
145+ <> " debug messages, "
146+ <> pretty (length $ ficusMessageFindings messages)
147+ <> " findings"
143148
144149 -- Handle errors - log them as warnings instead of fatal errors
145150 -- Many ficus errors are expected (like binary file detection) and shouldn't stop analysis
@@ -168,11 +173,12 @@ ficusCommand ficusConfig bin = do
168173 Just baseUri -> do
169174 pure $ render baseUri
170175 Nothing -> pure " "
171- pure $ Command
172- { cmdName = toText $ toPath bin
173- , cmdArgs = configArgs endpoint
174- , cmdAllowErr = Never
175- }
176+ pure $
177+ Command
178+ { cmdName = toText $ toPath bin
179+ , cmdArgs = configArgs endpoint
180+ , cmdAllowErr = Never
181+ }
176182 where
177183 configArgs endpoint = [" analyze" , " --secret" , secret, " --endpoint" , endpoint, " --locator" , locator, " --set" , " all:skip-hidden-files" , " --set" , " all:gitignore" ] ++ configExcludes ++ [targetDir]
178184 targetDir = toText $ toFilePath $ ficusConfigRootDir ficusConfig
0 commit comments