Commit Graph

668 Commits

Author SHA1 Message Date
Jeroen Engels
b0524fc0f1 Parse Elm files with knowledge of all existing operators 2020-02-14 16:12:55 +01:00
Jeroen Engels
de5eb83293 Report a global error when two modules share the same name 2020-02-14 14:43:42 +01:00
Jeroen Engels
23632062ca Report a global error when an import cycle is found 2020-02-13 18:11:48 +01:00
Jeroen Engels
c01be0f6fe Remove probably unneeded TODO 2020-02-13 16:16:31 +01:00
Jeroen Engels
29b8b28625 Avoid computing the final evaluation for project if there are no final evaluation functions 2020-02-12 23:46:43 +01:00
Jeroen Engels
7e26791776 Merge the two types of project traversals into one 2020-02-12 23:37:24 +01:00
Jeroen Engels
3621447a82 Fix error being reported for their module instead of the external file 2020-02-12 23:37:24 +01:00
Jeroen Engels
3d1001d5d2 Invalidate cache for module rules if the initial context changes 2020-02-12 23:37:24 +01:00
Jeroen Engels
fb8fda2450 Improve documentation for Review.Rule 2020-02-12 23:37:16 +01:00
Jeroen Engels
f28b7698d7 Give a nicer error message when under is passed empty 2020-02-11 18:47:28 +01:00
Jeroen Engels
b72326085b Give a nicer error message in tests when the location could not be found 2020-02-11 18:12:51 +01:00
Jeroen Engels
e00ab39cd7 Fail tests if there are unknown module names in the expected errors list for expectErrorsForModules 2020-02-11 17:46:06 +01:00
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