Skip to content

Releases: Betterment/betterlint

v1.19.0 - reimagining ENV-based configs!

26 Mar 14:07
7400ec8
Compare
Choose a tag to compare

What's Changed

  • Detect references to ENV outside of config directories by @rzane in #71

Full Changelog: v1.18.0...v1.19.0

v1.18.0 - upgrade dependencies and fix metalinter deprecations

28 Jan 18:44
2e5d673
Compare
Choose a tag to compare

What's Changed

  • Fix Cop deprecations and upgrade dependencies by @rzane in #70

Full Changelog: v1.17.0...v1.18.0

v1.17.0

25 Jan 00:29
99537f8
Compare
Choose a tag to compare

What's Changed

  • Remove workflow no longer in use by @lindan-betterment in #65
  • Add RuboCop cop to enforce no strict loading model or association config by @dkubb in #69

Full Changelog: v1.16.0...v1.17.0

v1.16.0

25 Jan 00:29
6399deb
Compare
Choose a tag to compare

What's Changed

  • Detect a non-standard controller by @rzane in #62

Full Changelog: v1.15.1...v1.16.0

v1.15.1

25 Jan 00:28
2fa78dc
Compare
Choose a tag to compare

What's Changed

  • Fix a couple issues with InternalsProtection cop by @medlefsen in #64

Full Changelog: v1.15.0...v1.15.1

v1.15.0

25 Jan 00:28
9d4009a
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.14.0...v1.15.0

v1.14.0

26 Sep 18:25
bb171f7
Compare
Choose a tag to compare

What's Changed

  • Discourage the use of Object#delay and Delayed::Job.enqueue by @rzane in #54
  • Update Layout cops to be more consistent with Standard by @rzane in #55

Full Changelog: v1.13.0...v1.14.0

v1.13.0

10 Jul 16:19
26f17e2
Compare
Choose a tag to compare

What's Changed

  • feat: disable factory bot association cop by default by @andimrob in #49

New Contributors

Full Changelog: v1.12.0...v1.13.0

v1.10.1

12 Apr 16:15
0a3bb88
Compare
Choose a tag to compare

What's Changed

  • Fix edge cases in status code autocorrection by @rzane in #41

Full Changelog: v1.10.0...v1.10.1

Status code safety with `RedirectStatus` and `RenderStatus`!

09 Apr 21:26
f169aa0
Compare
Choose a tag to compare

👇 This release introduces two new linters, courtesy of @rzane! 👇

Betterment/RedirectStatus

The redirect_to method defaults to a 302 Found, but when redirecting a POST/PUT/PATCH/DELETE
to a GET location, the correct response code is 303 See Other.

This cop requires you to explictly provide an HTTP status code when redirecting from the create,
update, and destory actions. When autocorrecting, this will automatically add status: :see_other.

Betterment/RenderStatus

The render method defaults to a 200 OK. Calling render in the create, update, and destroy
actions often indicates error handling (e.g. 422 Unprocessable Entity).

This cop requires you to explicitly provide an HTTP status code when rendering a response in the
create, update, and destroy actions. When autocorrecting, this will automatically add
status: :unprocessable_entity or status: :ok depending on what you're rendering.