Skip to content

feature(readme): add readme.md #141

feature(readme): add readme.md

feature(readme): add readme.md #141

Triggered via pull request January 14, 2024 22:42
Status Failure
Total duration 1m 57s
Artifacts

Tests.yml

on: pull_request
check_compilation
1m 48s
check_compilation
check_style
10s
check_style
run_tests
0s
run_tests
Fit to window
Zoom out
Zoom in

Annotations

4 errors and 10 warnings
check_style: LobsterLang/app/Main.hs#L76
Error: Parse error: possibly incorrect indentation or mismatched brackets ▫︎ Found: " checkArgs (\"-e\":file:_) = CompiletoVm.makeConvert file\n >>= \\instructions -> trace (\"instructions to execute\" ++ show instructions) print (Vm.exec 0 [] [] instructions []\n> checkArgs (file:_) = either\n (\\_ -> print \"File doesn't exist\" >> exitWith (ExitFailure 84))\n -- (compileLobster file)\n"
check_style
HLint failed with status: 1. Error (1), Suggestion (16)
check_compilation: LobsterLang/app/Main.hs#L76
parse error (possibly incorrect indentation or mismatched brackets)
check_compilation
Process completed with exit code 2.
check_style: LobsterLang/src/CompiletoVm.hs#L108
Suggestion in getFnv in module CompiletoVm: Redundant bracket ▫︎ Found: "case\n (decodeOrFail byteString ::\n Either (BIN.ByteString, ByteOffset, String) (BIN.ByteString,\n ByteOffset, Int32))\nof\n Left _ -> (inst, byteString)\n Right (nByteString, _, val)\n -> (getFnv\n 0 byteStringAfterInst\n (inst\n ++\n [Vm.Push\n (Vm.Function\n functionInstruction (fromIntegral (val :: Int32) :: Int))]))\n where\n nbinstruction\n = case\n (decodeOrFail nByteString ::\n Either (BIN.ByteString, ByteOffset, String) (BIN.ByteString,\n ByteOffset, Int32))\n of\n Left _ -> 0\n Right (_, _, valu) -> (fromIntegral (valu :: Int32) :: Int)\n byteStringafterNbInst\n = case\n (decodeOrFail nByteString ::\n Either (BIN.ByteString, ByteOffset, String) (BIN.ByteString,\n ByteOffset, Int32))\n of\n Left _ -> nByteString\n Right (afterNbInst, _, _) -> afterNbInst\n functionInstruction\n = trace\n (\"fucntion instruction: \" ++ show nbinstruction) fst\n (getInstructionFunc nbinstruction byteStringafterNbInst [])\n byteStringAfterInst\n = snd (getInstructionFunc nbinstruction byteStringafterNbInst [])" ▫︎ Perhaps: "case\n (decodeOrFail byteString ::\n Either (BIN.ByteString, ByteOffset, String) (BIN.ByteString,\n ByteOffset, Int32))\nof\n Left _ -> (inst, byteString)\n Right (nByteString, _, val)\n -> getFnv\n 0 byteStringAfterInst\n (inst\n ++\n [Vm.Push\n (Vm.Function\n functionInstruction (fromIntegral (val :: Int32) :: Int))])\n where\n nbinstruction\n = case\n (decodeOrFail nByteString ::\n Either (BIN.ByteString, ByteOffset, String) (BIN.ByteString,\n ByteOffset, Int32))\n of\n Left _ -> 0\n Right (_, _, valu) -> (fromIntegral (valu :: Int32) :: Int)\n byteStringafterNbInst\n = case\n (decodeOrFail nByteString ::\n Either (BIN.ByteString, ByteOffset, String) (BIN.ByteString,\n ByteOffset, Int32))\n of\n Left _ -> nByteString\n Right (afterNbInst, _, _) -> afterNbInst\n functionInstruction\n = trace\n (\"fucntion instruction: \" ++ show nbinstruction) fst\n (getInstructionFunc nbinstruction byteStringafterNbInst [])\n byteStringAfterInst\n = snd (getInstructionFunc nbinstruction byteStringafterNbInst [])"
check_style: LobsterLang/src/CompiletoVm.hs#L128
Suggestion in getArg in module CompiletoVm: Redundant bracket ▫︎ Found: "[(Vm.Push (IntVal (fromIntegral (val :: Int32) :: Int)))]" ▫︎ Perhaps: "[Vm.Push (IntVal (fromIntegral (val :: Int32) :: Int))]"
check_style: LobsterLang/src/CompiletoVm.hs#L142
Suggestion in getArg in module CompiletoVm: Redundant bracket ▫︎ Found: "(fst (getList (fromIntegral (lenList :: Int32) :: Int) remfile []))\n ++ [Vm.PushList (fromIntegral (lenList :: Int32) :: Int)]" ▫︎ Perhaps: "fst (getList (fromIntegral (lenList :: Int32) :: Int) remfile [])\n ++ [Vm.PushList (fromIntegral (lenList :: Int32) :: Int)]"
check_style: LobsterLang/src/CompiletoVm.hs#L147
Suggestion in getArg in module CompiletoVm: Use record patterns ▫︎ Found: "Compiler.Fnv _ _ _ _ _ _" ▫︎ Perhaps: "Compiler.Fnv {}"
check_style: LobsterLang/src/CompiletoVm.hs#L147
Suggestion in getArg in module CompiletoVm: Redundant bracket ▫︎ Found: "inst ++ (fst (getFnv (- 1) remainingfile []))" ▫︎ Perhaps: "inst ++ fst (getFnv (- 1) remainingfile [])"
check_style: LobsterLang/src/CompiletoVm.hs#L157
Suggestion in getInstructionFunc in module CompiletoVm: Redundant bracket ▫︎ Found: "[(Vm.Push (IntVal (fromIntegral (val :: Int32) :: Int)))]" ▫︎ Perhaps: "[Vm.Push (IntVal (fromIntegral (val :: Int32) :: Int))]"
check_style: LobsterLang/src/CompiletoVm.hs#L171
Suggestion in getInstructionFunc in module CompiletoVm: Redundant bracket ▫︎ Found: "(fst (getList (fromIntegral (lenList :: Int32) :: Int) remfile []))\n ++ [Vm.PushList (fromIntegral (lenList :: Int32) :: Int)]" ▫︎ Perhaps: "fst (getList (fromIntegral (lenList :: Int32) :: Int) remfile [])\n ++ [Vm.PushList (fromIntegral (lenList :: Int32) :: Int)]"
check_style: LobsterLang/src/CompiletoVm.hs#L202
Suggestion in getInstructionFunc in module CompiletoVm: Redundant bracket ▫︎ Found: "inst ++ (fst (getFnv (- 1) remainingfile []))" ▫︎ Perhaps: "inst ++ fst (getFnv (- 1) remainingfile [])"
check_style: LobsterLang/src/CompiletoVm.hs#L213
Suggestion in getDefinedValue in module CompiletoVm: Redundant bracket ▫︎ Found: "[(Vm.Push (IntVal (fromIntegral (val :: Int32) :: Int)))]" ▫︎ Perhaps: "[Vm.Push (IntVal (fromIntegral (val :: Int32) :: Int))]"
check_style: LobsterLang/src/CompiletoVm.hs#L227
Suggestion in getDefinedValue in module CompiletoVm: Redundant bracket ▫︎ Found: "(fst (getList (fromIntegral (lenList :: Int32) :: Int) remfile []))\n ++ [Vm.PushList (fromIntegral (lenList :: Int32) :: Int)]" ▫︎ Perhaps: "fst (getList (fromIntegral (lenList :: Int32) :: Int) remfile [])\n ++ [Vm.PushList (fromIntegral (lenList :: Int32) :: Int)]"