mirror of
https://github.com/koalaman/shellcheck
synced 2025-07-14 17:13:08 -07:00
Allow specifying external-sources=true in shellcheckrc (fixes #1818)
This commit is contained in:
parent
64733cc110
commit
4e703e5c61
12 changed files with 145 additions and 31 deletions
|
@ -117,7 +117,7 @@ collectResult ref cr sys = mapM_ f groups
|
|||
f :: [PositionedComment] -> IO ()
|
||||
f group = do
|
||||
let filename = sourceFile (head group)
|
||||
result <- siReadFile sys filename
|
||||
result <- siReadFile sys (Just True) filename
|
||||
let contents = either (const "") id result
|
||||
let comments' = makeNonVirtual comments contents
|
||||
modifyIORef ref (\x -> comments' ++ x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue