Skip to content

Releases: crystal-ameba/ameba

v1.6.4

25 Nov 23:36
a21dea0
Compare
Choose a tag to compare

What's Changed

  • Optimize code to avoid intermediate array allocations ๐Ÿš€ by @Sija in #490
  • Use Mutex in JSONFormatter by @Sija in #494
  • Handle empty configuration as no configuration by @miry in #492
  • Misc refactors by @Sija in #498
  • Add Nil return types to methods with side-effects only by @Sija in #495
  • Raise when config is not a Hash by @Sija in #499
  • Adjust cursor position by the indent size only if valid by @Sija in #500
  • While passing file through STDIN we should lint just that by @Sija in #501
  • Allow passing single - argument as a means to accept file via STDIN by @Sija in #506
  • Disable autocorrection when source is passed through STDIN by @Sija in #515
  • Release 1.6.4 by @Sija in #516

New Contributors

  • @miry made their first contribution in #492

Full Changelog: v1.6.3...v1.6.4

v1.6.3

14 Oct 14:48
2addfb2
Compare
Choose a tag to compare

1000th commit release ๐Ÿš€

image

What's Changed

Full Changelog: v1.6.2...v1.6.3

v1.6.2

09 Oct 23:43
1abbb99
Compare
Choose a tag to compare

What's Changed

  • Do not report type declarations within lib definitions by @Sija in #443
  • Enhance Makefile by @straight-shoota in #445
  • Do not report type declarations within generic records by @Sija in #449
  • Exclude reporting type declarations passed as call arguments by @Sija in #450
  • Tweak Lint/UselessAssign rule by @Sija in #451
  • Remove naive solution for #447 by @Sija in #452
  • Tweak SpecFilename rule by @Sija in #455
  • Bump szenius/set-timezone from 1.2 to 2.0 by @dependabot in #458
  • Make sure we only return files from GlobUtils#expand method by @Sija in #460
  • Bump docker/build-push-action from 5 to 6 by @dependabot in #461
  • Revert to nil in Rule::Lint::Typos.BIN_PATH if Process.find_executable fails by @Sija in #465
  • Add cli flag to read from STDIN by @nobodywasishere in #466
  • Guard calls to the typos with a mutex by @Sija in #474
  • Release 1.6.2 by @Sija in #472

New Contributors

Full Changelog: v1.6.1...v1.6.2

v1.6.1

09 Jan 20:20
b6bd74e
Compare
Choose a tag to compare

What's Changed

  • Revert "Merge pull request #394 from stufro/388-raise-on-invalid-fileโ€ฆ by @Sija in #435
  • Make RuleConfig#properties accept only Call nodes by @Sija in #436
  • Add error to the RescuedExceptionsVariableName#allowed_names by @Sija in #438
  • Make Lint/SharedVarInFiber rule account for loop { ... } by @Sija in #439
  • Report unused type declarations in Lint/UselessAssign rule by @Sija in #430
  • v1.6.1 by @Sija in #434

Full Changelog: v1.6.0...v1.6.1

v1.6.0

25 Dec 21:48
Compare
Choose a tag to compare

Lucky Number Release (1+6+0 = 7) ๐Ÿ€

What's Changed

New Rules

  • Add Documentation/DocumentationAdmonition rule by @Sija in #380
  • Add Lint/Typos rule by @Sija in #381
  • Add Lint/SpecFilename rule by @Sija in #420
  • Add Naming/Filename rule by @Sija in #416
  • Add Naming/AccessorMethodName rule by @Sija in #415
  • Add Naming/AsciiIdentifiers rule by @Sija in #414
  • Add Naming/RescuedExceptionsVariableName rule by @Sija in #418
  • Add Naming/BlockParameterName rule by @Sija in #419
  • Add Naming/BinaryOperatorParameterName rule by @Sija in #421

This brings total number of rules to 77.

Bug Fixes

  • Raise error when passed invalid file paths by @stufro in #394
  • fix: crystal next compatibility by @veelenga in #407
  • Fix false positive with dynamic literals in Lint/LiteralsComparison by @Sija in #417
  • Do not report expanded arguments in ShadowingOuterLocalVar rule by @Sija in #426
  • Revert "Fix Performance/ExcessiveAllocations to exclude each calls without a block" by @Sija in #428

