Showing 292 of 292 total issues
Use camelCase Open
Open
lua_pop s n = lua_settop s ((-1) - n)
- Read upRead up
- Exclude checks
Found
lua_pop s n = ...
Perhaps
luaPop s n = ...
Reduce duplication Open
Open
av <- $(embedIOExp a)
- Read upRead up
- Exclude checks
Found
av <- $( embedIOExp a )
bv <- $( embedIOExp b )
cv <- $( embedIOExp c )
Perhaps
Combine with flaw-build/Flaw/Build.hs:133:5
Use camelCase Open
Open
glShaderSource_s :: GLuint -> T.Text -> IO ()
- Read upRead up
- Exclude checks
Found
glShaderSource_s :: GLuint -> T.Text -> IO ()
Perhaps
glShaderSourceS :: GLuint -> T.Text -> IO ()
Use camelCase Open
Open
newtype JS_WebGLBuffer = JS_WebGLBuffer JSVal
- Read upRead up
- Exclude checks
Found
newtype JS_WebGLBuffer = JS_WebGLBuffer JSVal
Perhaps
newtype JSWebGLBuffer = JSWebGLBuffer JSVal
Reduce duplication Open
Open
position <- peek $ castPtr positionPtr
- Read upRead up
- Exclude checks
Found
position <- peek $ castPtr positionPtr
orientation <- peek $ castPtr orientationPtr
return $ QuatOffset (FloatQ orientation) position
Perhaps
Combine with flaw-bullet/Flaw/Physics/Bullet.hs:81:5
Use camelCase Open
Open
lua_tostring :: Ptr C_lua_State -> CInt -> IO (Ptr CChar)
- Read upRead up
- Exclude checks
Found
lua_tostring :: Ptr C_lua_State -> CInt -> IO (Ptr CChar)
Perhaps
luaTostring :: Ptr C_lua_State -> CInt -> IO (Ptr CChar)
Use camelCase Open
Open
lua_tostring s i = lua_tolstring s i nullPtr
- Read upRead up
- Exclude checks
Found
lua_tostring s i = ...
Perhaps
luaTostring s i = ...
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)]
Use camelCase Open
Open
glGetProgramInfoLog_s program = pFromJSVal <$> glGetProgramInfoLog_val program
- Read upRead up
- Exclude checks
Found
glGetProgramInfoLog_s program = ...
Perhaps
glGetProgramInfoLogS program = ...
Redundant bracket Open
Open
| n <= s || s >= (sizeOf (undefined :: Float4)) = s
- Read upRead up
- Exclude checks
Found
s >= (sizeOf (undefined :: Float4))
Perhaps
s >= sizeOf (undefined :: Float4)
Use camelCase Open
Open
data C_BulletCharacter
- Read upRead up
- Exclude checks
Found
data C_BulletCharacter
Perhaps
data CBulletCharacter
Reduce duplication Open
Open
size <- readTVar sizeVar
- Read upRead up
- Exclude checks
Found
size <- readTVar sizeVar
let Vec2 sx sy = size
return $ x < sx && y < sy
Perhaps
Combine with flaw-ui/Flaw/UI/Frame.hs:228:7
Reduce duplication Open
Open
glGetProgramiv programName GL_LINK_STATUS statusPtr
- Read upRead up
- Exclude checks
Found
glGetProgramiv programName GL_LINK_STATUS statusPtr
glCheckErrors0 "get program link status"
peek statusPtr
Perhaps
Combine with flaw-gl/Flaw/Graphics/GlContext.hs:737:9
Use camelCase Open
Open
glBufferData_bs target bytes usage = B.unsafeUseAsCStringLen bytes $ \(bytesPtr, bytesLen) ->
glBufferData target (fromIntegral bytesLen) bytesPtr usage
- Read upRead up
- Exclude checks
Found
glBufferData_bs target bytes usage = ...
Perhaps
glBufferDataBs target bytes usage = ...
Use camelCase Open
Open
glBufferData_null target size usage = glBufferData target size nullPtr usage
- Read upRead up
- Exclude checks
Found
glBufferData_null target size usage = ...
Perhaps
glBufferDataNull target size usage = ...
Use camelCase Open
Open
glGetProgramInfoLog_s programName = do
logLength <- alloca $ \logLengthPtr -> do
glGetProgramiv programName GL_INFO_LOG_LENGTH logLengthPtr
peek logLengthPtr
fmap T.decodeUtf8 $ allocaBytes (fromIntegral logLength) $ \logPtr -> do
- Read upRead up
- Exclude checks
Found
glGetProgramInfoLog_s programName = ...
Perhaps
glGetProgramInfoLogS programName = ...
Use camelCase Open
Open
glGetShaderInfoLog_s shaderName = do
logLength <- alloca $ \logLengthPtr -> do
poke logLengthPtr 0
glGetShaderiv shaderName GL_INFO_LOG_LENGTH logLengthPtr
peek logLengthPtr
- Read upRead up
- Exclude checks
Found
glGetShaderInfoLog_s shaderName = ...
Perhaps
glGetShaderInfoLogS shaderName = ...
Use camelCase Open
Open
newtype JS_WebGLShader = JS_WebGLShader JSVal
- Read upRead up
- Exclude checks
Found
newtype JS_WebGLShader = JS_WebGLShader JSVal
Perhaps
newtype JSWebGLShader = JSWebGLShader JSVal
Avoid lambda Open
Open
valueToShowList $(conP name $ map varP ps) = $(listE $ map (\p -> appE (varE 'show) $ varE p) ps)
- Read upRead up
- Exclude checks
Found
\ p -> appE (varE 'show) $ varE p
Perhaps
appE (varE 'show) . varE