-
-
Notifications
You must be signed in to change notification settings - Fork 414
Hlint plugin using ghc-lib #166
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit
Hold shift + click to select a range
1ce5316
WIP on integrating hlint using DAML approach
alanz beb2e25
hlint plugin version with only diagnostics
jneira 70ce253
Add apply-refact dependency
jneira a49ad1a
WIP adding apply hlint hints
jneira 91af64b
Add missing dependencies
jneira 6334ed5
Add hlint private lib
jneira 6b06854
Update stack extra-deps
jneira cd8be02
Implement hlint applyOneCmd
jneira bd2a772
Move hlint module to its own src dir
jneira 787a474
Rename lib to hlint-plugin
jneira 4fbabd7
Move hlint plugin to a more generic path
jneira c03c385
Parse module with ghc session extensions
jneira 1e3350c
Use both ghc and ghc-lib
jneira 765d857
Make compile ghc-8.10.1 code path
jneira d3c6ee5
Remove unused imports and refact cpp blocks
jneira 5c6885e
Remove trailing whitespace
jneira fd6fc80
Use ghcide with config in shakeExtras
jneira 6e9a7bc
Add action to get client settings
jneira 752c838
Make hlint depend on client setting
jneira 0aef003
Use getFileContents action rule
jneira d13184e
Remove commented code from hie
jneira adeb930
Use edited content for compute edits
jneira 26740f1
Use persisted VFS file with apply refact, expose applyAll
lukel97 7674fe7
Enable hlint tests
jneira ff778b6
Move test data to fix the cradle loading
jneira 0e71e87
Fix hlint tests
jneira 36982a5
Add indefinite progress to apply refact
jneira 11086d5
Bump ghcide submodule
jneira b44ecb4
Adapt code to handle hashed value
jneira 523953c
Replace vfs with raw temp file
jneira 3a46078
Convert hlint-hls-plugin in a package
jneira a99912f
Rename to hls-hlint-plugin
jneira 105c37f
Adapt to ghcide api changes
jneira 706dfcc
Fix and clean stack extra-deps
jneira bff0d24
Use lsp-test-0.11.0.6
jneira 55dfc3b
Fix hlint tests
jneira e24ebd2
Use hint name for code action title
jneira 2f31ffb
Remove unused test data file
jneira 839e75c
Remove unused parameter
jneira bf5108b
Add forcily needed hie.yaml
jneira 7759c08
Make test not sensitive to commands order
jneira cd0b615
Make test resilient to default diags
jneira 3adb995
Test only if the command has been applied
jneira f8dc9e0
Wait for hlint diagnostics explicitly
jneira 3f4e950
Bump up ghc-lib min version
jneira 89c4851
Use latest ghc-lib version
jneira 8603c5c
Change mixins for PackageImport
jneira 02308cd
Remove ghcide alternate repo
jneira e456f66
Simplify imports from ghcide
jneira 814ad46
Use GHC.Compat from ghcide
jneira 95dde7c
Restore imports for missing defs
jneira fc4ea30
Comment about the need to use tmp file
jneira 73f669d
Remove hlintOn logging
jneira 21b47f2
Remove hlint parser error from diagnostics
jneira d558e9a
Comment about GetHlintDiagnostics RuleResult
jneira 1245439
Comment how hlint diags are recomputed
jneira e26b23f
Correct identation
jneira 7f5a4ef
Use diagnostic code prefix "refact:"
jneira eeb62e0
Return hlint diags if no ghc parse errors
jneira 929aaea
Combine hlint and hscEnv extensions
jneira f5d4311
Correct replace params
jneira 1c1f7f3
Correct component name
jneira 8b8e568
Fix apply refactoring
jneira c35cdda
Update tests to match new diags and ca's
jneira 0e72151
Add GHC810 explicit version
jneira 5d4d2e2
Set hlint code by ghc version
jneira f1751b7
Use hlint-3.2
jneira b549506
Remove ghc specific diag title
jneira ff0e4c7
Add and update comments
jneira 01f8fd8
Provide evidence edits changes hlint diags
jneira 94b7a3e
Rerun test suite to avoid flaky tests
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
Rename lib to hlint-plugin
- Loading branch information
commit 787a474e428214bbdc9ed0ea87c3a618b28bc8bc
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
As noted above the private lib does not work for stack based cradle.
Moreover i have to periodically delete the haskell-language-server library from the cabal store due to
So i think this plugin must be separated in its own package, after the restructuration of the lib (see #164)