Commit Graph

13695 Commits (syntactic_context)
 

Author SHA1 Message Date
Wilfred Hughes 03a4a0faea WIP EnclosingLinesInfo and calculating previous context lines
Expand syntactic padding logic
2023-12-08 08:40:41 +07:00
Wilfred Hughes a93798f91d Helper functions for computing enclosing line numbers 2023-12-08 08:40:37 +07:00
Wilfred Hughes 1bed379115 Document salesforce apex in the changelog 2023-12-07 08:56:28 +07:00
Wilfred Hughes 4a8f983f2f
Merge pull request #579 from rody/feature/salesforce_apex_support
Add salesforce apex support
2023-12-07 08:45:33 +07:00
Yuya Nishihara 8e35c9272c Drop use of AtomicBool from diffing frontend
All diff consumers can now access to a mutable bool.
2023-12-07 08:37:42 +07:00
Yuya Nishihara d04a7cd78b Move diffing job to worker thread instead of printing loop
The scoped thread API allows this change, and I think it's slightly easier
to follow. We can also remove the AtomicBool.
2023-12-07 08:37:42 +07:00
Yuya Nishihara 44578368ab Use scoped thread API in directory diff frontend
Just a code cleanup. As the minimum Rust version is now 1.63.0, we don't need
to manage the spawned thread manually.
2023-12-07 08:37:42 +07:00
Wilfred Hughes 80998a8935 Fix actionlint configuration 2023-12-07 08:21:21 +07:00
Wilfred Hughes 4b0fff2d19 cargo fmt 2023-12-05 08:28:37 +07:00
Rodolphe Blancho e18b5d0712
Merge branch 'master' into feature/salesforce_apex_support 2023-12-05 12:31:59 +07:00
Wilfred Hughes e01b2f9f83 Fix a clippy warning about nested ifs 2023-11-28 13:29:33 +07:00
Wilfred Hughes cac80e992a Avoid `res` locals in favour of more meaningful names 2023-11-28 13:27:27 +07:00
Wilfred Hughes 2adb2f8531 Include rustc version in --version output
Fixes #554
2023-11-28 13:07:33 +07:00
Wilfred Hughes 5b8f060be3 Remove unneccessary rustc check now MSRV is 1.63 2023-11-28 12:47:17 +07:00
Wilfred Hughes 569f0038d1 Always filter blank lines at start and end in positions
Fixes #595
2023-11-28 12:35:28 +07:00
Wilfred Hughes d89d057345 Clarify parameter name 2023-11-28 11:57:11 +07:00
Wilfred Hughes 08853fa9b6 Clarify comment 2023-11-28 11:34:45 +07:00
Wilfred Hughes e96c9463a0 Fix typo 2023-11-28 11:15:11 +07:00
Wilfred Hughes 1dd4cdc9ce Disable shellcheck to get actionlint passing 2023-11-27 18:39:47 +07:00
Wilfred Hughes d4dfb99397 Checkout the code before running actionlint 2023-11-27 18:22:11 +07:00
Wilfred Hughes 7cdedda029 Add missing runs-on for actionlint job 2023-11-27 18:20:46 +07:00
Wilfred Hughes 945b9b8fed Lint GitHub actions to catch issues 2023-11-27 18:19:00 +07:00
Wilfred Hughes e70f0f1b91 Disable cross-compiling aarch64 on macos 2023-11-27 18:13:25 +07:00
Wilfred Hughes 7ea46446e7 Fix variable name 2023-11-27 00:52:53 +07:00
Wilfred Hughes e9ea423faf Build but don't test musl binaries 2023-11-26 15:36:30 +07:00
Wilfred Hughes cdcb2f2227 Try to build for aarch64 on macOS too 2023-11-26 15:33:29 +07:00
Wilfred Hughes 0b202dc1d0 Support CLI tests on cross-compiled binaries 2023-11-26 01:41:11 +07:00
Wilfred Hughes 5984abf53a Remove pin of is-terminal 2023-11-26 01:36:38 +07:00
Wilfred Hughes b9a1302e54 Bump MSRV to 1.63
In the past I've been more cautious, but this is the version supported
by Debian Stable, and it's more than 12 months old.

A decent number of dependencies are only tested against newer rustc
versions (see e.g. the recent aho-coarasick pin due to no MSRV on that
library). I've filed bugs in some cases, but upgrading rustc versions
more aggressively should make this problem less common.
2023-11-26 01:24:29 +07:00
Wilfred Hughes 54b6ff8d2e Next release will be 0.54
skip-checks: true
2023-11-26 01:13:12 +07:00
Wilfred Hughes 5153b9f17c Document the changes in the 0.53.1 release 2023-11-26 01:12:58 +07:00
Wilfred Hughes a67ad5b9af Next release will be 0.53.1 2023-11-26 01:03:56 +07:00
Wilfred Hughes 5a2cbd0cc3 Use the default host target for CI on Windows 2023-11-26 00:35:51 +07:00
Wilfred Hughes a255fbc950 Pin aho-corasick to fix aarch64 build 2023-11-25 01:45:18 +07:00
Wilfred Hughes 6051f0519b Set the target explicitly when running tests
Without this, we always tested against the default target triple of
the host, even when the job was supposed to test a cross-compiled
build.
2023-11-25 01:29:53 +07:00
Wilfred Hughes dc42b58337 Pin cross version for reproducibility 2023-11-25 01:26:20 +07:00
Wilfred Hughes 8a58fb76ab Update regression test for SCSS capitalisation change 2023-11-25 01:20:31 +07:00
Wilfred Hughes f31106fddd Fix capitalisation in display name for SCSS 2023-11-24 19:42:16 +07:00
Wilfred Hughes cc487e7c5d Add note on apple targets 2023-11-24 19:30:26 +07:00
Wilfred Hughes 363ca5447c Disable misleading test jobs 2023-11-24 01:40:43 +07:00
Wilfred Hughes 7e50c2d8a2 Roll version 2023-11-24 01:22:49 +07:00
Wilfred Hughes 2cab9ac1d6 Document --sort-paths in changelog 2023-11-24 01:12:11 +07:00
Wilfred Hughes 3e5783c2a7 Treat --sort-paths as a flag option 2023-11-24 01:11:26 +07:00
Wilfred Hughes 4c6336fe33 Document change to directory diffing 2023-11-24 01:03:41 +07:00
Wilfred Hughes 6eeb86addc Use a newer version of the ignore crate 2023-11-24 01:01:21 +07:00
Nimrod Kor e9a8fda9cb
Skip dirs specified in gitignore (#574)
Take ignored dirs into consideration when calculating diff

Co-authored-by: Nimrod <nimrod@getbaz.com>
2023-11-24 00:48:55 +07:00
yusancky 1c0074f7ba
Update Chinese translation of manual (#594)
* Translate fossil.md

* Update translation of 2 files

* Update translation of usage.md

* Update tricky_cases.md
2023-11-24 00:48:05 +07:00
Milan Damen a8d6253509
Sort by path before outputting directory diff so that the order is always the same (#593)
* Sort by path before outputting directory diff so that the order is always the same

* Added feature flag --sort-paths (DFT_SORT_PATHS) to enable/disable sorting paths when diffing directory (default disabled)
2023-11-20 10:24:35 +07:00
Wilfred Hughes 1ec868e1df Update to latest line-numbers 2023-11-19 13:11:07 +07:00
Wilfred Hughes 1dbcd08a90 cargo fmt 2023-11-19 13:10:41 +07:00