Commit graph

47 commits

Author SHA1 Message Date
47363ad14b Fail if test_hook cannot be run 2022-06-06 10:58:40 +02:00
f4657ba967 Expand test hook to return empty output if line #clear is in input + write spec for test hook. 2022-06-06 10:42:09 +02:00
ba54c407cb [#1] Fail if all files are reset to committed version. 2022-06-06 10:18:05 +02:00
d00760732d Specify branch name with git init 2022-06-05 13:19:08 +02:00
b138a43b80 Gemfile.lock 2022-06-05 13:03:58 +02:00
c76200e4a6 Configure git 2022-06-05 13:03:51 +02:00
6eab549d8a Fix yaml 2022-06-05 13:00:07 +02:00
b1c6f0bff7 Ignore rspec.xml 2022-06-05 12:57:42 +02:00
64d2eb9a43 Add github action for rspec 2022-06-05 12:57:27 +02:00
3711acbec3 Test basic functionality 2022-06-05 12:40:48 +02:00
736f394281 Set tab size 2022-05-29 12:51:43 +02:00
d52e6ea10e Prepare for testing 2022-05-29 12:17:28 +02:00
29f580b431 Prepare for rspec tests 2022-05-29 11:14:54 +02:00
9fd78ac2e1 Create top-level module 2022-05-29 10:47:07 +02:00
6fd8bb9ce7 Error out if negative pattern is specified 2022-05-29 10:34:50 +02:00
9339382f59 Formatting 2022-05-29 10:24:55 +02:00
948ab8604b Run rubocop via Rakefile 2022-05-29 10:20:33 +02:00
2b26a3aa0e Add code-scanning-rubocop to Gemfile 2022-05-29 10:05:04 +02:00
664cb4d690 Rubocop config 2022-05-29 09:54:52 +02:00
98302d88ea Single quotes 2022-05-29 09:54:43 +02:00
5f8af000ee More refactoring 2022-05-29 09:45:13 +02:00
d933f690d4 Split run into smaller methods 2022-05-29 09:41:43 +02:00
f41d9dbb39 Initialize using options ahsh 2022-05-29 09:40:39 +02:00
3ca8d24b88
Merge pull request #4 from 5sw/colors
Color output
2022-05-29 09:31:37 +02:00
2b75e3b608 Don’t split lines where not needed 2022-05-29 09:29:08 +02:00
77bab64a12 Message for updating the working copy 2022-05-29 09:28:16 +02:00
4fea7d525e Colour output 2022-05-29 09:25:09 +02:00
b8b7cc8d12 Cleanup 2022-05-26 09:32:49 +02:00
eb0aa2105c Lint 2022-05-26 09:29:09 +02:00
bb0a3a80c4 Add colorize gem + cli option 2022-05-26 09:16:14 +02:00
33c5566838 Merge branch 'main' of github.com:5sw/format-staged 2022-05-26 08:56:36 +02:00
d2a41716b2 Add rdoc comments to classes. 2022-05-25 22:02:48 +02:00
c534bb04f6
Create GitHub action to run rubocop 2022-05-25 21:32:21 +02:00
19703bfaa1 Bump version 2022-05-25 21:10:50 +02:00
ccd69238c7 Add .ruby-version 2022-05-25 21:10:08 +02:00
d594c5239e Don’t dump patch in verbose mode 2022-05-25 21:03:26 +02:00
19bea3495c Read output from git patch 2022-05-25 21:02:05 +02:00
721ded5e42 Add example pre-commit hook 2022-05-25 20:38:40 +02:00
b5c1f4b55f Bump version 2022-05-25 20:21:56 +02:00
58e1e2402c Add Rakefile 2022-05-25 20:21:33 +02:00
47a691a8e9 More lint stuff 2022-05-25 19:54:22 +02:00
83b6b8f61a rubocop -A 2022-05-25 19:25:35 +02:00
561a403b4e Run rubocop -a 2022-05-25 19:13:01 +02:00
b5a376a52b Add Rubocop dependency 2022-05-25 19:10:33 +02:00
e07bafcfbf Add Gemfile 2022-05-25 19:06:26 +02:00
4598a41859 Initial commit 2022-05-22 20:07:57 +02:00
992b52db44
Initial commit 2022-05-22 12:13:24 +03:00