Commit Graph

607 Commits

Author SHA1 Message Date
Jeroen Engels
1c072d4b92 Use new function 2024-05-07 23:41:59 +02:00
Jeroen Engels
a9827b8baf Add expectation 2024-05-07 18:27:00 +02:00
Jeroen Engels
3b6027578c Rename rule 2024-05-07 18:18:52 +02:00
Jeroen Engels
955c3c56be Copy tests 2024-05-07 11:04:09 +02:00
Jeroen Engels
14132fbf29 Add example rule to report unused CSS classes 2024-05-07 00:55:52 +02:00
Jeroen Engels
ec5ab00113 Add includeByDefault to FilePattern.match 2024-05-06 00:26:33 +02:00
Jeroen Engels
71cfd6187d Add tests for FilePatterns 2024-05-06 00:26:33 +02:00
Jeroen Engels
a6b365e173 Fix fuzz test 2024-05-06 00:26:33 +02:00
Jeroen Engels
f505932b0c Use extraFiles2 everywhere 2024-04-17 00:52:29 +02:00
Jeroen Engels
1573cfa0ab Use regex to get the list of classes 2024-04-10 20:13:58 +02:00
Jeroen Engels
aa69758fa8 Add failing tests 2024-04-10 20:13:58 +02:00
Jeroen Engels
5a197a22a0 Update file path to reflect rule name 2024-04-10 20:13:57 +02:00
Jeroen Engels
e3082e15ec Move the file pattern to be the last argument of withExtraFiles visitors 2024-04-10 20:13:36 +02:00
Jeroen Engels
d8ce5c7250 Use FilePattern 2024-04-10 20:13:36 +02:00
Jeroen Engels
5bed2f1439 Handle variable case 2024-04-10 20:13:36 +02:00
Jeroen Engels
733d1acd03 Add ModuleNameLookupTable to arguments 2024-04-10 20:13:36 +02:00
Jeroen Engels
03cddfb839 Add variant UngraspableExpression 2024-04-10 20:13:36 +02:00
Jeroen Engels
91bad94165 Understand case expressions 2024-04-10 20:13:36 +02:00
Jeroen Engels
79b36ab76a Understand if expressions 2024-04-10 20:13:36 +02:00
Jeroen Engels
e403c32f4a Add ClassFunction.fromExpression 2024-04-10 20:13:36 +02:00
Jeroen Engels
c60be9ac6e Add test for if 2024-04-10 20:13:36 +02:00
Jeroen Engels
86ea5c4157 Cleanup CSS rule 2024-04-10 20:13:36 +02:00
Jeroen Engels
7af1d00dda Move CSS class functions over to ClassFunctions 2024-04-10 20:13:36 +02:00
Jeroen Engels
c8c6f43b2d Remove unused CssFunctions 2024-04-10 20:13:36 +02:00
Jeroen Engels
dda670a24f Add Class.none 2024-04-10 20:13:03 +02:00
Jeroen Engels
ffd24e20a4 Report error when function is missing some arguments 2024-04-10 20:13:03 +02:00
Jeroen Engels
43edf17433 Change CssFunctions data structure 2024-04-10 20:13:03 +02:00
Jeroen Engels
28eae8f47b Add test 2024-04-10 20:13:03 +02:00
Jeroen Engels
076884b912 Report stray classes 2024-04-10 20:13:03 +02:00
Jeroen Engels
7c2a0ff76b Extract function 2024-04-10 20:13:03 +02:00
Jeroen Engels
81f30678fc Collect locations where we find a class function 2024-04-10 20:13:03 +02:00
Jeroen Engels
675c596eab Add test 2024-04-10 20:13:03 +02:00
Jeroen Engels
75a6db06e1 Report Html.Attributes.attribute "class" 2024-04-10 20:13:03 +02:00
Jeroen Engels
9f9419b68a Add documentation for Css.NoUnknownClasses 2024-04-10 20:13:03 +02:00
Jeroen Engels
825ad01ea9 Extract ClassFunction 2024-04-10 20:13:03 +02:00
Jeroen Engels
22af4f62df Rename rule 2024-04-10 20:13:03 +02:00
Jeroen Engels
19d4917460 Rename builder function 2024-04-10 20:13:03 +02:00
Jeroen Engels
6039aed3e8 Take globs by default 2024-04-10 20:13:03 +02:00
Jeroen Engels
51e3bfb9e0 Clean up 2024-04-10 20:13:03 +02:00
Jeroen Engels
b6ba4b79a3 Display a list of similar classes 2024-04-10 20:13:03 +02:00
Jeroen Engels
e525d2f17b Support parsing classes with dashes and underscore 2024-04-10 20:13:03 +02:00
Jeroen Engels
efa46019ef Report when a CSS is not parsable 2024-04-10 20:13:03 +02:00
Jeroen Engels
eb0b55e0a1 Allow configuring custom CSS functions 2024-04-10 20:13:03 +02:00
Jeroen Engels
b8cd3084e0 Add Svg.class 2024-04-10 20:13:03 +02:00
Jeroen Engels
80cf29e232 Support Html.Attributes.classList 2024-04-10 20:13:03 +02:00
Jeroen Engels
b7c5fe655e Report an error when encountering a non-literal CSS class 2024-04-10 20:13:03 +02:00
Jeroen Engels
87011d4de6 Use appropriate cssUsingFunction 2024-04-10 20:13:03 +02:00
Jeroen Engels
4bf13eb865 Define css functions 2024-04-10 20:13:03 +02:00
Jeroen Engels
a1efb2cb41 Extract 2024-04-10 20:13:03 +02:00
Jeroen Engels
7802aabe2c Simplify parser even more 2024-04-10 20:13:03 +02:00