Further hlint fixes
Commit 2cdaf225, “Re-enable standard hlint warnings”, got it almost right. The only problem is that (confusingly) the default set of hints is not in HLint.Default, but in HLint.HLint (it includes Default and some built-ins). After changing the lint file to correctly include the defaults, we had another 128 suggestions: - Error: Eta reduce (2) - Error: Redundant bracket (4) - Error: Redundant do (17) - Error: Redundant lambda (7) - Error: Redundant return (1) - Warning: Avoid lambda (2) - Warning: Redundant $ (42) - Warning: Redundant bracket (35) - Warning: Use : (1) - Warning: Use String (4) - Warning: Use camelCase (10) - Warning: Use section (3) which are fixed by the current patch. Note that the 10 "Use camelCase" were all due to hlint not “knowing” the idiom of ‘case_’ (it does for ‘prop_’), for which I filled http://code.google.com/p/ndmitchell/issues/detail?id=558 . Signed-off-by:Iustin Pop <iustin@google.com> Reviewed-by:
René Nussbaumer <rn@google.com>
Showing
- htest/Test/Ganeti/BasicTypes.hs 3 additions, 4 deletionshtest/Test/Ganeti/BasicTypes.hs
- htest/Test/Ganeti/Daemon.hs 3 additions, 1 deletionhtest/Test/Ganeti/Daemon.hs
- htest/Test/Ganeti/HTools/CLI.hs 4 additions, 2 deletionshtest/Test/Ganeti/HTools/CLI.hs
- htest/Test/Ganeti/HTools/Cluster.hs 9 additions, 7 deletionshtest/Test/Ganeti/HTools/Cluster.hs
- htest/Test/Ganeti/HTools/Node.hs 1 addition, 1 deletionhtest/Test/Ganeti/HTools/Node.hs
- htest/Test/Ganeti/HTools/Text.hs 1 addition, 1 deletionhtest/Test/Ganeti/HTools/Text.hs
- htest/Test/Ganeti/HTools/Utils.hs 4 additions, 4 deletionshtest/Test/Ganeti/HTools/Utils.hs
- htest/Test/Ganeti/Luxi.hs 7 additions, 7 deletionshtest/Test/Ganeti/Luxi.hs
- htest/Test/Ganeti/Objects.hs 7 additions, 5 deletionshtest/Test/Ganeti/Objects.hs
- htest/Test/Ganeti/OpCodes.hs 3 additions, 1 deletionhtest/Test/Ganeti/OpCodes.hs
- htest/Test/Ganeti/Query/Language.hs 2 additions, 2 deletionshtest/Test/Ganeti/Query/Language.hs
- htest/Test/Ganeti/Query/Query.hs 3 additions, 1 deletionhtest/Test/Ganeti/Query/Query.hs
- htest/Test/Ganeti/TestCommon.hs 1 addition, 1 deletionhtest/Test/Ganeti/TestCommon.hs
- htest/Test/Ganeti/TestHelper.hs 2 additions, 2 deletionshtest/Test/Ganeti/TestHelper.hs
- htools/Ganeti/Common.hs 2 additions, 2 deletionshtools/Ganeti/Common.hs
- htools/Ganeti/Confd.hs 1 addition, 1 deletionhtools/Ganeti/Confd.hs
- htools/Ganeti/Confd/Server.hs 5 additions, 5 deletionshtools/Ganeti/Confd/Server.hs
- htools/Ganeti/Confd/Utils.hs 1 addition, 1 deletionhtools/Ganeti/Confd/Utils.hs
- htools/Ganeti/Config.hs 4 additions, 4 deletionshtools/Ganeti/Config.hs
- htools/Ganeti/Daemon.hs 13 additions, 14 deletionshtools/Ganeti/Daemon.hs
Loading
Please register or sign in to comment