YoshiRulz
ccb69b18a9
Use a global import for `System.*`
2024-07-03 22:51:48 +10:00
YoshiRulz
0067dd4b0a
Extract helper method `HawkFile.PathContainsPipe`
2024-07-03 20:38:46 +10:00
Morilli
955e35b61f
simplify away FileInfo calls
2024-05-23 06:04:37 +02:00
Moritz Bender
362269c982
Establish basic style analyzer rules ( #3759 )
...
* Fix analyzer nullable error
can't disable them in CA1305 xdd
* .editorconfig -> .globalconfig
* Add basic set of style analyzer rules
* dotnet format output
* Some additional fixes
* Apply manual simplification
* Transform some enum comparisons
* fix typo
* add TODO
2023-08-30 23:08:21 +02:00
Morilli
c10d2927ca
bump AnalysisModeUsage to Recommended
...
fixes CA2211, CA2215, CA2241, CA2251
silence CA1816 because it's unnecessary
reduce severity of CA2201 because I like the concept but don't wanna fix them all
2023-08-14 14:18:45 -07:00
Morilli
8e557b0b9d
bump AnalysisModeGlobalization to Recommended
...
fixes CA1304, CA1309, CA1310, CA1311
temporarily silences CA1305
reduce severity of CA2101
2023-08-14 14:18:45 -07:00
YoshiRulz
140e340a8d
Add Analyzer rule to warn of `FirstOrDefault` on list of structs
2022-07-28 03:06:01 +10:00
YoshiRulz
8ac4dabaf7
Enable MA0012 and MA0014 and fix noncompliance
...
"Do not raise reserved exception type" and
"Do not raise System.ApplicationException type"
now mostly compliant with
https://docs.microsoft.com/en-us/dotnet/standard/design-guidelines/using-standard-exception-types
2022-07-22 03:51:43 +10:00
YoshiRulz
b3d344b002
Fix conflated indices in `SharpCompressArchiveFile`
...
fixes 6cc4b0e28
2022-05-30 07:59:54 +10:00
YoshiRulz
5424cd3123
Warn when binding an archive member whose length is 0
2022-02-05 21:04:48 +10:00
YoshiRulz
40cf608eef
Deduplicate file extension list in RomLoader
2021-08-24 10:30:30 +10:00
YoshiRulz
517be084ab
Replace Debug.WriteLine w/ Util.DebugWriteLine
...
(or `Console.WriteLine` if it's in `#if DEBUG`)
bonus wtf: 2 calls in Database were to `WriteLine(string, string)` overload, not
the intended `WriteLine(string, params object[])` overload
2021-07-27 15:14:13 +10:00
YoshiRulz
73a780674d
Add tests for decompressing/extracting archives
2021-01-22 08:22:58 +10:00
YoshiRulz
0f21944755
Fix NRE when enumerating archive members to HawkArchiveFileItems
...
SharpCompress does this for .tar.gz it seems
2021-01-22 08:18:57 +10:00
zeromus
c5d908cc69
HawkFile: limit attempts to dearchive to files with extension .zip, .7z, .rar. fixes #2587
2021-01-20 15:20:55 -05:00
YoshiRulz
1ccac956d8
Rearrange statements, preserving execution order
2021-01-20 16:34:25 +10:00
YoshiRulz
55e066a0cc
Use a consistent format for file extensions throughout HawkFile
...
also cleanup `Bind*` overloads
2021-01-20 16:31:09 +10:00
YoshiRulz
476295ccec
Remove unused HawkFile static helpers
2020-08-07 16:30:17 +10:00
zeromus
fd30826655
experimental ffmpeg downloading: in place of the ffmpeg encode settings is a download form. This downloads it to the prescribed local location. It then checks to make sure it is the EXACT required version -- the only version we support
2020-07-24 22:25:00 -04:00
YoshiRulz
135490c740
Enable CS1572, CS1574, and CS1734, and fix noncompliance
...
malformed references or wrong XML tag
2020-06-20 21:31:15 -04:00
YoshiRulz
f37b74c4ba
Enable CS1570 and fix noncompliance
...
malformed XML
2020-06-20 21:31:15 -04:00
adelikat
22a2bb7dc8
see true for more info, but is anything really true?
2020-05-28 08:15:49 -05:00
YoshiRulz
ab1dca3e41
Fix NRE on passing empty string to LoadRom, simplify HawkFile creation
...
HawkFile now correctly sets FullPathWithoutMember to "" and Exists to false,
meaning RomLoader will return false instead of crashing.
2020-05-21 17:00:43 +10:00
YoshiRulz
3a3b22c03b
Move projects to src subdir (breaks build)
2020-05-03 10:57:38 +10:00