Commit graph

1807 commits

Author SHA1 Message Date
Ed Page
e1c19af197
Merge pull request #501 from epage/action
feat(action): Report typos as annotations
2022-06-16 13:50:27 -05:00
Ed Page
4df83719b2 fix(action): Don't check all when no checked files are changed 2022-06-16 13:40:37 -05:00
Ed Page
a295aeb9ac fix(action): Filter files in more cases 2022-06-16 13:08:37 -05:00
Ed Page
02fb35d0eb fix(action): Log program versions 2022-06-16 11:12:28 -05:00
Ed Page
2ae4d92451 feat(action): Report typos to github 2022-06-16 11:09:52 -05:00
Ed Page
fc7f517466 perf(action): Limit checked files to those changed 2022-06-16 11:09:52 -05:00
Ed Page
bed511b57a test(action): Verify with and without history 2022-06-16 11:09:52 -05:00
Ed Page
d37c3ff782 test: Cactch YAML mistakes 2022-06-16 11:06:20 -05:00
Ed Page
f8073dcfa0 chore: Release 2022-06-15 16:13:13 -05:00
Ed Page
aff7161142 chore: Release 2022-06-15 16:11:53 -05:00
Ed Page
586ddc63b7 docs: Update changelog 2022-06-15 16:11:10 -05:00
Ed Page
f4c06282ad
Merge pull request #500 from epage/types
fix(config): Resolve ambiguous file types
2022-06-15 16:10:14 -05:00
Ed Page
0bb32cc473 fix(config): Resolve ambiguous file types
Before, when two file types matched the same glob, the file type that
one was non-deterministic.

Now, "the more specific" file type wins.  What this means is that we
break up the file by its extensions and prioritize the more literal glob
- If its just `*`, then its lowest priority
- If it contains `*` and other logic, then its next
- If it doesn't contain a `*`, then its the highest priority

This leaves out other glob syntax like `{one,two}` as those are
closed-ended and so considered specific still.

Fixes #487
2022-06-15 15:53:04 -05:00
Ed Page
4cf566d25f
Merge pull request #498 from epage/update
chore: Upgrade dependencies
2022-06-01 07:07:43 -05:00
Ed Page
7c953a71ec chore: Upgrade to 2021 edition 2022-06-01 06:53:10 -05:00
Ed Page
b15558f0f3 chore: Set rust-version 2022-06-01 06:51:59 -05:00
Ed Page
7968dc07de chore: Upgrade dependencies 2022-06-01 06:49:18 -05:00
Ed Page
927308c726 chore: Release 2022-05-16 09:33:53 -05:00
Ed Page
0e014d5b17 docs: Update changelog 2022-05-16 09:33:23 -05:00
Ed Page
4ea85c1b69
Merge pull request #488 from epage/debug
feat(cli): Log the policy
2022-05-16 09:32:56 -05:00
Ed Page
5ae7bda8eb style: Silence clippy 2022-05-16 09:09:17 -05:00
Ed Page
a17f6a284a feat(cli): Log the policy
This is in part to help in cases like #487 but it will also help people
generally configure and debug their config.
2022-05-16 09:06:28 -05:00
Ed Page
778fd7a53d chore: Release 2022-05-10 14:24:11 -05:00
Ed Page
e61fed17e1 docs: Update changelog 2022-05-10 14:22:32 -05:00
Ed Page
5e7e699c2a
Merge pull request #486 from epage/change
fix(parser): Improve detection of ignorable cases
2022-05-10 14:19:11 -05:00
Ed Page
fd5398316f fix(parser): Better short base64 detection
Previously, we bailed out if the string is too short (<90) and there
weren't non-alpha-base64 bytes present.  What we ignored were the
padding bytes.

We key off of padding bytes to detect that a string is in fact base64
encoded.  Like the other cases, there can be false positives but those
strings should show up elsewhere or the compiler will fail.

This was called out in #485
2022-05-10 14:02:59 -05:00
Ed Page
bd5048def5 fix(parser): Allow backslashes after ignore items
To allow `\\` to start a token, we couldn't let it end a token.  By
switching the termiantor to a peek, we can now make it end a token
**and** start a token, allowing us to work better with windows paths.

Fixes #481
2022-05-10 14:02:54 -05:00
Ed Page
1720e7d65e fix(parser): Ignore items at end of input 2022-05-10 13:38:03 -05:00
Ed Page
7e15afe81f test(parser): Add reproduction of #481 2022-05-10 12:58:19 -05:00
Ed Page
4869764f7b test(parser): Remove unclear test case
Unsure why this case is here and it causes difficulties
2022-05-10 12:58:13 -05:00
Ed Page
ad89736832 refactor(parser): Clarify precedence levels 2022-05-10 12:58:08 -05:00
Ed Page
8cd9cef88a
Merge pull request #482 from epage/update
chore: Upgrade dependencies
2022-05-02 02:36:14 -05:00
Ed Page
efce716a17 chore: Upgrade dependencies 2022-05-02 02:19:28 -05:00
Ed Page
9f623c618b chore: Release 2022-04-28 09:39:14 -05:00
Ed Page
7c18fdf295 docs: Update changelog 2022-04-28 09:38:33 -05:00
Ed Page
93608f47f0
Merge pull request #470 from foriequal0/emoji-presentation
fix: Fix miscalculating the width of numbers and some symbols
2022-04-28 09:36:18 -05:00
Ed Page
acfd20711e
Merge pull request #471 from dkasak/master
Add typo: identitiy -> identity
2022-04-28 09:33:42 -05:00
SeongChan Lee
a759af71d4 fix: Fix the width of numbers and some symbols 2022-04-28 23:25:20 +09:00
Denis Kasak
29508a689b feat(dict): Add typo identitiy -> identity 2022-04-28 16:24:18 +02:00
Ed Page
dd827082e9 chore: Release 2022-04-27 21:56:53 -05:00
Ed Page
82790da517 docs: Update changelog 2022-04-27 21:53:26 -05:00
Ed Page
fbfd0d7aaa
Merge pull request #469 from foriequal0/column-number
Change column number to 1-based index, and fix indenting for emojis and tabs
2022-04-27 21:51:06 -05:00
SeongChan Lee
c191a78a77 fix: Fix highlight indenting for emojis and tab characters 2022-04-28 11:44:25 +09:00
SeongChan Lee
f2de431701 fix: Change column number to 1-based index 2022-04-28 11:44:24 +09:00
Ed Page
4ad2f49190
Merge pull request #465 from foriequal0/fix/unicode-width
Fix misalignment in report highlight and indent when there are double width characters
2022-04-27 06:56:02 -05:00
SeongChan Lee
f4396739e6 test: Add descriptions to multiwidth test fixtures 2022-04-27 11:24:38 +09:00
SeongChan Lee
d34c8e64c3 test: Add e2e test for multiwidth characters 2022-04-26 17:30:26 +09:00
SeongChan Lee
e096eb2095 fix: Fix misalignment in report highlight and indent
Previous method misaligns highlights when there are double width asian characters
```
39 |  한글 eglish
   |    ^^^^^^
```
This commit fixes the highlight to have correct alignment.
```
39 |  한글 eglish
   |      ^^^^^^
```
`unicode-rs` crate is used by the Rust compiler [1].
[1]: 34a6c9f26e/compiler/rustc_errors/src/emitter.rs (L861)
2022-04-26 17:30:12 +09:00
Ed Page
dcc3c0b11e chore: Release 2022-04-25 11:49:02 -05:00
Ed Page
feb1da0bf1 docs: Update changelog 2022-04-25 11:48:06 -05:00