Robert Dailey
d9086895f0
ci: Do full build in SonarCloud step
...
If we just build the test code, that won't build everything.
3 years ago
Robert Dailey
a377ec5e75
chore: Switch to GitVersion
...
https://github.com/GitTools/GitVersion
3 years ago
Robert Dailey
bf473d3eae
build: Use latestmajor for LangVersion
3 years ago
Robert Dailey
d7295d4820
build: Move to Composite Ready2Run
3 years ago
Robert Dailey
0da080f56f
build: Disable PublishTrimmed
...
Trimming is too risky and generates too many warnings
3 years ago
Robert Dailey
fadd8bd5de
test: Clean up composition root tests
3 years ago
Robert Dailey
3973bccd7e
build: Move publish settings to Trash.csproj
...
This allows seeing any build issues earlier (before publish)
3 years ago
Robert Dailey
2d21ffeb38
test: Unit test fixes for GitRepository
...
GitRepository now lazily-constructs its internal Repository object. This
makes the class testable since it no longer does a lot of work in its
constructor. Previously, the string passed to it had to be valid for the
Repository object to accept it.
3 years ago
Robert Dailey
258ac508d5
refactor: Better ProgressBar code
...
- Uses Rx
- Doesn't require threads/locking
- Cleans up analysis issues
3 years ago
Robert Dailey
2fd1601619
fix: Better error handling in git code
...
Code for cloning the repository refactored to handle failures better.
Namely this means deleting the repository and cloning it again if there
is a failure.
3 years ago
Robert Dailey
4869bae216
build: New projects for VersionControl code
3 years ago
Robert Dailey
38ac68dbb7
refactor: New FileUtilities class
...
For recursively deleting read-only directories.
3 years ago
Robert Dailey
62c3e5c6a2
fix: Check setting before disabling cert validation
...
Also add a warning log to make it clear to the user that certificate
validation has been disabled.
3 years ago
Robert Dailey
3d9dc185b1
chore: Self-signed certificate file for debugging
3 years ago
Robert Dailey
38c59827bc
chore: Add settings reference link to README
3 years ago
Robert Dailey
94b95c1fb4
feat: Add setting to bypass SSL certificate validation
...
Useful in cases where Sonarr or Radarr use HTTPS with a self-signed
certificate. Normally communication with such an instance would fail
since Trash Updater, by default, validates with certificate authorities.
This new setting allows you to disable certificate validation when
communicating with Sonarr or Radarr, avoiding the need to add a
self-signed certificate to your certification store. Use at your own
risk.
Fixes #20 .
3 years ago
Robert Dailey
d540cf37c9
feat: Add JSON schema for settings
3 years ago
Robert Dailey
dfb981ffc2
docs: Fix bad vanity link in settings reference
3 years ago
Robert Dailey
0c10134c36
docs: Add version info to settings reference page
3 years ago
Robert Dailey
2fe29f3b16
feat: settings functionality
...
A settings file, `settings.yml` is now available which stores global
configuration such as the clone URL for the Github Trash repository.
3 years ago
Robert Dailey
b6b6ebda9e
chore: Reformatted a little bit in README
3 years ago
Robert Dailey
3d4b44a0ed
chore: Sort packages in root targets file
3 years ago
Robert Dailey
a64347e96f
chore: Add TrimNewlines() string extension method
3 years ago
Robert Dailey
3641b93dbb
chore: Upgrade AutoMapper to v11
3 years ago
Robert Dailey
1cb6354faf
chore: Allow longer attributes on a single line
3 years ago
Robert Dailey
a33c3f1d32
chore: move ServiceCommand to new directory
3 years ago
Robert Dailey
592d217020
refactor: Move yaml deserializer creation logic to a factory
3 years ago
Robert Dailey
88633392a9
refactor: Autofac support in AutoMockData
3 years ago
Robert Dailey
498644c0e8
chore: Reorganize Config code
3 years ago
Robert Dailey
45e6bd6a3b
ci: Fix broken code coverage in SonarCloud
...
- Properly format coverlet coverage report
- Set path to coverage reports
Documented here:
- https://github.com/coverlet-coverage/coverlet/issues/955
- https://github.com/coverlet-coverage/coverlet/blob/master/Documentation/VSTestIntegration.md#passing-runsettings-arguments-through-commandline
3 years ago
Robert Dailey
dc056204fe
ci: Add code coverage collection to SonarCloud
3 years ago
Robert Dailey
084b87e96d
build: Add Coverlet package to unit tests
3 years ago
Robert Dailey
c0659cab3e
chore: Make all test packages private
3 years ago
Robert Dailey
74b9fe7d89
build: Upgrade System.IO.Abstractions from v14 to v16
3 years ago
Robert Dailey
6820e785d9
test: introduce AutoFixture library and support code
3 years ago
Robert Dailey
d8eac2e381
chore: sort package references in root props file
3 years ago
Robert Dailey
814418a002
chore: formatting settings
3 years ago
Robert Dailey
593740900a
refactor: convert to file-scoped namespaces
3 years ago
Robert Dailey
e67b4296b3
chore: remove CPP specific settings in editorconfig
3 years ago
Robert Dailey
f2c117da66
chore: require newline before while in editorconfig
3 years ago
Robert Dailey
3f0583a05a
build: Lock libgit2sharp to 0.27 preview builds
3 years ago
Robert Dailey
bf84a88876
chore: update release notes for last fix
3 years ago
Robert Dailey
7451b8526c
refactor: Remove IServiceCommand from composition root
...
Registering this type fails the unit tests because it cannot be
constructed unless you use Lazy<> otherwise it throws due to the active
service command not being set yet in the IActiveServiceCommandProvider
class.
3 years ago
Robert Dailey
8d1706ca02
fix: Autofac exception when resolving IServiceCommand
3 years ago
Robert Dailey
b0bbb23d3b
build: disable CLS compliance for all projects
...
This is to silence an analysis warning.
3 years ago
Robert Dailey
90c46c52cf
build: AllEnabledByDefault for AnalysisMode
3 years ago
Robert Dailey
bc36c27307
build: upgrade System.IO.Abstractions package
3 years ago
Robert Dailey
b7e85e2307
build: remove explicit net analyzers package
3 years ago
Robert Dailey
ee3cfec50a
refactor: use correct container types through code base
...
From Sonarcloud code smell list
3 years ago
Robert Dailey
ebb924da12
refactor: address sonarcloud/analyzer code smells and warnings
3 years ago