-
-
Notifications
You must be signed in to change notification settings - Fork 367
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[skip circleci] Rename hlint test data files and add regression tests #2321
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1cadb79
Rename test data files
jneira 31fe987
Add regression tests
jneira 1f92905
Add regression test for #1279
jneira 6650698
Use timeout
jneira fc86b6c
Correct waitForProgressDone in ghcide
jneira 6024c06
Remove unnecessary waitForDiagnostics
jneira 2f42755
Mark test broken for hlint on ghclib
jneira 647efd3
Add test over unused extensions
jneira e703df4
Add test for #2042
jneira d44baec
Add data for #2280
jneira c65e354
Use waitForAllProgressDone
jneira 6482215
Add test for #2280
jneira 92f776d
correct module name
jneira 132d1c0
Merge branch 'master' into hlint-tests
jneira ebd9445
Add reproduction for #2290
jneira 5ef5777
Merge branch 'hlint-tests' of https://github.com/jneira/haskell-langu…
jneira 8fe3e0c
Correct test case
jneira 9818ab2
Merge branch 'master' into hlint-tests
jneira b9089f2
Merge branch 'master' into hlint-tests
jneira 6d41d82
Comment about knownBrokenForHlint*
jneira dae293b
Correction
jneira File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not immediately obvious to me what these mean or why it's these versions. Haddock?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm it is a somewhat long history, will try to add a concise comment although the entire thing should be explained in the plugin README or something (TBD)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if i explained it clearly 🤔