Commit graph

67 commits

Author SHA1 Message Date
c9f68d8373
add reminder to use fif --fix 2022-05-02 18:07:14 +10:00
fc45376673
updated copyright years, fixed reuse compliance
somehow i had listed the license as LGPL 3 instead of GPL 3 in all the reuse headers, and never noticed... 0uo
2022-01-23 03:10:17 +10:00
33f4eb4135
replace occurrences of "mimetype" w/ "MIME type" 2021-11-25 06:29:27 +10:00
28aa3ad783
updated formatting options 2021-11-06 01:30:34 +10:00
c0d8105731
report files renamed/skipped/failed in --fix mode 2021-10-13 23:53:55 +10:00
b5ef95b6ef
documentation 2021-10-06 01:33:15 +10:00
ce79cf14ba
licensing stuff via reuse tool 2021-10-06 00:24:08 +10:00
556ea82a06
added --fix - fif can now rename files itself!
this alone warrants a bump to 0.4.0 imo, and now that i think about it, there's not really much keeping me from calling it 1.0...
i think i'd want to get more tests, and maybe upgrade to clap 3 stable when that happens, before calling it 1.0, though. maybe even get some sort of configuration file...
2021-10-04 23:33:48 +10:00
c4fabbc0f4
refactoring, initial work on --fix feature 2021-10-04 20:22:15 +10:00
451ea3d5d9
cargo fmt, cargo update 2021-10-04 01:00:49 +10:00
3f40c61d6d
better output 0u0 2021-10-04 00:59:20 +10:00
5e17e4efda
improved multithreading behaviour, & a new flag!
`-j`/`--jobs` can be used to manually set the number of threads to use for scanning files. additionally, fif won't bother with multi-threaded scanning when there are less than 32 files to scan.
2021-09-25 18:55:50 +10:00
741048839c
replace remaining OnceCells w/ Lazys, simplifying
i prefer Lazy because it simplifies initialisation by a lot, allowing for the removal of stuff like `init_db()` and the `clap_version()` functions
2021-09-25 00:54:52 +10:00
a800be63f7
use SmartStrings in more places 2021-09-23 01:33:41 +10:00
bddd6caeb2
format 2021-09-23 01:21:15 +10:00
7c36061e03
finish the cleanup job started by #59c87a37
somehow i forgot to remove all the { unreachable!() } clutter which was one of the main reasons i did the refactor in the first place... 0uo
2021-09-23 01:03:20 +10:00
d625fef106
split fif into lib and bin 2021-08-28 17:54:01 +10:00
1f46bef10b
slightly nicer JSON write_all 2021-08-25 15:44:21 +10:00
a2ce336fe7
use unstable sort 2021-08-25 15:26:41 +10:00
ddde6acdd6
ignore_unknown_exts flag, slightly more testing 2021-08-07 00:19:30 +10:00
59c87a3729
minor refactoring to make formats.rs less icky 2021-07-24 16:21:20 +10:00
0d034a5c4b
minor logging changes
logs use abbreviated level names:
[D] example
instead of
[DEBUG] example

also, you can now use FIF_LOG instead of RUST_LOG
2021-07-01 18:52:53 +10:00
e511d215be
minor bash/pwsh output changes
- bash now uses a heredoc to ensure that cheeky filenames containing linebreaks don't escape the echo string
- powershell rename-item now has the verbose flag that i didn't know existed
- there is now a newline between the error and successful output lines
2021-06-18 17:42:16 +10:00
3b731a7c61
added --canonical-paths flag
Findings now takes a PathBuf instead of a reference to a Path but there's no noticeable performance change
2021-06-18 15:17:30 +10:00
ec4ad77136
donut repeat yourself 2021-06-14 17:54:11 +10:00
0278fe252e
kode kleanup 2021-06-14 17:08:52 +10:00
6934dd0b5e
move some commonly used constants into a single module 2021-06-14 17:07:38 +10:00
1ecc6e6c6e
semicolonic cleanse 2021-06-14 16:53:41 +10:00
f8dcdf8a3c
nicer output for fif -V and fif --version 2021-06-14 16:29:41 +10:00
95956f8e30
fixed powershell output format 0u0; 2021-06-13 19:24:21 +10:00
8dac4127e9
added text output format
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-07 15:21:47 +10:00
417893cae0
moved ScanError into findings.rs 2021-05-06 09:27:16 +10:00
0c0d3f12ea
new and improved rustfmt 2021-05-06 09:06:05 +10:00
b93e111357
added JSON output 2021-05-06 08:57:42 +10:00
8cca5097d4
writablesln! 2021-04-28 21:39:56 +10:00
a05af12352
fif now outputs the dir it was run from
- refactor Format function signatures to be more uniform
- add Shell and Bash aliases for Sh
2021-04-28 21:27:06 +10:00
d6974b4959
writables!, windows newlines, sorted changelog, always quote paths
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-26 20:19:58 +10:00
4d553587aa
fixed powershell output
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-20 19:00:56 +10:00
255665cae0
output is now sorted 0u0
sort order: files that couldn't be read, then files with no known mimetype, then files with no known extensions, then files with the wrong extension
2021-04-20 18:52:49 +10:00
dc2ac7b002
reformatting/reordering 2021-04-20 15:20:10 +10:00
e7637013eb
documented and cleaned up tests, renamed "Script" to "Shell", etc
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-14 18:25:46 +10:00
fb67c11eb6
add option for following symlinks, make extensions optional, new version!!
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2021-04-04 23:52:16 +10:00
129aa83ade
lots of stuff! and a version bump!! 0u0
All checks were successful
continuous-integration/drone/tag Build is passing
- extension_from_path now returns Option<&OsStr>
- two new tests
- Findings uses a Path instead of a PathBuf, reducing allocations
- some unnecessary stuff removed, thanks clippy
- that is all
2021-03-26 04:46:07 +10:00
40a90308a5
initial (and somewhat bonked) powershell support, cargo update 2021-03-26 00:28:03 +10:00
87dab7284f
test on alpine, clippy & rustfmt
Some checks failed
continuous-integration/drone/push Build is failing
2021-03-12 03:44:31 +10:00
e3af10cf5b
replaced some pathbufs with paths, made it actually compile and work 0uo
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-12 03:26:35 +10:00
5907309689 renamed modules in accordance with https://rust-lang.github.io/api-guidelines/naming.html 2021-03-01 19:21:00 +10:00
32da919f81 replace (ScanError, PathBuf) with just ScanError (which now contains a PathBuf) 2021-03-01 19:18:20 +10:00
31aaa80701
documentation!!! ≥50% coverage!!! wow!!!!! 2021-03-01 00:06:05 +10:00
d76ed2585d
tests and more!
- added unit tests
- replaced `target_os="linux"` with `unix`
- updated Cargo.toml to patch xdg-mime properly
2021-02-28 19:47:18 +10:00