Commit Graph

556 Commits

Author SHA1 Message Date
Jeroen Engels
ac0ec7fe34 Rename traversingImportedModulesFirst to withContextFromImportedModules 2020-02-10 23:18:09 +01:00
Jeroen Engels
33c70a4302 Stop importing custom type's constructors 2020-02-09 22:57:58 +01:00
Jeroen Engels
0b952ada6a Update documentation for Review.Rule 2020-02-09 22:43:44 +01:00
Jeroen Engels
09317c29fe Fix caching problem when a file got removed for project modules 2020-02-09 22:43:44 +01:00
Jeroen Engels
7dd84836ce WIP documentation for module and project rules 2020-01-31 16:20:42 +01:00
Jeroen Engels
996c506397 Simplify Rule type by having only one variant 2020-01-31 16:20:11 +01:00
Jeroen Engels
da24fcb57c Rename withModule to addModule and withParsedModule to addParsedModule 2020-01-28 23:06:45 +01:00
Jeroen Engels
ef9374fc65 Recompute the project module graph when adding a module 2020-01-27 22:26:34 +01:00
Jeroen Engels
18b68c3626 Move Review.review by Rule.review, and remove the Review module 2020-01-27 20:31:11 +01:00
Jeroen Engels
e2d2912ae7 SQUASH Rework Review.Rule 2020-01-27 20:30:09 +01:00
Jeroen Engels
013411dd3e Add TODOs for missing documentation to be able to preview docs 2020-01-27 20:08:14 +01:00
Jeroen Engels
1d62157ed9 Rework Review.Rule documentation 2020-01-27 17:18:10 +01:00
Jeroen Engels
b4b70ef582 Extract moduleVisitorSchema in project rules to get better error messages 2020-01-27 17:18:06 +01:00
Jeroen Engels
89a3a3d1b4 Rename withDependenciesVisitor to withModuleDependenciesVisitor 2020-01-27 17:18:06 +01:00
Jeroen Engels
0cada05fe3 Rename withElmJsonVisitor to withModuleElmJsonVisitor 2020-01-27 17:18:06 +01:00
Jeroen Engels
a5b47cdc73 Rework Review.Project documentation 2020-01-27 17:18:06 +01:00
Jeroen Engels
fa3dedc8a8 Rename withProjectFinalEvaluation to withFinalProjectEvaluation 2020-01-26 13:29:00 +01:00
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