Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork59
Comparing changes
Open a pull request
base repository:ruby-syntax-tree/syntax_tree
Uh oh!
There was an error while loading.Please reload this page.
base:v3.2.1
head repository:ruby-syntax-tree/syntax_tree
Uh oh!
There was an error while loading.Please reload this page.
compare:v3.3.0
- 11commits
- 10files changed
- 3contributors
Commits on Jul 22, 2022
Deal better with multi-statement blocks inside parenthesized method c…
…alls.Fixes#120.
Tony Spataro committedJul 22, 2022 Merge pull request#121from xeger/block-in-parenthesized-method
Deal better with multi-statement blocks inside parenthesized method calls
kddnewton authoredJul 22, 2022
Commits on Jul 31, 2022
Merge pull request#123from molawson/rake-print-width-arg
Add print_width config option for rake tasks
kddnewton authoredJul 31, 2022
Commits on Aug 1, 2022
- kddnewton committed
Aug 1, 2022 Add support for a simple config file
As syntax_tree gains wider usage, it'll be very helpful to allowprojects to commit their particular configs within their repo for use byany tool that uses `stree` instead of having to create wrapper scripts,rely on rake tasks that come with their own overhead, or manually keepsettings up to date among all contributors.This set of changes takes inspiration from sorbet to provide users witha simple config file that's also easy to parse and use within the gem.It's a text file that has the exact options you'd pass on the commandline, each on their own line. These are parsed and prepended to thearguments array within `CLI.run`, still allowing for other options topassed from the command line.I decided to restrict this only to the command line options and avoidthe source files argument, opting to let other tools pass their ownsource file from the command line, which is preferable for tools likeeditor integrations that might interact with a single file at a time. Ifusers want to interact with all of their Ruby files at once, the raketasks are perfect for providing larger, static patterns of files. Andsince they use `CLI.run` as well, they'll pick up options from a.streerc file, if present.I also opted for only supporting a single .streerc file at the projectroot. If there's a need for multiple configs or config locations, thiscan be easily extended to look up through a directory structure oraccept an option for a specific config file location (or even adifferent filename). Those felt out of scope for this initial support.
molawson committedAug 1, 2022 Merge pull request#125from molawson/config-file-support
Add support for a simple config file
kddnewton authoredAug 1, 2022 - kddnewton committed
Aug 1, 2022 Fix rubocop violations on main
kddnewton committedAug 1, 2022
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:git diff v3.2.1...v3.3.0
Uh oh!
There was an error while loading.Please reload this page.