Sijawusz Pur Rahnama
1b57e2cad5
Make Formatter::Util
extend itself for easier access
2023-11-05 06:08:40 +01:00
Sijawusz Pur Rahnama
3d3626accc
Introduced new presenter abstraction
2023-11-04 01:44:59 +01:00
Sijawusz Pur Rahnama
bede3f97a1
Colorize code in rule descriptions too
2023-11-04 00:49:11 +01:00
Sijawusz Pur Rahnama
8ff621ba66
Add --describe
CLI switch
2023-11-04 00:49:11 +01:00
Sijawusz Pur Rahnama
f1f21ac94d
Refactor --rules
CLI switch output
2023-11-04 00:49:11 +01:00
Sijawusz Pur Rahnama
1718945523
Refactor ExplainFormatter
a bit
2023-11-04 00:49:11 +01:00
Sijawusz Pur Rahnama
c9538220c6
Merge pull request #407 from crystal-ameba/crystal-next-compatibility
...
fix: crystal next compatibility
2023-10-09 23:47:32 +02:00
Vitalii Elenhaupt
789e1b77e8
fix: crystal next compatibility
...
refs https://github.com/crystal-lang/crystal/pull/11597
fixes https://github.com/crystal-ameba/ameba/issues/406
2023-10-06 18:57:39 +03:00
Sijawusz Pur Rahnama
7174e81a13
Merge pull request #401 from crystal-ameba/dependabot/github_actions/docker/login-action-3
...
Bump docker/login-action from 2 to 3
2023-09-12 23:41:13 +02:00
Sijawusz Pur Rahnama
29f84921b5
Merge pull request #402 from crystal-ameba/dependabot/github_actions/docker/build-push-action-5
...
Bump docker/build-push-action from 4 to 5
2023-09-12 23:41:02 +02:00
Sijawusz Pur Rahnama
c7f3fe78aa
Merge pull request #403 from crystal-ameba/dependabot/github_actions/docker/metadata-action-5
...
Bump docker/metadata-action from 4 to 5
2023-09-12 23:40:53 +02:00
Sijawusz Pur Rahnama
2d9db35ec4
Merge pull request #404 from crystal-ameba/dependabot/github_actions/docker/setup-qemu-action-3
...
Bump docker/setup-qemu-action from 2 to 3
2023-09-12 23:40:44 +02:00
Sijawusz Pur Rahnama
dfda3d7677
Merge pull request #405 from crystal-ameba/dependabot/github_actions/docker/setup-buildx-action-3
...
Bump docker/setup-buildx-action from 2 to 3
2023-09-12 23:40:34 +02:00
dependabot[bot]
0829f70256
Bump docker/setup-buildx-action from 2 to 3
...
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action ) from 2 to 3.
- [Release notes](https://github.com/docker/setup-buildx-action/releases )
- [Commits](https://github.com/docker/setup-buildx-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 21:20:47 +00:00
dependabot[bot]
53b311c5eb
Bump docker/setup-qemu-action from 2 to 3
...
Bumps [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action ) from 2 to 3.
- [Release notes](https://github.com/docker/setup-qemu-action/releases )
- [Commits](https://github.com/docker/setup-qemu-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: docker/setup-qemu-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 21:20:44 +00:00
dependabot[bot]
867ddb4fbd
Bump docker/metadata-action from 4 to 5
...
Bumps [docker/metadata-action](https://github.com/docker/metadata-action ) from 4 to 5.
- [Release notes](https://github.com/docker/metadata-action/releases )
- [Upgrade guide](https://github.com/docker/metadata-action/blob/master/UPGRADE.md )
- [Commits](https://github.com/docker/metadata-action/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: docker/metadata-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 21:20:41 +00:00
dependabot[bot]
6724f9a0e0
Bump docker/build-push-action from 4 to 5
...
Bumps [docker/build-push-action](https://github.com/docker/build-push-action ) from 4 to 5.
- [Release notes](https://github.com/docker/build-push-action/releases )
- [Commits](https://github.com/docker/build-push-action/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: docker/build-push-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 21:20:37 +00:00
dependabot[bot]
6389edc5fa
Bump docker/login-action from 2 to 3
...
Bumps [docker/login-action](https://github.com/docker/login-action ) from 2 to 3.
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](https://github.com/docker/login-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 21:20:34 +00:00
Vitalii Elenhaupt
0ab39a025b
Merge pull request #399 from crystal-ameba/dependabot/github_actions/actions/checkout-4
...
Bump actions/checkout from 3 to 4
2023-09-05 08:15:00 +03:00
dependabot[bot]
135ff87c7e
Bump actions/checkout from 3 to 4
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 21:50:31 +00:00
Vitalii Elenhaupt
18d193bd08
Merge pull request #394 from stufro/388-raise-on-invalid-file-path
...
Raise error when passed invalid file paths
2023-08-10 13:08:00 +03:00
Stuart Frost
f96cb01015
Ensure test cleanup occurs
2023-08-05 19:28:58 +01:00
Stuart Frost
1b85ba6f22
Refactor: use unless instead of if not
2023-08-05 19:28:47 +01:00
Stuart Frost
eb60b25c4e
Refactor building default globs
2023-08-05 16:15:50 +01:00
Stuart Frost
7690074cab
Conditionally add !lib to default globs
2023-08-04 21:48:35 +01:00
Vitalii Elenhaupt
7b8316f061
Bump v1.5.0
2023-07-28 22:40:22 +03:00
Stuart Frost
b2069ea4ff
Add extra test cases
2023-07-27 09:29:28 +01:00
Stuart Frost
e85531df6c
Rename test fixture to source.cr
2023-07-27 09:24:26 +01:00
Stuart Frost
07aebfc84a
Merge branch 'master' into 388-raise-on-invalid-file-path
2023-07-26 15:22:04 +01:00
Vitalii Elenhaupt
8ef588dc6d
Merge pull request #393 from stufro/362-raise-on-invalid-config-file-path
...
Raise error when passed invalid config file path
2023-07-26 17:19:44 +03:00
Stuart Frost
3b9c442e09
Raise error when passed invalid file paths
2023-07-26 15:01:59 +01:00
Stuart Frost
88e0437902
Move fixture file to spec/fixtures directory
2023-07-25 10:00:16 +01:00
Stuart Frost
4741c9f4c4
Reword generic error message on config load
2023-07-25 08:46:13 +01:00
Stuart Frost
d9b2d69055
Reword error when file doesn't exist
...
Applied suggestion from PR
Co-authored-by: Vitalii Elenhaupt <3624712+veelenga@users.noreply.github.com>
2023-07-25 08:43:49 +01:00
Stuart Frost
5f878fb40f
Move missing config file check into Ameba::Config
2023-07-24 19:10:52 +01:00
Stuart Frost
01a943d0d6
Raise error when passed invalid config file path
2023-07-24 15:30:38 +01:00
Sijawusz Pur Rahnama
8c9d234d0b
Merge pull request #391 from straight-shoota/feat/portability
...
Make postinstall portable
2023-07-16 20:42:37 +02:00
Johannes Müller
efa9c9dba0
Makefile: Remove run_file
target
2023-07-15 22:47:14 +02:00
Johannes Müller
15ce5437d1
Make postinstall
portable
...
Using `shards build` directly instead of `make build` improves portability a lot.
This should basically "just work" almost anywhere (including Windows). No need for `make` to be available and makefile compatibility doesn't matter either.
2023-07-15 10:13:53 +02:00
Johannes Müller
eacb9308a7
Utilize shards' executables
...
There's no need for copying the executables manually (which happens in both makefile targets `bin` and `run_file`).
Shards' `executables` takes care of that.
The makefile targets could potentially be dropped as well, I don't think there would be other uses case for those.
2023-07-15 10:13:53 +02:00
Sijawusz Pur Rahnama
a33f98624a
Merge pull request #376 from crystal-ameba/update-to-work-with-crystal-nightly
2023-07-11 23:50:14 +02:00
Sijawusz Pur Rahnama
33c8273866
Merge pull request #387 from crystal-ameba/feature/minmax-after-map-rule
...
Add `Performance/MinMaxAfterMap` rule
2023-07-10 16:17:53 +02:00
Sijawusz Pur Rahnama
327ed546b9
Apply suggestions from code review
...
Co-authored-by: Vitalii Elenhaupt <3624712+veelenga@users.noreply.github.com>
2023-07-10 16:09:01 +02:00
Sijawusz Pur Rahnama
ddff8d226b
Add Performance/MinMaxAfterMap
rule
2023-07-10 15:46:17 +02:00
Sijawusz Pur Rahnama
5cff76071a
No need for such micro-optimizations, LLVM takes care of those
2023-07-02 14:34:25 +02:00
Sijawusz Pur Rahnama
29e29b8e1d
Fix Performance/ExcessiveAllocations
to exclude each
calls without a block
2023-06-30 21:44:47 +02:00
Sijawusz Pur Rahnama
21051acfff
Merge pull request #386 from crystal-ameba/fix-issue-385
2023-06-30 20:58:56 +02:00
Sijawusz Pur Rahnama
abe5237802
Add Performance/ExcessiveAllocations
rule
2023-06-30 15:17:40 +02:00
Sijawusz Pur Rahnama
b7b21ffeb0
Merge pull request #384 from crystal-ameba/fix-issue-383
...
Fix `Style/VerboseBlock` rule to work with binary operations
2023-06-29 10:20:13 +02:00
Sijawusz Pur Rahnama
4d0125a0f3
Fix Style/VerboseBlock
rule to work with binary operations
2023-06-29 08:15:39 +02:00