Commit graph

241 commits

Author SHA1 Message Date
Christopher Pickering
814c7b464b
added fix 2021-10-11 11:44:51 +03:00
Christopher Pickering
c778032cd2
fixed #91 and added test 2021-10-11 10:59:10 +03:00
Christopher Pickering
41309c5798
fixed #90 and added test. 2021-10-11 10:37:25 +03:00
Matthias Kestenholz
53b5b00d7e Commit a test showing that <br> causes indentation (when it shouldn't) 2021-10-08 14:40:42 +02:00
Christopher Pickering
7c1b2ebcf8
added rule 26 or empty id and class tags. closes #87 2021-10-07 16:04:27 +02:00
Christopher Pickering
10d0e87288
fixed #84 2021-10-07 15:47:31 +02:00
Christopher Pickering
4d5f7819ce
fixed #83 2021-10-07 15:42:02 +02:00
Christopher Pickering
eb8571b0b4
updated version. closes #82 2021-10-07 11:42:05 +02:00
Christopher Pickering
9313dae827
cleaned up code. closed #81, closed #74 2021-10-07 11:34:51 +02:00
Christopher Pickering
34fb305b6b
updated regex on H024. Added test. closes #78 2021-10-07 09:44:14 +02:00
Christopher Pickering
242b67898e
removed django comment tag from formatted tags. added test. closes #76 2021-10-07 09:38:23 +02:00
Christopher Pickering
dde4ad4a1e
updated rule H025 logic to ignore single line tags. added test. closes #73 2021-10-07 08:55:01 +02:00
Christopher Pickering
adbef74d38
updated regex for H021. Added test. closes #72 2021-10-07 08:40:26 +02:00
Christopher Pickering
9addd5dc04
updated regex for H025. closes #71, closes #70 2021-10-07 08:35:37 +02:00
Christopher Pickering
d6c6e49f19
added rstrip to attributes after formatting. updated tests. closes #69 2021-10-07 08:22:29 +02:00
Christopher Pickering
863efbf116
added script and style tags to single line tags. fixed #68 and added test 2021-10-07 08:16:04 +02:00
Christopher Pickering
2029496854
simplified regex to improve speed 2021-10-06 15:41:21 +02:00
Christopher Pickering
137c2e74a3
fixed lint 2021-10-06 15:06:42 +02:00
Christopher Pickering
b8562e463a
added rule H025, closes #58 2021-10-06 15:00:08 +02:00
Christopher Pickering
569f9112ac
closes #67, closes #59 2021-10-06 14:20:47 +02:00
Christopher Pickering
0b8ae3c711
passed tests 2021-10-06 13:40:19 +02:00
Christopher Pickering
12530b0add
added formatting for conditions in attributes. closes #66 2021-10-06 13:17:04 +02:00
Christopher Pickering
87a95ea15a
added style formatting and rule H021. closes #65 2021-10-06 10:21:37 +02:00
Christopher Pickering
2d3a4a7250
fixed #62 2021-10-06 09:42:08 +02:00
Christopher Pickering
24a0fa953a
fixed #57 and added test 2021-10-06 09:19:37 +02:00
Christopher Pickering
ab1cdcf199
added test for trans tag. fixed #63 2021-10-06 08:54:43 +02:00
Christopher Pickering
60d0d219ee
added tests for H019 and H020 2021-10-06 08:47:40 +02:00
Christopher Pickering
a657424ed6
closes #60 2021-10-05 13:11:08 +02:00
Christopher Pickering
f38383a629
fix regex for finding single line tempalte tags, fix #56 2021-10-05 10:19:28 +02:00
Christopher Pickering
e72e4619bd
fixed indentation on ignored blocks with a child ignore block. closes #54 2021-10-05 09:47:40 +02:00
Christopher Pickering
2a85e0dbb1
fixed #52,50,48 2021-10-05 08:34:35 +02:00
Christopher Pickering
bbb0ed6f92
added start of golang config 2021-10-04 16:31:09 +02:00
Christopher Pickering
35474de863
added option for custom rules file 2021-10-04 15:26:22 +02:00
Christopher Pickering
07a812ee1d
split alt from H006 to H013, closes #47 2021-10-04 14:41:07 +02:00
Christopher Pickering
bdc3645415
added rule H019. Closes #45, Closes #43 2021-10-04 13:32:56 +02:00
Christopher Pickering
d01f866a29
updated regex to require a tag name before looking for attribute =. Closes #46 2021-10-04 13:11:12 +02:00
Christopher Pickering
9ab51a115a
split regex for H011 for meta tags. closes #44 2021-10-04 13:07:41 +02:00
Christopher Pickering
1bcff422db
close #41, close #39. Add option to ignore blocks. 2021-10-04 11:58:02 +02:00
Christopher Pickering
aaf1e2dea8
fixed H012 regex and added test. Closes #40 2021-10-04 11:20:06 +02:00
Christopher Pickering
fec87e27f0
fixed H011 regex to only search valid html tags. Closes #38 2021-10-04 11:12:04 +02:00
Christopher Pickering
849648a8d6
fixed regex for colgroup. closes #36 2021-10-04 10:24:58 +02:00
Christopher Pickering
92872bc53c
fixed #35 2021-10-01 11:51:53 +02:00
Christopher Pickering
722fe181f9
fixed #34 2021-10-01 11:08:52 +02:00
Matthias Kestenholz
b37cb25792 Do not indent the <source> element, it does not permit content 2021-09-30 14:24:34 +02:00
Christopher Pickering
c3b21323ea
closes #30, closes #28 2021-09-30 10:02:05 +02:00
Christopher Pickering
29ae9cfda4
updated indentation to indent start of ignored blocks 2021-09-29 14:44:39 +02:00
Christopher Pickering
b00e51488a
closes #29 2021-09-28 13:42:13 +02:00
Christopher Pickering
8f78e1964b
closes #29 2021-09-28 13:04:04 +02:00
Christopher Pickering
a6fc08c706
added feature, updated version 2021-09-23 10:19:11 +02:00
Christopher Pickering
a577817b41
fixed stdin check 2021-09-22 08:54:28 +02:00
Matthias Kestenholz
e23dc60ad7 Allowed more than one path at a time 2021-09-21 20:15:25 +02:00
sur.la.route
229c9c7317
Merge pull request #24 from matthiask/mk/exclude
Fixed #22: Added configuration options to define excluded paths
2021-09-21 13:09:27 +02:00
Matthias Kestenholz
abba002433 Fixed #22: Added configuration options to define excluded paths 2021-09-21 13:02:33 +02:00
sur.la.route
7a48faf09b
Merge pull request #21 from matthiask/mk/failing-test
Failing test: HTML tags inside Django oneline comments should be ignored
2021-09-21 12:53:45 +02:00
Christopher Pickering
0da7612809
fixed issue with dj inline commments begin split up 2021-09-21 12:50:35 +02:00
Matthias Kestenholz
f2707ba2bf Added figcaption, details and summary to the list of tags to indent 2021-09-21 12:03:59 +02:00
Matthias Kestenholz
8db6e65022 Commit a failing test: HTML tags inside Django oneline comments are not ignored 2021-09-21 10:27:53 +02:00
Christopher Pickering
678e50088c
updated test for py 3.6 2021-09-21 08:51:16 +02:00
Christopher Pickering
8b2448644b
updated test 2021-09-20 11:49:31 +02:00
Christopher Pickering
b0b5147052
closes #7, closes #20, cleaned up regex, improved attribute logic, added tests 2021-09-20 11:33:23 +02:00
Christopher Pickering
6eeb68c1ff
updated docs, added test, removed pkg_resources 2021-09-17 09:36:52 +02:00
Christopher Pickering
78fea8ed4d
added option for stdin. closes #13 2021-09-16 13:36:44 +02:00
Christopher Pickering
d0e83aeeb3
fixed #15 and #16 2021-09-16 09:50:13 +02:00
Christopher Pickering
c5045d2f0a
fixed #17 2021-09-16 09:48:41 +02:00
Christopher Pickering
b8b6c919a4
added support for {%- nunjucks 2021-09-08 11:52:16 +02:00
Christopher Pickering
5495516c74
changed build system to poetry, added more dj tags, added pyproject.toml support, fixed #11, closed #12, closed #1 2021-09-08 10:46:40 +02:00
Christopher Pickering
af97bbcb32
fixed #10 for lint and format. added tests 2021-09-01 11:55:28 +02:00
Christopher Pickering
4d5e3b184d
fixed dj comment formatting and added test 2021-08-30 15:10:01 +02:00
Christopher Pickering
41a3346c14
fixed stripped whitespace on test.. 2021-08-30 14:47:32 +02:00
Christopher Pickering
46ea616e1d
updated formatting for ignored blocks 2021-08-30 14:30:10 +02:00
Christopher Pickering
c51deae335
fixed #9 2021-08-30 11:43:24 +02:00
Christopher Pickering
3cc6223db7
fixed rule W010 for test not inside a tag. 2021-08-19 11:19:51 -05:00
Christopher Pickering
e6b9a9da1b
added support for jinja assets tag 2021-08-19 10:52:50 -05:00
Christopher Pickering
dcb1892e00
fixed #6. updated release 2021-08-19 10:16:41 -05:00
Christopher Pickering
7bc921d784
removed duplicate error message from linter 2021-08-17 10:17:50 -05:00
Christopher Pickering
4f38370225
fixed rule E001 for handlbars 2021-08-17 10:00:56 -05:00
Christopher Pickering
41e95ce63b
fixed test coverage 2021-08-17 08:56:40 -05:00
Christopher Pickering
65af0bcb35
disallow negative indent when there is a tag missmatch. 2021-08-02 13:06:56 -05:00
Christopher Pickering
de6505215b
added rule for {% url. added regex flags to rules 2021-08-02 12:31:59 -05:00
Christopher Pickering
45871c14ab
updated html with latest fixes 2021-08-02 09:18:05 -05:00
Christopher Pickering
26db4c8c36
updated lint and version 2021-07-30 12:37:57 -05:00
Christopher Pickering
9120f70147
updated formatter and docs 2021-07-29 13:41:34 -05:00
Christopher Pickering
416c63ff38
updated reformat rules 2021-07-26 12:22:26 -05:00
Christopher Pickering
3815e09f80
updated test 2021-07-23 16:02:24 -05:00
Christopher Pickering
24bb8e66df
try again for windows 2021-07-13 12:53:19 -05:00
Christopher Pickering
5fa1d326a7
attemped to run tests on windows 2021-07-13 12:45:25 -05:00
Christopher Pickering
22cf86ae82
code cleanup 2021-07-13 12:25:29 -05:00
Christopher Pickering
eef8fdb63b
added tests 2021-07-13 10:45:57 -05:00
Christopher Pickering
04b8e99b4f
added more rules. 2021-07-12 17:07:52 -05:00
Christopher Pickering
14a2ab2fd5
stopped adding error to print 2021-07-12 15:26:38 -05:00
Christopher Pickering
d0192d3592
initial commit 2021-07-12 13:26:46 -05:00