Commit Graph

630 Commits

Author SHA1 Message Date
Jeroen Engels
48d4a769ac Checks things in the multi-file document 2020-02-16 21:58:49 +01:00
Jeroen Engels
c2c53fdbe6 Rename Rule.FileKey to Rule.ModuleKey 2020-02-16 21:54:05 +01:00
Jeroen Engels
382a6c8604 Add NoInvalidLicense 2020-02-16 21:40:59 +01:00
Jeroen Engels
c652a24d48 Store more information about the project's dependencies 2020-02-16 21:40:59 +01:00
Jeroen Engels
a91d66ea60 Add Review.Test.expectErrorsForElmJson 2020-02-16 16:56:33 +01:00
Jeroen Engels
82aa701676 Improve Review.Test documentation 2020-02-16 16:56:33 +01:00
Jeroen Engels
0f39773e75 Change how dependencies are stored, and add NoUnused.Dependencies rule 2020-02-16 16:56:33 +01:00
Jeroen Engels
8cb2453bfc Remove moduleToDependency from Project 2020-02-16 16:56:19 +01:00
Jeroen Engels
2016640367 Improve how tests fail when a global error occurs in the test source code 2020-02-16 16:56:19 +01:00
Jeroen Engels
6bfc9f0757 Remove unused elements in tests 2020-02-16 16:56:19 +01:00
Jeroen Engels
24723bf066 Make it possible to report errors in the elm.json file 2020-02-16 16:56:19 +01:00
Jeroen Engels
d045b085ce Report global errors in tests 2020-02-14 17:34:20 +01:00
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