This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use notify::{Config, RecommendedWatcher, RecursiveMode, Watcher}; | |
use reqwest::blocking::{multipart, Client}; | |
use std::fs; | |
use std::path::Path; | |
fn main() { | |
let path = std::env::args().nth(1).expect("Argument 1 needs to be a path"); | |
println!("Watching {path}"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<NsDepCopConfig IsEnabled="true" ChildCanDependOnParentImplicitly="true"> | |
<Allowed From="*" To="System.*" /> | |
<Allowed From="App.BusinessLogic.*" To="App.Domain.*" /> | |
<Allowed From="App.Infrastructure.*" To="App.BusinessLogic.*" /> | |
<Allowed From="App.Infrastructure.*" To="App.Persistance.*" /> | |
</NsDepCopConfig> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[DiagnosticAnalyzer(LanguageNames.CSharp)] | |
public class UnitTestAssembliesMustNotBeReferenced : DiagnosticAnalyzer | |
{ | |
public const string DiagnosticId = "Architecture"; | |
private static DiagnosticDescriptor Descriptor { get; } = | |
new DiagnosticDescriptor("AR0001", | |
"UnitTest assemblies must not be referenced by other assemblies", | |
"The assembly '{0}' references the unit test assembly: {1}", | |
category: "Architecture", |