Jeroen Engels
|
996c3039d6
|
Limit all Lint.Test error messages to 76 characters
This is so that they fit nicely in the terminal. The limit is usually 80
characters, but elm-test prepends every line by 4 spaces.
|
2019-07-13 10:03:58 +02:00 |
|
Jeroen Engels
|
905a74f901
|
Lint.Test: Add an identifiable name to errors to quickly be able to know what the problem is
|
2019-07-13 10:03:32 +02:00 |
|
Jeroen Engels
|
d6c8cb55bf
|
Rewrite Lint.Test checks in a way that emphasizes the actual check
|
2019-07-11 17:53:23 +02:00 |
|
Jeroen Engels
|
b6464dbff2
|
Move error messages out of Lint.Test and into Lint.Test.ErrorMessage
|
2019-07-11 08:47:33 +02:00 |
|
Jeroen Engels
|
1d3333f489
|
Add tests for the Test error messages
|
2019-07-11 08:47:33 +02:00 |
|
Jeroen Engels
|
27f2331950
|
Propose the right location for under
|
2019-07-11 08:47:29 +02:00 |
|
Jeroen Engels
|
6f26e13714
|
Remove rule DefaultPatternPosition
The compiler now forbids redundant patterns 👍
|
2019-07-08 22:23:27 +02:00 |
|
Jeroen Engels
|
7a4aaaa8b8
|
Updated LintConfig.elm to new API and rules
|
2019-07-06 15:28:44 +02:00 |
|
Jeroen Engels
|
2627b176df
|
NoDebug: Forbid the import of the Debug module
|
2019-07-05 01:56:49 +02:00 |
|
Jeroen Engels
|
d576423905
|
NoDebug: Do not report when doing something like SomeModel.Debug.log
|
2019-07-05 01:56:49 +02:00 |
|
Jeroen Engels
|
d1f87f4a5c
|
Removed unused things and improved some patterns, hinted by elm-analyse
|
2019-07-05 01:56:49 +02:00 |
|
Jeroen Engels
|
bce10c8488
|
Bump elm/core to 1.0.2
|
2019-07-05 01:28:12 +02:00 |
|
Jeroen Engels
|
3f6cc7c3e7
|
Add rule NoUnusedTypeConstructors
|
2019-07-05 01:21:30 +02:00 |
|
Jeroen Engels
|
f771ef1540
|
Remove Debug and make range printing more consistent
|
2019-07-05 01:21:30 +02:00 |
|
Jeroen Engels
|
6133e7d8da
|
Makes error reports in Lint.Test more consistent wrt line spacing
|
2019-07-05 01:21:30 +02:00 |
|
Jeroen Engels
|
fd6d142265
|
NoUnusedVariables: Do not report custom types for which a constructor was used
|
2019-07-05 00:33:51 +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
|
56b4ad084e
|
Improve exposed rules's documentation
|
2019-07-03 14:22:05 +02:00 |
|
Jeroen Engels
|
396aa96c1f
|
Remove comment about reporting unused pattern matching variables. This should be a new rule or option
|
2019-07-03 14:22:05 +02:00 |
|
Jeroen Engels
|
b236f10b5f
|
Sort errors by position in the source code
|
2019-07-03 14:22:05 +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
|
74c3c21bea
|
NoUnusedVariables: Do not report types used in type signatures in a let in declaration
|
2019-07-02 11:55:49 +02:00 |
|
Jeroen Engels
|
c9a2a8e565
|
NoUnusedVariables: Do not report types used as arguments in custom types, or in type aliases
|
2019-07-02 11:42:07 +02:00 |
|
Jeroen Engels
|
b1b2a31e48
|
NoUnusedVariables: Do not report variables modified in a record update expression
|
2019-07-02 11:16:03 +02:00 |
|
Jeroen Engels
|
003336a735
|
Replace Lint.Test by the it's new version
|
2019-07-02 00:08:10 +02:00 |
|
Jeroen Engels
|
bf5a7dad8b
|
Use new test module and improved the range for DefaultPatternPosition
|
2019-07-02 00:05:10 +02:00 |
|
Jeroen Engels
|
40cd398e35
|
Improve the range for NoExtraBooleanComparison
|
2019-07-02 00:05:10 +02:00 |
|
Jeroen Engels
|
e96b6610b2
|
Use new test module for NoExtraBooleanComparison
|
2019-07-02 00:05:10 +02:00 |
|
Jeroen Engels
|
75931b0f23
|
Use new test module for NoUnusedVariables
|
2019-07-02 00:05:10 +02:00 |
|
Jeroen Engels
|
8ffb30c450
|
Use new test module for NoDebug
|
2019-07-02 00:05:10 +02:00 |
|
Jeroen Engels
|
98d88e691e
|
Use new test module for NoImportingEverything
|
2019-07-02 00:05:10 +02:00 |
|
Jeroen Engels
|
7c1fe28ede
|
Update Elm dependencies
|
2019-07-02 00:05:10 +02:00 |
|
Jeroen Engels
|
75e80d0926
|
Rewrite the Lint.Test module to have a nicer API and much better error messages
|
2019-07-02 00:05:10 +02:00 |
|
Jeroen Engels
|
08cf4213b3
|
Reword the tip about withSimple* functions
|
2019-06-30 15:01:22 +02:00 |
|
Jeroen Engels
|
0755f0ec6f
|
Update project status in README
|
2019-06-28 00:03:07 +02:00 |
|
Jeroen Engels
|
9473c123bb
|
Rename Lint.Test's "ruleTester" to "run"
|
2019-06-28 00:03:07 +02:00 |
|
Jeroen Engels
|
1f7e5e08f8
|
Introduce a phantom type for Rule.Schema to prevent some API misuse
|
2019-06-28 00:03:07 +02:00 |
|
Jeroen Engels
|
c3ceccc3dd
|
Move Error to Lint.Rule
|
2019-06-28 00:03:07 +02:00 |
|
Jeroen Engels
|
fef78ddbb8
|
Add watch command in package.json
|
2019-06-28 00:03:07 +02:00 |
|
Jeroen Engels
|
5d465d8e95
|
Move TestUtil to Lint.Test and expose it in the package
|
2019-06-28 00:03:07 +02:00 |
|
Jeroen Engels
|
fbbb70749b
|
Move LintResult from Lint.Error to TestUtil
|
2019-06-26 11:51:48 +02:00 |
|
Jeroen Engels
|
b324066736
|
Move Direction to Lint.Rule
|
2019-06-26 11:42:17 +02:00 |
|
Jeroen Engels
|
3e580eabc3
|
Update Direction's documentation
|
2019-06-26 11:21:35 +02:00 |
|
Jeroen Engels
|
99d401a518
|
Update rule docs on how to add the rule in the config
|
2019-06-26 00:34:57 +02:00 |
|
Jeroen Engels
|
b49df6c83e
|
Rework the documentation for Lint.Rule
|
2019-06-26 00:31:01 +02:00 |
|
Jeroen Engels
|
854e0412db
|
Rework the documentation for Direction
|
2019-06-26 00:31:01 +02:00 |
|
Jeroen Engels
|
deb1d82267
|
Rewrite documentation for Lint.elm and remove unused imports
|
2019-06-26 00:31:01 +02:00 |
|
Jeroen Engels
|
79beb66a2a
|
Make Rule type opaque
|
2019-06-25 23:51:43 +02:00 |
|