Commit Graph

556 Commits

Author SHA1 Message Date
Jeroen Engels
c141fdb1ae Rename module rule's phantom fields to canCollectProjectData 2020-03-08 00:54:18 +01:00
Jeroen Engels
0d33ab05e7 Improve the error message when Review.Test.runOnModules is given an empty list 2020-03-07 20:11:07 +01:00
Jeroen Engels
801fae798a Remove version from dependency data 2020-03-07 19:57:16 +01:00
Jeroen Engels
37981b65db Make Dependencies opaque 2020-03-07 18:38:39 +01:00
Jeroen Engels
c880709048 Move Project.Dependency to its own module 2020-03-07 18:38:39 +01:00
Jeroen Engels
0a811c5b43 Ignore fixes for the elm.json file 2020-03-07 18:38:39 +01:00
Jeroen Engels
bfade4d4c2 Correct documentation of errorFixes 2020-03-07 18:38:39 +01:00
Jeroen Engels
e6e37c6071 Show only the errors for files that failed to parse if there are any 2020-03-07 18:38:39 +01:00
Jeroen Engels
f928b5e986 Change ReviewConfig to allow Debug.todo in tests 2020-03-07 18:38:39 +01:00
Jeroen Engels
ec326af739 Write NoDebugTodoOrToString rule 2020-03-07 16:09:35 +01:00
Jeroen Engels
8f1ec1dd3a Write NoDebugLog rule 2020-03-07 16:09:35 +01:00
Jeroen Engels
acb4e8db9e Vendorize elm-community/graph 2020-03-06 18:39:35 +01:00
Jeroen Engels
5add390f4f Move ListExtra into Vendor/ 2020-03-06 18:25:40 +01:00
Jeroen Engels
13bed263d0 Rename withProjectDependenciesVisitor to withDependenciesProjectVisitor 2020-03-02 22:54:22 +01:00
Jeroen Engels
5cfd68fb6b Rename withModuleDependenciesVisitor to withDependenciesModuleVisitor 2020-03-02 22:53:37 +01:00
Jeroen Engels
c09c46e4eb Rename withProjectElmJsonVisitor to withElmJsonProjectVisitor 2020-03-02 22:52:31 +01:00
Jeroen Engels
8406c29fd3 Rename withModuleElmJsonVisitor to withElmJsonModuleVisitor 2020-03-02 22:51:25 +01:00
Jeroen Engels
a7b6f6e103 continue document 2020-02-28 17:54:23 +01:00
Jeroen Engels
0b0b6d1b85 Use "List nothing" instead of "List Error" where possible 2020-02-28 17:11:15 +01:00
Jeroen Engels
d7f645241d Continue documentation for project rules 2020-02-27 19:19:33 +01:00
Jeroen Engels
a378c7434e Add rule examples for the ignoreErrors functions 2020-02-26 18:15:59 +01:00
Jeroen Engels
bbd8abf424 Use qualified imports in rule examples 2020-02-26 18:06:57 +01:00
Jeroen Engels
7046137121 Document module and project rules 2020-02-25 19:47:06 +01:00
Jeroen Engels
9209e26bcd Add functions that allow exceptions for rules 2020-02-25 16:48:20 +01:00
Jeroen Engels
53d4128052 Fix typo in the severity levels document 2020-02-25 16:48:06 +01:00
Jeroen Engels
fbcc11d6a9 Simplify Scope by not having a setter and getter 2020-02-16 23:29:11 +01:00
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