Commit Graph

11 Commits

Author SHA1 Message Date
Andrew Novoselac 010600d3fe Improve the output of RailsInspect::Cli
Give the developer some direction on how to resolve the error so they don't need to read the code to figure it out.
2024-02-01 17:57:35 -05:00
Jonathan Hefner dfc6adc2d2
Merge pull request #50384 from skipkayhil/hm-fix-alphabetical-configuring
Fix railspect not validating alphabetical order
2024-01-01 11:37:44 -06:00
John Bampton e6b0d27c3a docs: remove unneeded whitespace from start of code blocks 2024-01-01 15:41:39 +10:00
Jean Boussier 6ba2fdb2fe Bump the required Ruby version to 3.1.0
Until now, Rails only droped compatibility with older
rubies on new majors, but I propose to change this policy
because it causes us to either keep compatibility with long
EOLed rubies or to bump the Rails major more often, and to
drop multiple Ruby versions at once when we bump the major.

In my opinion it's a bad alignments of incentives. And we'd
be much better to just drop support in new minors whenever they
go EOL (so 3 years).

Also Ruby being an upstream dependency, it's not even
a semver violation AFAICT.

Since Rails 7.2 isn't planned before a few months, we
can already drop Ruby 3.0 as it will be EOL in March.
2023-12-31 08:54:03 +01:00
Hartley McGuire 8034cac675
Fix railspect not validating alphabetical order
One of the original goals of these checks was to validate that
configuration stays in alphabetical order, as this provides a
deterministic order for the configuration to be validated against.

However, it appears there has been a regression in that check and it has
only been validating that configurations are present. This commit
restores the ordering check and then uses `railspect configuration . -a`
to fix the configurations that ended up out of order.
2023-12-27 21:25:05 -05:00
Jonathan Hefner 9eae9c31d3 Accept username as valid author name in CHANGELOG
This fixes the `CHANGELOG` linter to accept usernames that include
digits as valid author names.
2023-11-04 13:21:39 -05:00
Rafael Mendonça França 4d2be091ba
Fix changelog linter to not run indefinitely on invalid changelogs 2023-10-13 23:14:43 +00:00
Rafael Mendonça França 4bd5d20a92
Don't add CHANGELOG offenses to "no changes" line 2023-09-27 03:20:06 +00:00
Rafael Mendonça França 32b8e66d22
Autocorrect violations 2023-09-13 01:58:14 +00:00
Rafael Mendonça França 296156033a
Support CHANGELOG with release headers in the linter 2023-09-13 01:57:17 +00:00
zzak 5c2a112d37
Import rails-bin to internal tools/
Co-authored-by: zzak <zzakscott@gmail.com>
2023-09-13 01:57:16 +00:00