Commit graph

66 commits

Author SHA1 Message Date
6171a51720 Add explanation why Ruby 2022-06-07 10:34:12 +02:00
bfc0eb7e45 Bump version 2022-06-07 10:16:36 +02:00
f5ce138392 [#5] Load version file 2022-06-07 10:15:40 +02:00
32dc629db3 Update readme file.
Content stolen from the original git-format-staged repo
2022-06-07 10:14:43 +02:00
496cb08324 Bump version 2022-06-07 09:48:45 +02:00
477cc57f80 Pin commit for action-junit-report 2022-06-07 09:33:41 +02:00
667931bfc2 Strings for ruby versions 2022-06-07 09:31:58 +02:00
2dd04cac7b Run tests with ruby 2.7 and 3.0 2022-06-07 09:29:46 +02:00
7254cc338c Allow ruby >= 2.7 2022-06-07 09:25:41 +02:00
cd2dddcb3e Bump version 2022-06-06 11:56:22 +02:00
c738bc5eba Print exception message and exit 1 2022-06-06 11:55:43 +02:00
3c7bfbc437 Verify error messages 2022-06-06 11:50:57 +02:00
95633bfd9f Don’t write formatter output to object database if not updating the repo 2022-06-06 11:43:44 +02:00
aad741f8cc Only check for staged changes if writing output 2022-06-06 11:40:40 +02:00
7da4a0e0f0 Check that files stay unchanged in write mode. 2022-06-06 11:38:37 +02:00
9a18902495 Allow additional arguments to run_formatter 2022-06-06 11:34:19 +02:00
159c0ac25b Verify that a failing formatter fails the whole process 2022-06-06 11:32:59 +02:00
8d8471951a Add fail mode to test_hook.rb 2022-06-06 11:30:55 +02:00
2e59062454 Use git to check for empty index. 2022-06-06 11:27:39 +02:00
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