Commit Graph

134 Commits

Author SHA1 Message Date
Jeroen Engels
95bbbc63cb Start a new Rule implementation 2019-06-24 00:52:04 +02:00
Jeroen Engels
76f63ff1f6 Refactor: Move LintResult to Lint.Error 2019-06-24 00:49:58 +02:00
Jeroen Engels
dcbf7d23a8 Simplify rules that do not need to use the context 2019-06-24 00:49:58 +02:00
Jeroen Engels
25fb05d3f4 Move Direction to it's own module 2019-06-24 00:49:58 +02:00
Jeroen Engels
bf8c6a4b76 Add rule NoExtraBooleanComparison 2019-06-24 00:49:58 +02:00
Jeroen Engels
79885adde6 Add utilities to test rules 2019-06-24 00:49:58 +02:00
Jeroen Engels
f8142b7450 Make error collecting faster 2019-06-24 00:49:58 +02:00
Jeroen Engels
43eba229ae Rename initContext to initialContext 2019-06-24 00:49:58 +02:00
Jeroen Engels
3162a8bb68 Remove the need to specify error names when creating an error 2019-06-24 00:49:58 +02:00
Jeroen Engels
182385bfa9 Store the rule name along with the rule analyzer 2019-06-15 21:52:56 +02:00
Jeroen Engels
c1c32328f4 Simplify how a rule gets defined 2019-06-15 21:14:40 +02:00
Jeroen Engels
68a4c9ab01 Simplify the final evaluation by not having it return a context 2019-06-15 21:13:40 +02:00
Jeroen Engels
e979393ef8 Rename visitor names 2019-06-15 20:33:09 +02:00
Jeroen Engels
6d9ff756c8 Use the builder pattern to create rules 2019-06-15 14:47:10 +02:00
Jeroen Engels
ede98bc179 Re-add DefaultPatternPosition 2019-06-08 23:12:55 +02:00
Jeroen Engels
21411aaf8c Re-add NoImportingEverything 2019-06-03 00:30:24 +02:00
Jeroen Engels
7adba9b436 Update and remove dependencies 2019-06-03 00:05:11 +02:00
Jeroen Engels
9cd5b6f001 Add test command 2019-06-02 23:10:36 +02:00
Jeroen Engels
f6683e204d Improve tests 2019-06-02 23:06:08 +02:00
Jeroen Engels
95f4989fa9 Naming 2019-06-02 23:06:08 +02:00
Jeroen Engels
d204c21772 Handle ports 2019-06-02 23:06:08 +02:00
Jeroen Engels
7689d01304 Naming 2019-06-02 23:06:08 +02:00
Jeroen Engels
245b22455d import 2019-06-02 23:06:08 +02:00
Jeroen Engels
c7816e002b Add now.json in example 2019-06-02 23:06:08 +02:00
Jeroen Engels
d656046936 report imports 2019-06-02 23:06:08 +02:00
Jeroen Engels
e28bd30490 nounused 2019-06-02 23:06:08 +02:00
Jeroen Engels
67a05f2c45 Remove visitTypeAnnotation 2019-06-02 23:06:08 +02:00
Jeroen Engels
bbd0eb0a38 Visit all of the AST 2019-06-02 23:06:08 +02:00
Jeroen Engels
06d6e5f247 Add NoUnusedVariables rule 2019-06-02 23:06:08 +02:00
Jeroen Engels
d93474a62e Stop exposing parseSouce 2018-11-11 16:11:45 +01:00
Jeroen Engels
5236dea4d7 Module renaming 2018-11-11 00:10:35 +01:00
Jeroen Engels
c559bd94b8 Modules reordering 2018-11-10 23:38:12 +01:00
Jeroen Engels
1bbaf607cf Make LintRuleImplementation opaque 2018-11-10 17:05:17 +01:00
Jeroen Engels
f911819796 Fix tests 2018-11-06 18:46:46 +01:00
Jeroen Engels
66f73b625c Add range information to linting errors 2018-11-06 13:15:23 +01:00
Jeroen Engels
4be496579c Make example easier to use 2018-11-06 13:08:20 +01:00
Jeroen Engels
d265e09d06 API attempts to make writing rules simpler 2018-11-05 19:55:03 +01:00
Jeroen Engels
ee482cd0aa Update example to use new parser 2018-11-05 19:30:47 +01:00
Jeroen Engels
6cb6335e0e Update example/ dependencies 2018-11-05 19:12:38 +01:00
Jeroen Engels
ef1316c9bd Remove unused dependency 2018-11-05 19:10:21 +01:00
Jeroen Engels
accb094e87 Bump to v3 2018-11-05 19:08:06 +01:00
Jeroen Engels
42ba9fc47b Add license file 2018-11-05 19:07:41 +01:00
Jeroen Engels
f274a5008f Upgrade example/ to 0.19 2018-11-05 19:06:03 +01:00
Jeroen Engels
4e4a315ffe Remove rules 2018-11-05 19:00:37 +01:00
Jeroen Engels
9a56823f20 Use stil4m/elm-syntax for parsing 2018-11-05 19:00:17 +01:00
Jeroen Engels
a16c660048 elm-format 2018-11-05 18:59:42 +01:00
Jeroen Engels
e2161f8388 Add package.json to access elm binaries from node_modules 2018-11-05 18:34:26 +01:00
Jeroen Engels
a633af02b2 Remove tests for removed rules 2018-11-05 15:41:12 +01:00
Jeroen Engels
9e6b1e52c4 Apply elm-upgrade to tests/ 2018-11-05 15:40:41 +01:00
Jeroen Engels
67f1e8223f Remove rules, to ease upgrade 2018-11-05 15:08:55 +01:00