Commit Graph

346 Commits

Author SHA1 Message Date
Jeroen Engels
5120f8c8be Run elm-lint when running tests 2019-09-17 22:13:35 +02:00
Jeroen Engels
23bba24185 Wording change: it's -> it is 2019-09-17 19:56:15 +02:00
Jeroen Engels
3645acb99e Reword the error message in the case of a missing fixes test failure 2019-09-17 19:56:15 +02:00
Jeroen Engels
cb4ba4315a Fix errors in Lint.Test documentation 2019-09-17 19:31:09 +02:00
Jeroen Engels
b18a1a6f08 Fix the description of the withElmJsonVisitor example 2019-09-16 14:34:22 +02:00
Jeroen Engels
86ad2735f9 Change phantom type variable name from "configurationState" to "anything" 2019-09-16 14:28:45 +02:00
Jeroen Engels
fbbc122a7d Remove module declaration in examples
Adding a module declaration messes up the syntax highlighting on the 
packages website
2019-09-16 11:55:21 +02:00
Jeroen Engels
40d6a1ffd8 Fix typos in withModuleDefinitionVisitor documentation 2019-09-16 11:48:03 +02:00
Jeroen Engels
5d183f3906 Reorder arguments names to match the actual parameters 2019-09-15 01:29:26 +02:00
Jeroen Engels
34be857d87 Remove non-helpful comment 2019-09-15 01:29:26 +02:00
Jeroen Engels
b359fb3023 Add Lint.Rule.withDeclarationListVisitor function 2019-09-15 01:29:26 +02:00
Jeroen Engels
5130f9c0e1 Add an example of the report in the README 2019-08-30 01:33:57 +02:00
Jeroen Engels
e4b2c1bee3 Remove stray line 2019-08-30 00:45:31 +02:00
Jeroen Engels
d9b3f581ed Add design document about severity levels 2019-08-29 23:20:13 +02:00
Jeroen Engels
bf1f1d2380 Fix "across" typo accross the whole project 2019-08-29 22:45:28 +02:00
Jeroen Engels
8d712c2066 Add design document about the test module 2019-08-29 22:41:31 +02:00
Jeroen Engels
1fe30a17db Change title of no-built-in-rules 2019-08-29 20:58:41 +02:00
Jeroen Engels
35f832c87d Make default example trigger the NoUnused.CustomTypeConstructors rule 2019-08-29 20:28:57 +02:00
Jeroen Engels
36dbd3ca38 Demo: Use published rules 2019-08-29 14:37:22 +02:00
Jeroen Engels
de40f41d8c Define lint config using published packages 2019-08-28 19:24:59 +02:00
Jeroen Engels
e72773085d Add checking for new APIs in the checklist for when to write a rule 2019-08-28 19:01:18 +02:00
Jeroen Engels
27bfd898f4 Update LintConfig with rules removed 2019-08-28 18:53:59 +02:00
Jeroen Engels
9580d59e80 Remove mention that the package contains rules 2019-08-28 09:24:54 +02:00
Jeroen Engels
c76b9229d3 Update project description in elm.json 2019-08-28 09:17:30 +02:00
Jeroen Engels
fa700254fd Release v4.0.0 2019-08-28 08:36:24 +02:00
Jeroen Engels
011a205b13 Remove rules from the package 2019-08-28 08:36:24 +02:00
Jeroen Engels
6a57704653 Remove comment about renaming a module 2019-08-28 08:36:24 +02:00
Jeroen Engels
f631255bbd Add guidelines on writing automatic fixes 2019-08-27 15:26:05 +02:00
Jeroen Engels
a4dab54801 Add elm/json to lint config 2019-08-25 23:55:21 +02:00
Jeroen Engels
ae27e5fcfd Fix npm security vulnerabilities 2019-08-24 23:26:06 +02:00
Jeroen Engels
6720e07d76 Recreate LintConfig due to new architecture needed by node-elm-lint 2019-08-23 13:56:41 +02:00
Jeroen Engels
d1877a1fed Reword the short description of the project 2019-08-23 13:52:59 +02:00
Jeroen Engels
0540ee850e Update the order in which the rule visitors are called, with regards to project-related data 2019-08-22 20:14:07 +02:00
Jeroen Engels
3d56b620cd Rename example/ to demo/ 2019-08-22 19:57:37 +02:00
Jeroen Engels
f835460f03 Remove now.json 2019-08-22 19:56:49 +02:00
Jeroen Engels
8a98cc6040 Example: Adapt to new project argument for Lint.lint 2019-08-22 19:56:40 +02:00
Jeroen Engels
61fe5ea013 Add explanation as to why the Lint.Project module is available 2019-08-22 19:49:48 +02:00
Jeroen Engels
50a84c7433 Add an alias to Elm.Project.Project
We should rename the whole module, but in the meantime, this makes the 
docs a bit better
2019-08-22 19:49:48 +02:00
Jeroen Engels
9c284690d7 Add runWithProjectData to add ability to test rules that look at elm.json 2019-08-22 19:49:48 +02:00
Jeroen Engels
8c9a7c5f85 Replace withprojectVisitor by withElmJsonVisitor
This way, we'll be able to
- Optimize for rules that don't need some of the project details, by not 
loading them in the first place
- Read at first glance which project's data the rule will look at
2019-08-22 19:49:48 +02:00
Jeroen Engels
b730fec914 Add Project to the arguments of a rule 2019-08-22 19:49:48 +02:00
Jeroen Engels
c35cce2a90 Add withProjectVisitor function to go through the elm.json file 2019-08-22 19:49:48 +02:00
Jeroen Engels
85e688dfc0 Rewrite functions of List.Extra into our own module
This is to remove a dependency from the project
2019-08-22 19:48:46 +02:00
Jeroen Engels
94a87319f7 Rewrite functions of List.Extra into our own module
This is to remove a dependency from the project
2019-08-22 19:48:46 +02:00
Jeroen Engels
ddaea22eab Move range manipulations fns out of Lint.Fix and into the rule that uses them 2019-08-22 19:48:46 +02:00
Jeroen Engels
6b3c635bb5 Reword the project's short description 2019-08-22 12:00:17 +02:00
Jeroen Engels
5433526b2f Explain why we require providing the fix result in test error messages 2019-08-22 11:57:14 +02:00
Jeroen Engels
3a05b37fd3 Lint.Rule: Move withFixes into its own section in the documentation 2019-08-22 11:43:16 +02:00
Jeroen Engels
c1562aa81b Remove the rules from the README, and write why there are no built-in rules 2019-08-22 11:42:43 +02:00
Jeroen Engels
9463d89a32 Add comments in the example of the "write your own rule" section 2019-08-22 11:04:59 +02:00