| 
					
				 | 
			
			
				@@ -5,6 +5,12 @@ const path = require("path"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const filePath = process.argv[2]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const content = fs.readFileSync(filePath, "utf8"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const Eyo = require("eyo-kernel"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const safeEyo = new Eyo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+safeEyo.dictionary.loadSafeSync(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const unsafeEyo = new Eyo(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+unsafeEyo.dictionary.loadNotSafeSync(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function mainAct() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   const errors = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -98,4 +104,25 @@ if (filePath.endsWith(".txt")) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   const pRes = paragraph(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   const pYou = you(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (pRes || pYou) process.exit(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  let isYo = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  safeEyo.lint(content).forEach(({ before, after, position }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    isYo = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    console.error( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      `${path.basename(filePath)}:${position.line}:${ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        position.column 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }:error:Замените "${before}" на "${after}"` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  unsafeEyo.lint(content).forEach(({ before, after, position }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    isYo = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    console.error( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      `${path.basename(filePath)}:${position.line}:${ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        position.column 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }:warning:Вероятно, "${before}" пишется как "${after}"` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    ); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  if (isYo) process.exit(1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |