Showing 292 of 292 total issues
Redundant bracket Open
Open
return $ (bindS (varP f) [| readMutVar $(r a) |]) : getArgsStmts ++ [noBindS callE]
- Read upRead up
- Exclude checks
Found
(bindS (varP f) [| readMutVar $( r a ) |]) :
getArgsStmts ++ [noBindS callE]
Perhaps
bindS (varP f) [| readMutVar $( r a ) |] :
getArgsStmts ++ [noBindS callE]
Use camelCase Open
Open
newtype JS_WebGLSampler = JS_WebGLSampler JSVal
- Read upRead up
- Exclude checks
Found
newtype JS_WebGLSampler = JS_WebGLSampler JSVal
Perhaps
newtype JSWebGLSampler = JSWebGLSampler JSVal
Use camelCase Open
Open
glShaderSource_s :: JS_WebGLShader -> T.Text -> IO ()
- Read upRead up
- Exclude checks
Found
glShaderSource_s :: JS_WebGLShader -> T.Text -> IO ()
Perhaps
glShaderSourceS :: JS_WebGLShader -> T.Text -> IO ()
Use camelCase Open
Open
glGetUniformLocation_s :: JS_WebGLProgram -> T.Text -> IO JS_WebGLUniformLocation
- Read upRead up
- Exclude checks
Found
glGetUniformLocation_s ::
JS_WebGLProgram -> T.Text -> IO JS_WebGLUniformLocation
Perhaps
glGetUniformLocationS ::
JS_WebGLProgram -> T.Text -> IO JS_WebGLUniformLocation
Use camelCase Open
Open
glGetUniformBlockIndex_s programName uniformBlockName = glGetUniformBlockIndex_val programName $ pToJSVal uniformBlockName
- Read upRead up
- Exclude checks
Found
glGetUniformBlockIndex_s programName uniformBlockName = ...
Perhaps
glGetUniformBlockIndexS programName uniformBlockName = ...
Redundant bracket Open
Open
(map (\a -> [| nodeValueType $(varE a) |]) ps) ++ [ [| valueType $(varE u) |] ] ++ (map varE ps)
- Read upRead up
- Exclude checks
Found
(map (\ a -> [| nodeValueType $( varE a ) |]) ps) ++
[[| valueType $( varE u ) |]] ++ (map varE ps)
Perhaps
map (\ a -> [| nodeValueType $( varE a ) |]) ps ++
[[| valueType $( varE u ) |]] ++ (map varE ps)
Redundant $ Open
Open
[ funD (mkName $ [c, '_']) [clause [] (normalB [| ComponentNode (valueType (undefined :: $(varT v))) (valueType (undefined :: VecElement $(varT v))) $(litE $ charL c) |]) []]
- Read upRead up
- Exclude checks
Found
mkName $ [c, '_']
Perhaps
mkName [c, '_']
Redundant bracket Open
Open
return $ (noBindS [| do
step <- readMutVar $(r $ a + 2)
idx <- readMutVar $(r a)
writeMutVar $(r a) =<< luaValueSub idx step
|]) : followingInstStmts
- Read upRead up
- Exclude checks
Found
(noBindS
[|
do step <- readMutVar $( r $ a + 2 )
idx <- readMutVar $( r a )
writeMutVar $( r a ) =<< luaValueSub idx step
|])
: followingInstStmts
Perhaps
noBindS
[|
do step <- readMutVar $( r $ a + 2 )
idx <- readMutVar $( r a )
writeMutVar $( r a ) =<< luaValueSub idx step
|]
: followingInstStmts
Use camelCase Open
Open
lua_pop :: Ptr C_lua_State -> CInt -> IO ()
- Read upRead up
- Exclude checks
Found
lua_pop :: Ptr C_lua_State -> CInt -> IO ()
Perhaps
luaPop :: Ptr C_lua_State -> CInt -> IO ()
Use list comprehension Open
Open
otherShaderInfos = concatMap (\(otherStage, otherShaderInfo) -> if otherStage == stage then [] else [otherShaderInfo]) shaders
- Read upRead up
- Exclude checks
Found
if otherStage == stage then [] else [otherShaderInfo]
Perhaps
[otherShaderInfo | not (otherStage == stage)]
Reduce duplication Open
Open
bufferName <- glAllocBufferName
- Read upRead up
- Exclude checks
Found
bufferName <- glAllocBufferName
glBindBuffer GL_ARRAY_BUFFER bufferName
glCheckErrors0 "bind buffer"
Perhaps
Combine with flaw-gl/Flaw/Graphics/GlContext.hs:583:5
Use camelCase Open
Open
glBindAttribLocation_s program index attributeName = glBindAttribLocation_val program index $ pToJSVal attributeName
- Read upRead up
- Exclude checks
Found
glBindAttribLocation_s program index attributeName = ...
Perhaps
glBindAttribLocationS program index attributeName = ...
Use camelCase Open
Open
glBufferData_bs target bytes usage = glBufferData_val target (byteStringToJsDataView bytes) usage
- Read upRead up
- Exclude checks
Found
glBufferData_bs target bytes usage = ...
Perhaps
glBufferDataBs target bytes usage = ...
Use camelCase Open
Open
type MDB_dbi = CUInt
- Read upRead up
- Exclude checks
Found
type MDB_dbi = CUInt
Perhaps
type MDBDbi = CUInt
Use camelCase Open
Open
type MDB_val = Ptr CChar
- Read upRead up
- Exclude checks
Found
type MDB_val = Ptr CChar
Perhaps
type MDBVal = Ptr CChar
Fuse foldr/map Open
Open
foldr (\a b -> [t| $a -> $b |]) [t| Node $(vecType $ sum cs) |] $ map argType cs
- Read upRead up
- Exclude checks
Found
foldr (\ a b -> [t| $a -> $b |]) [t| Node $( vecType $ sum cs ) |]
$ map argType cs
Perhaps
foldr ((\ a b -> [t| $a -> $b |]) . argType)
[t| Node $( vecType $ sum cs ) |]
cs
Redundant bracket Open
Open
return $ (noBindS [| writeMutVar $(r a) $(kst nax) |]) : nextNextInstStmts
- Read upRead up
- Exclude checks
Found
(noBindS [| writeMutVar $( r a ) $( kst nax ) |]) :
nextNextInstStmts
Perhaps
noBindS [| writeMutVar $( r a ) $( kst nax ) |] : nextNextInstStmts
Use camelCase Open
Open
data C_lua_State
- Read upRead up
- Exclude checks
Found
data C_lua_State
Perhaps
data CLuaState
Use camelCase Open
Open
hb_glyph_info_t_size :: Int
- Read upRead up
- Exclude checks
Found
hb_glyph_info_t_size :: Int
Perhaps
hbGlyphInfoTSize :: Int
Use camelCase Open
Open
type FT_Face = Ptr FT_FaceRec
- Read upRead up
- Exclude checks
Found
type FT_Face = Ptr FT_FaceRec
Perhaps
type FTFace = Ptr FT_FaceRec