-
Notifications
You must be signed in to change notification settings - Fork 58
use weeder #2044
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
use weeder #2044
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d35b64b
use weeder
kostmo cc94505
test envar
kostmo 2e08ad6
testing
kostmo 5c19c2b
restore IF condition
kostmo e09c88b
simplify vars
kostmo 6501f10
try to fix envar
kostmo 9902ee7
add manual-edit warning
kostmo 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 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
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash -ex | ||
|
||
cd $(git rev-parse --show-toplevel) | ||
|
||
# First, install Weeder: | ||
# cabal install weeder | ||
|
||
cabal clean | ||
cabal build -O0 -j all | ||
|
||
weeder -N |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
roots = [ | ||
"^Main.main$", | ||
kostmo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"^Paths_.*", | ||
|
||
# Workarounds for TH parsing: | ||
# ------------------------------- | ||
"^Swarm.Language.Pipeline.QQ.tmQ$", | ||
"^Swarm.Language.Parser.QQ.tyQ$", | ||
"^Swarm.Util.Lens.makeLensesNoSigs$", | ||
"^Swarm.Util.Lens.makeLensesExcluding$", | ||
|
||
# Workarounds for type families: | ||
# ------------------------------- | ||
"^Swarm.Game.World.Compile.NoFunParams$", | ||
|
||
# True positives: | ||
# ===================================== | ||
"^Main.prop_hittingSetMinimal$", | ||
"^Main.printAllLogs$", | ||
"^Control.Carrier.Accum.FixedStrict.execAccum$", | ||
"^Swarm.App.demoWeb$", | ||
"^Swarm.Effect.Unify.Common.dom$", | ||
"^Swarm.Effect.Unify.Fast.@@$", | ||
"^Swarm.Effect.Unify.Naive.runUnification$", | ||
"^Swarm.Game.Entity.entityNameFor$", | ||
"^Swarm.Game.Entity.singleton$", | ||
"^Swarm.Game.Entity.Cosmetic.getBackground$", | ||
"^Swarm.Game.Step.traceLogShow$", | ||
"^Swarm.Game.World.Compile.compile$", | ||
"^Swarm.Game.World.Compile.runCTerm$", | ||
"^Swarm.Game.World.lookupTerrainM$", | ||
"^Swarm.Language.Context.withBindings$", | ||
"^Swarm.Language.Context.singleton$", | ||
"^Swarm.Language.Parser.Util.showShortError$", | ||
"^Swarm.Language.Pipeline.extractTCtx$", | ||
"^Swarm.Language.Pretty.Prec$", | ||
"^Swarm.Language.Pretty.appliedTermPrec$", | ||
"^Swarm.Language.Requirements.Type.insert$", | ||
"^Swarm.Language.Syntax.Pattern.UTerm$", | ||
"^Swarm.Language.Syntax.Util.asTree$", | ||
"^Swarm.Language.Syntax.Util.mapFreeS$", | ||
"^Swarm.Util.replaceLast$", | ||
"^Swarm.Util.reflow$", | ||
"^Swarm.Util.isSuccessOr$", | ||
"^Swarm.Util._NonEmpty$", | ||
|
||
# True positives (unused lenses): | ||
# ------------------------------- | ||
"^Swarm.Language.Typed.polytype$", | ||
"^Swarm.Language.Typed.requires$", | ||
"^Swarm.Language.Typed.value$", | ||
"^Swarm.Language.Value.emptyEnv$", | ||
"^Swarm.Game.Scenario.staticPlacements$", | ||
"^Swarm.Game.Scenario.structureDefs$", | ||
"^Swarm.Game.Scenario.Scoring.Best.scenarioBestByAstSize$", | ||
"^Swarm.Game.Scenario.Scoring.Best.scenarioBestByCharCount$", | ||
"^Swarm.Game.Scenario.Scoring.Best.scenarioBestByTicks$", | ||
"^Swarm.Game.Scenario.Scoring.Best.scenarioBestByTime$", | ||
"^Swarm.Game.ScenarioInfo._NotStarted$", | ||
"^Swarm.Game.ScenarioInfo._Played$", | ||
"^Swarm.Game.State.Robot._VCLocation$", | ||
"^Swarm.Game.State.Robot._VCRobot$", | ||
"^Swarm.Game.State.Substate._NoWinCondition$", | ||
"^Swarm.Game.State.Substate._WinConditions$", | ||
] | ||
|
||
type-class-roots = true | ||
unused-types = true | ||
|
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.