Commit Graph

739 Commits

Author SHA1 Message Date
Jeroen Engels
66bf74baac Rename withFinalEvaluation to withFinalModuleEvaluation 2020-01-26 13:28:57 +01:00
Jeroen Engels
ca4515ed2e More "global" to "project" renaming 2020-01-26 13:25:09 +01:00
Jeroen Engels
35c6e53664 Rename fromModuleToGlobal -> fromModuleToProject and fromGlobalToModule -> fromProjectToModule 2020-01-26 13:19:46 +01:00
Jeroen Engels
fc65a5de9f Renamed ParsedFile to ProjectModule 2020-01-24 22:52:07 +01:00
Jeroen Engels
8d55e2eaa4 Update documentation for Review.Project.dependencyModules 2020-01-24 22:04:49 +01:00
Jeroen Engels
cc463843fa Add withCommentsVisitor 2020-01-23 18:15:21 +01:00
Jeroen Engels
11d8c925b2 Do not visit and discover expressions if there is no expression visitor 2020-01-20 08:45:01 +01:00
Jeroen Engels
d2f2ffa2cd Rename Multi/Single to Project/Module 2020-01-20 08:34:52 +01:00
Jeroen Engels
d397c57189 Remove withInitialContext and change the rule schema's phantom types 2020-01-20 08:34:52 +01:00
Jeroen Engels
75f2fb4f74 Add regression test for withInitialContext 2020-01-19 12:04:17 +01:00
Jeroen Engels
a8b5164f5b Recompute all files if the initial changes
Because elm.json or dependencies changed
2020-01-17 15:34:52 +01:00
Jeroen Engels
5df913a061 Recompute a file if the context of one of its imports has changed 2020-01-17 15:14:14 +01:00
Jeroen Engels
e43dc7ba5e Remove lingering comment 2020-01-17 09:19:56 +01:00
Jeroen Engels
46ac773351 Add Review.Project.removeDependencies 2020-01-16 17:34:19 +01:00
Jeroen Engels
d54fcfd0c1 Add Review.Project.removeModule 2020-01-16 17:13:57 +01:00
Jeroen Engels
8b8c985426 Recompute module graph if a file changes and the graph was already computed 2020-01-16 09:42:31 +01:00
Jeroen Engels
0c06a06040 Remove Review/File.elm 2020-01-15 21:07:49 +01:00
Jeroen Engels
8490d093e0 Remove unused ReviewResult type 2020-01-15 20:59:30 +01:00
Jeroen Engels
76b74aa043 Allow Project to accept already parsed files 2020-01-15 20:56:09 +01:00
Jeroen Engels
06b79f7b92 Simplify a fold 2020-01-15 16:35:03 +01:00
Jeroen Engels
a2a5831e0b Explain in which module we are getting an unexpected test result 2020-01-15 16:35:03 +01:00
Jeroen Engels
c4fbda59c4 Make graph creation a bit more performant 2020-01-15 16:35:03 +01:00
Jeroen Engels
d7d49501e1 Replace "Never" phantom types by record types 2020-01-15 16:35:03 +01:00
Jeroen Engels
6e5d8193ac Remove unused custom type constructors 2020-01-15 16:35:03 +01:00
Jeroen Engels
048ade02af Add NoUnusedExports to the review config 2020-01-15 16:35:03 +01:00
Jeroen Engels
eee29d7963 NoUnusedExports: Do not report tests or ReviewConfig.config 2020-01-15 16:35:03 +01:00
Jeroen Engels
691a22e5a7 NoUnusedExports: Mark types used in type alias and custom type arguments as used 2020-01-15 16:35:03 +01:00
Jeroen Engels
4b2ce76584 Update the demo to work with recent API changes 2020-01-15 16:35:03 +01:00
Jeroen Engels
b654daa301 Remove unused code and dependencies 2020-01-15 09:54:26 +01:00
Jeroen Engels
acd63f22dd NoUnusedExports: Report unused types 2020-01-14 12:50:07 +01:00
Jeroen Engels
511db00e29 NoUnusedExports: Do not report elements that are not defined 2020-01-14 09:50:13 +01:00
Jeroen Engels
251bca2c12 Use Scope in NoUnusedExports to know about the exports from other modules 2020-01-14 09:50:13 +01:00
Jeroen Engels
c21fbff07e NoUnusedExports: Don't report used functions or values 2020-01-14 09:50:13 +01:00
Jeroen Engels
56e766ad62 Register type constructors from visited modules in Scope 2020-01-14 09:50:13 +01:00
Jeroen Engels
061a950679 Register types from visited modules in Scope 2020-01-14 09:50:13 +01:00
Jeroen Engels
6ca138db11 Register exposes values only if they are exposed 2020-01-14 09:50:13 +01:00
Jeroen Engels
1141098f32 Fix running rule once for every test file in Review.Test 2020-01-14 09:50:13 +01:00
Jeroen Engels
9d34ed4746 Add TODO for Review.Test about failing for unknown modules 2020-01-14 09:50:13 +01:00
Jeroen Engels
0362f5b3e3 Register values from visited modules in Scope 2020-01-14 09:50:13 +01:00
Jeroen Engels
25601e6b24 Rework Scope to work for multi file rules 2020-01-14 09:50:13 +01:00
Jeroen Engels
009613ec61 Rename fold to foldGlobalContexts 2020-01-14 09:50:13 +01:00
Jeroen Engels
4ae4895ba2 Rename initModuleContext to fromGlobalToModule 2020-01-14 09:50:13 +01:00
Jeroen Engels
13d845db25 Copy Scope 2020-01-14 09:50:13 +01:00
Jeroen Engels
21323cbdc3 Simplify Scope.elm 2020-01-14 09:50:13 +01:00
Jeroen Engels
dbf56e1e65 Add NoUnusedExports rule 2020-01-14 09:50:13 +01:00
Jeroen Engels
068fd7eb9e Call the finalEvaluationFns in multi rules 2020-01-14 09:50:13 +01:00
Jeroen Engels
443a571ac7 Add support for traversing modules by visiting imported modules first 2020-01-11 00:36:56 +01:00
Jeroen Engels
4a730f7240 Have Review.Rule use the modules contained in the project 2020-01-10 21:55:22 +01:00
Jeroen Engels
f20f46028c Have Review.Test use the modules contained in the project 2020-01-10 15:08:37 +01:00
Jeroen Engels
ca0d3bc4e6 Have Review.Project contain the modules of the project 2020-01-09 22:21:01 +01:00