Commit Graph

75 Commits

Author SHA1 Message Date
Jeroen Engels
5d297822ca Store the module name in the error, to send it to the reporter 2019-07-31 00:50:35 +02:00
Jeroen Engels
4b9e2ae8d9 Rename the file's name field to path
This is a more accurate name for a field that is like 
"src/Folder/File.elm"
2019-07-31 00:08:16 +02:00
Jeroen Engels
24f52dd660 Clean: Move functions around 2019-07-30 23:29:39 +02:00
Jeroen Engels
02985ff109 Example: Use reporter from elm-lint-reporter
Basically, the contents of Reporter and Text were moved there. This will 
be useful to share the reporter with the CLI.
2019-07-30 23:18:52 +02:00
Jeroen Engels
e937feb91f Example: Fix source code and linting errors being out of sync 2019-07-30 21:01:38 +02:00
Jeroen Engels
50b0c6ad23 Copy the Reporter from the CLI 2019-07-30 21:01:38 +02:00
Jeroen Engels
daf16f11d5 Make the colors of the reporter by the same as the compiler's 2019-07-29 19:44:48 +02:00
Jeroen Engels
a845cbd86d Make lintSource always return a list, not a result 2019-07-28 21:16:01 +02:00
Jeroen Engels
cff014d5ad Show the linting errors in the example like we do in the terminal 2019-07-28 17:37:21 +02:00
Jeroen Engels
a70013ca24 Remove the concept of Severity 2019-07-25 14:37:10 +02:00
Jeroen Engels
7912badedd Stop importing everything from Html 2019-07-24 18:12:35 +02:00
Jeroen Engels
6f26e13714 Remove rule DefaultPatternPosition
The compiler now forbids redundant patterns 👍
2019-07-08 22:23:27 +02:00
Jeroen Engels
3f6cc7c3e7 Add rule NoUnusedTypeConstructors 2019-07-05 01:21:30 +02:00
Jeroen Engels
3b5c187574 TMP: Add import exeptions 2019-07-03 18:26:53 +02:00
Jeroen Engels
40cd1ed5ed Generate and configuration as Elm code from the configuration in the example 2019-07-03 18:25:11 +02:00
Jeroen Engels
a67ff9f6b8 Allow the configuration of the rules in the example 2019-07-03 17:47:41 +02:00
Jeroen Engels
fec6420f50 Move RuleError to Lint.elm and rename it to LintError 2019-07-03 13:27:33 +02:00
Jeroen Engels
d23ba4a0a5 Move Rule definition to Lint.Rule 2019-06-25 23:51:43 +02:00
Jeroen Engels
692ebf2406 Simplify DefaultPatternPosition's configuration 2019-06-25 23:51:43 +02:00
Jeroen Engels
19ffc231fd Reorganized example 2019-06-24 01:20:10 +02:00
Jeroen Engels
507dc5f02e Rename Msg name in example 2019-06-24 01:14:30 +02:00
Jeroen Engels
8d3aee574a Make example a bit prettier 2019-06-24 01:11:18 +02:00
Jeroen Engels
8b2cdc9935 Refactor the example a bit 2019-06-24 01:11:05 +02:00
Jeroen Engels
bf8c6a4b76 Add rule NoExtraBooleanComparison 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
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
c7816e002b Add now.json in example 2019-06-02 23:06:08 +02:00
Jeroen Engels
06d6e5f247 Add NoUnusedVariables rule 2019-06-02 23:06:08 +02: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
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
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
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
a16c660048 elm-format 2018-11-05 18:59:42 +01:00
Jeroen Engels
45b697cfe4 Update dependencies for the example. 2017-06-19 00:24:36 +02:00
Jeroen Engels
c39f700360 Simplify Visitor 2017-06-18 21:48:36 +02:00
Jeroen Engels
1477fe856d Dogfeeding: cleaning up 2017-06-18 20:58:08 +02:00
Jeroen Engels
11b37494a9 Add rule ElmTest.NoDuplicateTestBodies 2017-06-18 20:58:08 +02:00
Jeroen Engels
aab4379e78 Add ability to specify exceptions in NoImporting 2017-06-18 16:52:52 +02:00
Jeroen Engels
9536c1cb6f Do not reparse source for every rule 2017-06-17 11:56:34 +02:00
Jeroen Engels
c4974111fb Failure to parse now returns an error 2017-06-13 01:31:10 +02:00
Jeroen Engels
5eee6e50e1 Add SimplifyPropertyAccess rule 2017-06-11 19:43:02 +02:00
Jeroen Engels
70ac690a90 Ignore -- xyz comments that are not supported by the parser 2017-06-11 18:35:40 +02:00
Jeroen Engels
e32f51e62f Add lintSource function that lints a file with a list of rules 2017-01-29 21:49:05 +01:00
Jeroen Engels
0710792368 Add documentation 2017-01-29 21:35:00 +01:00
Jeroen Engels
fc93fad157 Reorganize project file structure 2017-01-29 20:03:31 +01:00