Commit Graph

60 Commits (285793605a9f42afc6f151581bbc6f70c85c5b79)

Author SHA1 Message Date
sudo pacman -Syu b56aba18fe
feat: add stock mode (#37)
* feat: add stock flag

* feat: add formatter option stock

* feat: actually split stock import

* fix: missing flag when init cmd

* chore: add how to use stock mode

* chore: add stock mode in flag usage

* chore: remove dup

* chore: consistent docs
2023-07-10 20:41:08 +07:00
sudo pacman -Syu a4188fd5c6 chore: fix lint 2023-02-25 23:57:24 +07:00
sudo pacman -Syu bd8fef108c chore: clarify company prefix guide 2023-01-22 11:45:49 +07:00
sudo pacman -Syu e60f1202e6 feat: support multi company, split using , 2023-01-22 11:13:42 +07:00
sudo pacman -Syu 8d5c63b8db chore: improve docs 2023-01-17 23:58:44 +07:00
sudo pacman -Syu c2e4dc5abf feat: cache module name even when read dir to improve perf 2023-01-17 23:50:28 +07:00
sudo pacman -Syu c55bc093be feat: use sync.Pool to reuse bytes.Buffer
See https://github.com/cosmos/iavl/pull/453/files
2023-01-17 23:33:28 +07:00
sudo pacman -Syu b3769056e7 feat: add profiler 2023-01-17 18:17:28 +07:00
sudo pacman -Syu 76665bed73 feat: add go profiler 2023-01-17 18:10:07 +07:00
sudo pacman -Syu 635255864b feat: improve perf by use astFile for dstFile 2023-01-17 17:52:29 +07:00
sudo pacman -Syu bd64964fc1 feat: use errgroup to improve perf 2023-01-17 17:30:58 +07:00
sudo pacman -Syu cf624ad2ea chore: re-format 2023-01-17 17:21:39 +07:00
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 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 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 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 07458099e9
chore: format this project using this project :) 2022-11-28 01:11: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 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
sudo pacman -Syu 1d3685f57b
feat: parse imports and group imports std
- build std from packages when init
- add verbose and company flag
2022-11-26 02:10:19 +07:00