-
-
Notifications
You must be signed in to change notification settings - Fork 362
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skip circleci] Rename hlint test data files and add regression tests (…
…#2321) * Rename test data files * Add regression tests * Add regression test for #1279 * Use timeout * Correct waitForProgressDone in ghcide * Remove unnecessary waitForDiagnostics * Mark test broken for hlint on ghclib * Add test over unused extensions * Add test for #2042 * Add data for #2280 * Use waitForAllProgressDone * Add test for #2280 * correct module name * Add reproduction for #2290 * Correct test case * Comment about knownBrokenForHlint* * Correction
- Loading branch information
Showing
28 changed files
with
132 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...lint-plugin/test/testdata/ApplyRefact6.hs → ...ls-hlint-plugin/test/testdata/Comments.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
-- comment before header | ||
module ApplyRefact6 where | ||
module Comments where | ||
|
||
{-# standalone annotation #-} | ||
|
||
|
2 changes: 1 addition & 1 deletion
2
...lint-plugin/test/testdata/ApplyRefact3.hs → ...hls-hlint-plugin/test/testdata/CppCond.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{-# LANGUAGE CPP #-} | ||
module ApplyRefact3 where | ||
module CppCond where | ||
|
||
#ifdef FLAG | ||
f = (1) | ||
|
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...lint-plugin/test/testdata/ApplyRefact4.hs → ...s-hlint-plugin/test/testdata/IgnoreAnn.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module ApplyRefact4 where | ||
module IgnoreAnn where | ||
|
||
{-# ANN module "HLint: ignore Redundant bracket" #-} | ||
f = (1) | ||
|
2 changes: 1 addition & 1 deletion
2
...lint-plugin/test/testdata/ApplyRefact5.hs → ...nt-plugin/test/testdata/IgnoreAnnHlint.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module ApplyRefact5 where | ||
module IgnoreHlintAnn where | ||
|
||
{- HLINT ignore "Redundant bracket" -} | ||
f = (1) | ||
|
2 changes: 1 addition & 1 deletion
2
...lint-plugin/test/testdata/ApplyRefact1.hs → ...-hlint-plugin/test/testdata/LambdaCase.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{-# LANGUAGE LambdaCase #-} | ||
module ApplyRefact1 where | ||
module LambdaCase where | ||
|
||
f = \case "true" -> (True) | ||
_ -> False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module Foo (pattern) where | ||
|
||
pattern = 42 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{-# LANGUAGE Strict #-} | ||
f ~x = x |
1 change: 0 additions & 1 deletion
1
...lint-plugin/test/testdata/ApplyRefact8.hs → ...ls-hlint-plugin/test/testdata/TwoHints.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
f = (1) | ||
g = (1) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module TwoHintsAndComment where | ||
biggest items = foldr1 max items -- the line above will show two hlint hints, "eta reduce" and "use maximum" |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...-plugin/test/testdata/cpp/ApplyRefact2.hs → ...int-plugin/test/testdata/cpp/CppHeader.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module ApplyRefact2 where | ||
module CppHeader where | ||
|
||
#include "test.h" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,5 @@ cradle: | |
arguments: | ||
- "-XCPP" | ||
- "-DFLAG" | ||
- "ApplyRefact3" | ||
- "ApplyRefact2" | ||
- "CppCond" | ||
- "CppHeader" |
Oops, something went wrong.