Commit Graph

105 Commits

Author SHA1 Message Date
Lynne Megido a570b07672
release v0.7.1 🥳 2024-01-21 17:04:58 +10:00
Lynne Megido 5017854dd3
clippy, format 2023-03-15 06:51:29 +10:00
Lynne Megido acd33980e9
clippy cleanup 2022-09-04 13:48:54 +10:00
Lynne Megido 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
Lynne Megido c06a7a527a
release v0.5.0 🥳 2022-01-01 13:31:08 +10:00
Lynne Megido 667ee440e0
use parking_lot's rwlock, cargo update 2021-11-23 08:38:43 +10:00
Lynne Megido 44e14fbfba
updated formatting options 2021-11-06 02:43:08 +10:00
Lynne Megido c0d8105731
report files renamed/skipped/failed in --fix mode 2021-10-13 23:53:55 +10:00
Lynne Megido 58d5ac7e75
mostly just formatting 2021-10-06 01:41:08 +10:00
Lynne Megido b5ef95b6ef
documentation 2021-10-06 01:33:15 +10:00
Lynne Megido ce79cf14ba
licensing stuff via reuse tool 2021-10-06 00:24:08 +10:00
Lynne Megido 955f0e1510
litl bit more testing 2021-10-05 04:47:33 +10:00
Lynne Megido 47c55ae61e
bumped MSRV to 1.48.0, minor improvements
- this is the rust version that debian stable (buster) currently has, so that's nice
- now we can use `const fn`s in more places, hooray
- smartstring is no longer outdated, hooray
- bitflags is no longer outdated, hooray
- mime_type in files.rs is now a bit smarter about not reading more than it has to, hooray
- removed some redundant clippy lints, hooray
- added a teensy smidgen more documentation, hooray
2021-10-05 02:12:16 +10:00
Lynne Megido 17a784732b
beeg beeg cleanup, set default prompt to error 2021-10-05 00:18:42 +10:00
Lynne Megido 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
Lynne Megido c4fabbc0f4
refactoring, initial work on --fix feature 2021-10-04 20:22:15 +10:00
Lynne Megido 4c6163296c
flat_map_iter is 11% faster than flat_map 0uo 2021-09-25 19:55:32 +10:00
Lynne Megido 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
Lynne Megido 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
Lynne Megido c2e6738f6b
use Lazy instead of OnceCell for MIMEDB 2021-09-24 23:53:02 +10:00
Lynne Megido 8a7cbca461
cargo fmt, rearranging use statements
by setting `group_imports = "StdExternalCrate"` in `rustfmt.toml`, cargo fmt/rustfmt rearranges your use statements into three groups:
- std/core/alloc,
- followed by external crates,
- followed by self/super/crate
2021-09-24 18:11:25 +10:00
Lynne Megido fb81f26ff5
cargo fmt 2021-08-28 17:59:04 +10:00
Lynne Megido 557f5132ff
new files module 2021-08-28 17:58:30 +10:00
Lynne Megido d625fef106
split fif into lib and bin 2021-08-28 17:54:01 +10:00
Lynne Megido 0404cff8b7
release v0.3.4 🥳 2021-08-07 00:42:07 +10:00
Lynne Megido ddde6acdd6
ignore_unknown_exts flag, slightly more testing 2021-08-07 00:19:30 +10:00
Lynne Megido c3adaea88c
a minor multitude of meager modifications
- clippy.sh now works if you're a weirdo with spaces in their $HOME path
- a """performance optimisation""" to utils.rs so minor that i would be surprised if it saved the world one microwatt of electricity over my entire lifespan
- cargo update
- removed useless extension_from_path function
2021-08-01 01:44:17 +10:00
Lynne Megido 59c87a3729
minor refactoring to make formats.rs less icky 2021-07-24 16:21:20 +10:00
Lynne Megido 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
Lynne Megido 4f78d93975
code cleanup 2021-06-18 15:36:05 +10:00
Lynne Megido 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
Lynne Megido d0a6e918cc
block compilation if both backends are enabled 2021-06-14 18:23:49 +10:00
Lynne Megido bd1a2a3e3a
print some more handy info in trace logs 2021-06-14 17:35:47 +10:00
Lynne Megido 6934dd0b5e
move some commonly used constants into a single module 2021-06-14 17:07:38 +10:00
Lynne Megido 1ecc6e6c6e
semicolonic cleanse 2021-06-14 16:53:41 +10:00
Lynne Megido 8dac4127e9
added text output format
All checks were successful
continuous-integration/drone/push Build is passing
2021-06-07 15:21:47 +10:00
Lynne Megido 8341c4aaf7
rename `dirs` parameter to `dir` 2021-05-09 00:23:03 +10:00
Lynne Megido 81347a7658
mime_extension_lookup takes essence_str directly, videos aliases to video
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-08 00:32:44 +10:00
Lynne Megido 64efb0de27
merge webUI changes, fmt
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-06 09:29:20 +10:00
Lynne Megido 417893cae0
moved ScanError into findings.rs 2021-05-06 09:27:16 +10:00
Lynne Megido 0c0d3f12ea
new and improved rustfmt 2021-05-06 09:06:05 +10:00
Lynne Megido b93e111357
added JSON output 2021-05-06 08:57:42 +10:00
Lynne Megido 090e4adafe
release v0.3.0!! \0u0/
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
2021-04-28 23:21:27 +10:00
Lynne Megido 8cca5097d4
writablesln! 2021-04-28 21:39:56 +10:00
Lynne Megido 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
Lynne Megido cb6e111f16
more comprehensive ext sets, link text/xml and application/xml, remove silly Powershell/PowerShell hack 2021-04-28 19:33:42 +10:00
Lynne Megido fc51f8128a
rustfmt 2021-04-27 20:26:01 +10:00
Lynne Megido 7e3efbed5c
added exclude flag for excluding extensions
All checks were successful
continuous-integration/drone/push Build is passing
2021-04-27 20:25:41 +10:00
Lynne Megido 40bdac274f
minor cleanup 2021-04-26 22:32:43 +10:00
Lynne Megido 889b2e2316
move ExtensionSet stuff into parameters.rs 2021-04-26 22:17:57 +10:00