Refactors

  • Refactor --rules CLI switch output + add --describe <rule-name> CLI switch by @Sija in #390
  • Move naming-related rules into its own group by @Sija in #413
  • Move documentation-related rules into its own group by @Sija in #412
  • Make it easier to add issues for nodes with name location preference by @Sija in #422
  • Report symbol literals in Naming/AsciiIdentifiers rule by @Sija in #424
  • Make Lint/NotNilAfterNoBang report calls to #match by @Sija in #423
  • Prepare release 1.6.0 by @Sija in #425

Other

Full Changelog: v1.5.0...v1.6.0

v1.5.0

28 Jul 19:49
7b8316f
Compare
Choose a tag to compare

What's Changed

  • Fix severity type for YAML converter spec by @straight-shoota in #366
  • Update Dockerfile for Crystal 1.8 + check if binary works by @daliborfilus in #369
  • Make Lint/NotNilAfterNoBang report calls to #rindex by @Sija in #323
  • Raise when empty severity provided to SeverityYamlConverter.from_yaml by @Sija in #373
  • Add Lint/Documentation rule by @Sija in #374
  • Add AST::NodeVisitor::Category simplifying code a bit by @Sija in #378
  • Several tweaks and refactors by @Sija in #379
  • Fix Style/VerboseBlock rule to work with binary operations by @Sija in #384
  • Add Performance/ExcessiveAllocations rule by @Sija in #386
  • Add Performance/MinMaxAfterMap rule by @Sija in #387
  • Fix specs against Crystal nightly by @Sija in #376
  • Make postinstall portable by @straight-shoota in #391
  • Raise error when passed invalid config file path by @stufro in #393

New Contributors

Full Changelog: v1.4.3...v1.5.0

v1.4.3

17 Mar 08:33
7c74d19
Compare
Choose a tag to compare

What's Changed

  • Support hierarchical loading of the config file by @Sija in #361
  • Skip all config when use with --gen-config by @zw963 in #363

New Contributors

Full Changelog: v1.4.2...v1.4.3

v1.4.2

22 Feb 07:41
6f05df4
Compare
Choose a tag to compare

What's Changed

  • fix(lint): Lint/UnusedBlockArgument is triggered by abstract def by @veelenga in #355
  • fix(style): correct typo in Style/ParenthesesAroundCondition rule doc by @veelenga in #357
  • chore: fix crystal-nightly compatibility by @veelenga in #356

Full Changelog: v1.4.1...v1.4.2

v1.4.1

19 Feb 07:01
a806727
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.4.0...v1.4.1

v1.4.0

28 Jan 07:33
7d0fcd4
Compare
Choose a tag to compare

What's Changed

  • Add Lint/LiteralAssignmentsInExpressions rule by @Sija in #303
  • Add Lint/UnusedBlockArgument rule by @Sija in #320
  • Add Lint/MissingBlockArgument rule by @Sija in #321
  • Add Lint/Formatting rule by @Sija in #326
  • Add Style/ParenthesesAroundCondition rule by @Sija in #301, #302
  • Add Style/QueryBoolMethods rule by @Sija in #314
  • Add Severity#color by @Sija in #311
  • Refactor rulesโ€™ default group severity handling by @Sija in #310
  • Make boolean rule properties generate query-style methods by @Sija in #309
  • Refactor AST::Util#literal? helper by @Sija in #304
  • Refactors & Refinements by @Sija in #305, #312, #317
  • Tweak reported rule locations by @Sija in #337
  • Do not report anonymous block arguments in Lint/UnusedArgument by @Sija in #319
  • Extend Lint/UnusedArgument and Lint/UnusedBlockArgument rules with corrections by @Sija in #324
  • Add autocorrect for Style/UnlessElse by @FnControlOption in #325
  • Remove buggy auto-correction from Performance/AnyInsteadOfEmpty rule by @Sija in #341
  • Fix typos throughout the code by @Sija in #306
  • Specs cleanup by @Sija in #327
  • Remove OpenSSL from Docker image by @Sija in #328
  • Update CI definitions + add @dependabot by @Sija in #332, #335, #340
  • Tweak CI workflow + Makefile refactor by @Sija in #339
  • Build and push Docker images to GHCR by @Sija in #338
  • Refresh readme by @veelenga in #315

Full Changelog: v1.3.1...v1.4.0