Merge pull request #104 from m-ildefons/gh-95 #66
Annotations
13 warnings
|
hlint:
src/Language/Docker/Parser/Run.hs#L105
Suggestion in parseTypeFromArgs in module Language.Docker.Parser.Run: Redundant $ ▫︎ Found: "fail $ \"--mount with multiple `type` arguments\"" ▫︎ Perhaps: "fail \"--mount with multiple `type` arguments\""
|
|
hlint:
src/Language/Docker/Parser/Run.hs#L104
Suggestion in parseTypeFromArgs in module Language.Docker.Parser.Run: Redundant bracket ▫︎ Found: "[(MountArgType t)]" ▫︎ Perhaps: "[MountArgType t]"
|
|
hlint:
src/Language/Docker/Parser/Run.hs#L94
Suggestion in runFlagMount in module Language.Docker.Parser.Run: Move brackets to avoid $ ▫︎ Found: "SshMount <$> (secretMount $ filter (not . isMountArgType) args)" ▫︎ Perhaps: "SshMount <$> secretMount (filter (not . isMountArgType) args)"
|
|
hlint:
src/Language/Docker/Parser/Run.hs#L93
Suggestion in runFlagMount in module Language.Docker.Parser.Run: Move brackets to avoid $ ▫︎ Found: "SecretMount <$> (secretMount $ filter (not . isMountArgType) args)" ▫︎ Perhaps: "SecretMount <$> secretMount (filter (not . isMountArgType) args)"
|
|
hlint:
src/Language/Docker/Parser/Run.hs#L92
Suggestion in runFlagMount in module Language.Docker.Parser.Run: Move brackets to avoid $ ▫︎ Found: "TmpfsMount <$> (tmpfsMount $ filter (not . isMountArgType) args)" ▫︎ Perhaps: "TmpfsMount <$> tmpfsMount (filter (not . isMountArgType) args)"
|
|
hlint:
src/Language/Docker/Parser/Run.hs#L91
Suggestion in runFlagMount in module Language.Docker.Parser.Run: Move brackets to avoid $ ▫︎ Found: "CacheMount <$> (cacheMount $ filter (not . isMountArgType) args)" ▫︎ Perhaps: "CacheMount <$> cacheMount (filter (not . isMountArgType) args)"
|
|
hlint:
src/Language/Docker/Parser/Run.hs#L90
Suggestion in runFlagMount in module Language.Docker.Parser.Run: Move brackets to avoid $ ▫︎ Found: "BindMount <$> (bindMount $ filter (not . isMountArgType) args)" ▫︎ Perhaps: "BindMount <$> bindMount (filter (not . isMountArgType) args)"
|
|
hlint:
src/Language/Docker/Parser/Copy.hs#L39
Suggestion in parseCopy, parseAdd in module Language.Docker.Parser.Copy: Reduce duplication ▫︎ Found: "let cho\n = case chownFlags of\n [] -> NoChown\n c : _ -> c\nlet chm\n = case chmodFlags of\n [] -> NoChmod\n c : _ -> c\nlet lnk\n = case linkFlags of\n [] -> NoLink\n l : _ -> l\n" ▫︎ Perhaps: "Combine with src/Language/Docker/Parser/Copy.hs:(80,7)-(82,28)"
|
|
hlint:
src/Language/Docker/Parser/Copy.hs#L25
Suggestion in parseCopy, parseAdd in module Language.Docker.Parser.Copy: Reduce duplication ▫︎ Found: "let chownFlags = [c | FlagChown c <- flags]\nlet chmodFlags = [c | FlagChmod c <- flags]\nlet linkFlags = [l | FlagLink l <- flags]\n" ▫︎ Perhaps: "Combine with src/Language/Docker/Parser/Copy.hs:63:3-45"
|
|
hlint:
src/Language/Docker/PrettyPrint.hs#L293
Suggestion in prettyPrintInstruction in module Language.Docker.PrettyPrint: Reduce duplication ▫︎ Found: "prettyPrintChown chownFlag\nprettyPrintChmod chmodFlag\nprettyPrintLink linkFlag\n" ▫︎ Perhaps: "Combine with src/Language/Docker/PrettyPrint.hs:328:9-34"
|
|
hlint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
hlint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
|
hlint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|