Releases: crystal-ameba/ameba
Releases ยท crystal-ameba/ameba
v1.6.4
What's Changed
- Optimize code to avoid intermediate array allocations ๐ by @Sija in #490
- Use
Mutex
inJSONFormatter
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 viaSTDIN
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
Full Changelog: v1.6.3...v1.6.4
v1.6.3
1000th commit release ๐
What's Changed
- Ignore block parameter names starting with
_
by @Sija in #476 - Fix portable variable assignments in
Makefile
by @straight-shoota in #478 - Use
make
in CI by @Sija in #480 - Give the
Makefile
a subtle massage by @Sija in #479 - Fix trailing space in Makefile by @straight-shoota in #481
crystal tool format
with Crystal 1.15.0-dev by @straight-shoota in #482- Add
split
andlines
to the allocating method names inPerformance/ChainedCallWithNoBang
rule by @Sija in #483 - Cleanups by @Sija in #484
- fix(lint): useless assign with method call within a condition by @veelenga in #485
- Release 1.6.3 by @Sija in #486
Full Changelog: v1.6.2...v1.6.3
v1.6.2
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
inRule::Lint::Typos.BIN_PATH
ifProcess.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
- @nobodywasishere made their first contribution in #466
Full Changelog: v1.6.1...v1.6.2
v1.6.1
What's Changed
- Revert "Merge pull request #394 from stufro/388-raise-on-invalid-fileโฆ by @Sija in #435
- Make
RuleConfig#properties
accept onlyCall
nodes by @Sija in #436 - Add
error
to theRescuedExceptionsVariableName#allowed_names
by @Sija in #438 - Make
Lint/SharedVarInFiber
rule account forloop { ... }
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
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 excludeeach
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
- Bump actions/checkout from 3 to 4 by @dependabot in #399
- Bump docker/setup-buildx-action from 2 to 3 by @dependabot in #405
- Bump docker/setup-qemu-action from 2 to 3 by @dependabot in #404
- Bump docker/metadata-action from 4 to 5 by @dependabot in #403
- Bump docker/build-push-action from 4 to 5 by @dependabot in #402
- Bump docker/login-action from 2 to 3 by @dependabot in #401
- Fix GitHub Actions CI badge in
README.md
by @Sija in #427
Full Changelog: v1.5.0...v1.6.0
v1.5.0
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
- @daliborfilus made their first contribution in #369
- @stufro made their first contribution in #393
Full Changelog: v1.4.3...v1.5.0
v1.4.3
v1.4.2
v1.4.1
What's Changed
- Remove gitter badge by @veelenga in #346
- Remove Travis CI references from
README.md
by @Sija in #348 - Remove SWUbanner by @Sija in #349
- Bump docker/build-push-action from 3 to 4 by @dependabot in #350
- fix(lint): useless assignment for type definition by @veelenga in #351
New Contributors
- @dependabot made their first contribution in #350
Full Changelog: v1.4.0...v1.4.1
v1.4.0
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
andLint/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