Showing 292 of 292 total issues
Redundant $ Open
Open
classD (sequence [ [t| $(conT $ mkName $ "Vec" ++ [toUpper c]) $(varT tvV) |] | c <- components])
- Read upRead up
- Exclude checks
Found
conT $ mkName
Perhaps
conT mkName
Redundant bracket Open
Open
unit <- (read . T.unpack) <$> getElementAttr "meter" unitElement
- Read upRead up
- Exclude checks
Found
(read . T.unpack) <$> getElementAttr "meter" unitElement
Perhaps
read . T.unpack <$> getElementAttr "meter" unitElement
Use camelCase Open
Open
data C_FFmpegScaler
- Read upRead up
- Exclude checks
Found
data C_FFmpegScaler
Perhaps
data CFFmpegScaler
Use camelCase Open
Open
data C_AVFrame
- Read upRead up
- Exclude checks
Found
data C_AVFrame
Perhaps
data CAVFrame
Reduce duplication Open
Open
checkPrefixed a "k" ["k1", "k2"]
- Read upRead up
- Exclude checks
Found
checkPrefixed a "k" ["k1", "k2"]
psp a
checkPrefixed a "k" ["k1", "k2"]
Perhaps
Combine with flaw-oil/test/repo-test.hs:271:5
Redundant bracket Open
Open
registerBasicOrdEntityType :: EntityManager -> EntityTypeId -> (GetEntity SomeBasicOrdEntity) -> IO ()
- Read upRead up
- Exclude checks
Found
(GetEntity SomeBasicOrdEntity) -> IO ()
Perhaps
GetEntity SomeBasicOrdEntity -> IO ()
Reduce duplication Open
Open
(albedoOcclusion, material, viewNormal, depth) <- deferredPipelineLightPassInput $ zw__ screenPositionTexcoord
- Read upRead up
- Exclude checks
Found
(albedoOcclusion, material, viewNormal,
depth) <- deferredPipelineLightPassInput $
zw__ screenPositionTexcoord
let albedo = xyz__ albedoOcclusion
diffuse = x_ material
specular = y_ material
metalness = zzz__ material
glossiness = w_ material
viewPositionH <- temp $
invProj `mul` cvec211 (xy__ screenPositionTexcoord) depth 1
viewPosition <- temp $ xyz__ viewPositionH / www__ viewPositionH
Perhaps
Combine with flaw-visual/Flaw/Visual/Pipeline/Deferred.hs:224:3
Use camelCase Open
Open
hb_codepoint = castPtr
- Read upRead up
- Exclude checks
Found
hb_codepoint = ...
Perhaps
hbCodepoint = ...
Use camelCase Open
Open
data C_AVPacket
- Read upRead up
- Exclude checks
Found
data C_AVPacket
Perhaps
data CAVPacket
Use camelCase Open
Open
type FN_vkFreeFunction = Ptr () -> Ptr () -> IO ()
- Read upRead up
- Exclude checks
Found
type FN_vkFreeFunction = Ptr () -> Ptr () -> IO ()
Perhaps
type FNVkFreeFunction = Ptr () -> Ptr () -> IO ()
Use camelCase Open
Open
type FN_vkCreateFramebuffer
= VkDevice
-> Ptr VkFramebufferCreateInfo
-> Ptr VkAllocationCallbacks
-> Ptr VkFramebuffer
- Read upRead up
- Exclude checks
Found
type FN_vkCreateFramebuffer =
VkDevice
-> Ptr VkFramebufferCreateInfo
-> Ptr VkAllocationCallbacks -> Ptr VkFramebuffer -> IO Word32
Perhaps
type FNVkCreateFramebuffer =
VkDevice
-> Ptr VkFramebufferCreateInfo
-> Ptr VkAllocationCallbacks -> Ptr VkFramebuffer -> IO Word32
Redundant bracket Open
Open
registerBasicEntityType :: EntityManager -> EntityTypeId -> (GetEntity SomeBasicEntity) -> IO ()
- Read upRead up
- Exclude checks
Found
(GetEntity SomeBasicEntity) -> IO ()
Perhaps
GetEntity SomeBasicEntity -> IO ()
Use camelCase Open
Open
data FT_LibraryRec
- Read upRead up
- Exclude checks
Found
data FT_LibraryRec
Perhaps
data FTLibraryRec
Redundant bracket Open
Open
unit <- (csUnit . ccSettings) <$> get
- Read upRead up
- Exclude checks
Found
(csUnit . ccSettings) <$> get
Perhaps
csUnit . ccSettings <$> get
Redundant bracket Open
Open
[ patSynSigD v (forallT [PlainTV a] (sequence [(conT ''Vectorized) `appT` (varT a)]) $ foldr (appT . (appT arrowT) . varT) ((conT v) `appT` (varT a)) (replicate dim a))
- Read upRead up
- Exclude checks
Found
(appT arrowT) . varT
Perhaps
appT arrowT . varT
Use uncurry Open
Open
forM_ (M.toList dirtyRecords) $ \(key, value) -> clientRepoChange clientRepo key value
- Read upRead up
- Exclude checks
Found
\ (key, value) -> clientRepoChange clientRepo key value
Perhaps
uncurry (clientRepoChange clientRepo)
Applying this change:
- increases laziness
Use newtype instead of data Open
Open
data AssetBuilderError ai
= AssetBuilderDuplicateAssetIdError ai
deriving Typeable
- Read upRead up
- Exclude checks
Found
data AssetBuilderError ai
= AssetBuilderDuplicateAssetIdError ai
deriving Typeable
Perhaps
newtype AssetBuilderError ai
= AssetBuilderDuplicateAssetIdError ai
deriving Typeable
Applying this change:
- decreases laziness
Use =<< Open
Open
join $ mapM_ snd <$> readIORef repeatOperationsRef
- Read upRead up
- Exclude checks
Found
join $ mapM_ snd <$> readIORef repeatOperationsRef
Perhaps
mapM_ snd =<< readIORef repeatOperationsRef
Redundant $ Open
Open
[ funD 'norm [clause [] (normalB $ [| sqrt . norm2 |]) []]
- Read upRead up
- Exclude checks
Found
normalB $ [| sqrt . norm2 |]
Perhaps
normalB [| sqrt . norm2 |]
Use camelCase Open
Open
type FN_vkDestroyPipeline
= VkDevice
-> VkPipeline
-> Ptr VkAllocationCallbacks
-> IO ()
- Read upRead up
- Exclude checks
Found
type FN_vkDestroyPipeline =
VkDevice -> VkPipeline -> Ptr VkAllocationCallbacks -> IO ()
Perhaps
type FNVkDestroyPipeline =
VkDevice -> VkPipeline -> Ptr VkAllocationCallbacks -> IO ()