Commit Graph

165 Commits (514ea9d5e9ba26dce63df57072f3c8b6a16631a0)

Author SHA1 Message Date
sudo pacman -Syu 6bbfd7b94c fix: update 2 times with dstFile 2023-01-17 17:20:05 +07:00
sudo pacman -Syu 031a349461 chore: log flags when verbose 2023-01-17 16:09:35 +07:00
sudo pacman -Syu 7fc100d359 feat: use uber-go/automaxprocs 2023-01-17 16:06:36 +07:00
sudo pacman -Syu 01da9ebb16 chore: remove buggy side effect 2023-01-17 12:00:20 +07:00
sudo pacman -Syu a38b02f135 chore(changelog): generate v0.0.3 2023-01-17 11:58:13 +07:00
sudo pacman -Syu a9f7cab6f0 chore: reformat a little bit 2023-01-17 11:57:14 +07:00
sudo pacman -Syu b17a39b0dd feat: ignore empty imports 2023-01-17 11:57:14 +07:00
sudo pacman -Syu 5209660b88 chore: use bytes.Equal instead of bytes.Compare 2023-01-17 11:57:14 +07:00
sudo pacman -Syu 02501123af fix: panic if format import spec empty 2023-01-17 11:57:14 +07:00
sudo pacman -Syu 92bcf25979 feat: switch to use dst 2023-01-17 11:57:14 +07:00
sudo pacman -Syu a3174aa386 chore: add make clean 2023-01-17 10:27:31 +07:00
dependabot[bot] 1f29d172b1 chore(deps): bump golang.org/x/tools from 0.4.0 to 0.5.0
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.4.0 to 0.5.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.4.0...v0.5.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-01-06 00:05:34 +07:00
dependabot[bot] 043870eece chore(deps): bump github.com/urfave/cli/v2 from 2.23.6 to 2.23.7
Bumps [github.com/urfave/cli/v2](https://github.com/urfave/cli) from 2.23.6 to 2.23.7.
- [Release notes](https://github.com/urfave/cli/releases)
- [Changelog](https://github.com/urfave/cli/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/urfave/cli/compare/v2.23.6...v2.23.7)

---
updated-dependencies:
- dependency-name: github.com/urfave/cli/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-12 17:38:48 +07:00
dependabot[bot] 1f09f86cd2 chore(deps): bump golang.org/x/tools from 0.3.0 to 0.4.0
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.3.0 to 0.4.0.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.3.0...v0.4.0)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-07 17:57:21 +07:00
dependabot[bot] 8cbb7e79f1 chore(deps): bump github.com/urfave/cli/v2 from 2.23.5 to 2.23.6
Bumps [github.com/urfave/cli/v2](https://github.com/urfave/cli) from 2.23.5 to 2.23.6.
- [Release notes](https://github.com/urfave/cli/releases)
- [Changelog](https://github.com/urfave/cli/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/urfave/cli/compare/v2.23.5...v2.23.6)

---
updated-dependencies:
- dependency-name: github.com/urfave/cli/v2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-05 17:52:18 +07:00
sudo pacman -Syu 6119f3562b
chore: more comment 2022-11-28 12:22:10 +07:00
sudo pacman -Syu 7e1dc2df7d
chore: fix typo 2022-11-28 11:36:53 +07:00
sudo pacman -Syu 965880e09b
chore(changelog): generate v0.0.2 2022-11-28 11:29:28 +07:00
sudo pacman -Syu e487a1f413
chore: add badges 2022-11-28 11:29:16 +07:00
sudo pacman -Syu fc717199d5
chore: better explain side effect README 2022-11-28 11:26:29 +07:00
sudo pacman -Syu 065e5ec321
feat: custom printer ast 2022-11-28 11:14:32 +07:00
sudo pacman -Syu a341a91279
refactor: no need importNameAndPath 2022-11-28 10:55:16 +07:00
sudo pacman -Syu 2345460d3d
refactor: rewrite parser mode 2022-11-28 10:35:50 +07:00
sudo pacman -Syu a5302aef53
feat: add parser.SkipObjectResolution 2022-11-28 10:31:05 +07:00
sudo pacman -Syu 854e1a8974
chore: fix whitespace 2022-11-28 01:23:10 +07:00
sudo pacman -Syu 07458099e9
chore: format this project using this project :) 2022-11-28 01:11:04 +07:00
sudo pacman -Syu d5d0bfc7ea
chore(changelog): generate v0.0.1 2022-11-28 01:00:04 +07:00
sudo pacman -Syu 2155c56e16
fix: ignore not go file and go generated error 2022-11-28 00:58:50 +07:00
sudo pacman -Syu 6ba5552560
feat: implement format dir 2022-11-28 00:54:56 +07:00
sudo pacman -Syu de45843925
feat: write file actually 2022-11-28 00:39:59 +07:00
sudo pacman -Syu 7e155245db
feat: remove sort imports
use gofumpt or gofmt
2022-11-28 00:37:04 +07:00
sudo pacman -Syu 1c6c554a49
chore: add install, usage in README 2022-11-28 00:36:32 +07:00
sudo pacman -Syu 5a62dae185
chore: add roadmap 2022-11-27 01:23:06 +07:00
sudo pacman -Syu 7bb5fc7d63
feat: ignore empty import 2022-11-27 01:20:35 +07:00
sudo pacman -Syu 57e4bbd4d7
feat: sort imports using default Go (wip) 2022-11-27 01:14:51 +07:00
sudo pacman -Syu 6463559962
chore: print path when diff 2022-11-27 01:08:34 +07:00
sudo pacman -Syu e8097aea19
feat: print diff 2022-11-27 01:07:15 +07:00
sudo pacman -Syu 2e435dd37b
refactor: rewrite formatImportSpecs to eliminate dupe 2022-11-27 00:57:52 +07:00
sudo pacman -Syu c8a2bac5f1
fix: not copy import spec directly but use basic lit 2022-11-27 00:51:18 +07:00
sudo pacman -Syu 5e87f5eca8
chore: remove useless check import empty 2022-11-27 00:33:37 +07:00
sudo pacman -Syu c0206fbef4
fix: force update ast decls when single import 2022-11-27 00:23:28 +07:00
sudo pacman -Syu 30f79e9322
feat: actually print file from ast 2022-11-27 00:08:16 +07:00
sudo pacman -Syu ec9ec20189
feat: rewrite all logic to single loop ast.Decl (wip) 2022-11-26 23:27:15 +07:00
sudo pacman -Syu 1889ddb517
feat: support combine multi import decl (wip)
copy from goimports-reviser
2022-11-26 17:00:15 +07:00
sudo pacman -Syu 8edb24314f
feat: split local, company, third party imports 2022-11-26 16:26:41 +07:00
sudo pacman -Syu a030fec81f
refactor: pkgName -> moduleName 2022-11-26 12:42:05 +07:00
sudo pacman -Syu f6471ab9d6
feat: cache module name of path 2022-11-26 12:40:34 +07:00
sudo pacman -Syu 7f351b49f6
feat: get module name from path 2022-11-26 12:39:34 +07:00
sudo pacman -Syu 2fe4e8ec27
feat: query go.mod 2022-11-26 12:34:28 +07:00
sudo pacman -Syu c921e92d75
feat: sort import (wip) 2022-11-26 02:18:55 +07:00