diff --git a/src/dscanner/analysis/autofix.d b/src/dscanner/analysis/autofix.d index fc444773..60ff663a 100644 --- a/src/dscanner/analysis/autofix.d +++ b/src/dscanner/analysis/autofix.d @@ -16,7 +16,7 @@ import dscanner.analysis.config : StaticAnalysisConfig; import dscanner.analysis.run : analyze, doNothing; import dscanner.utils : readFile, readStdin; -void resolveAutoFixes( +private void resolveAutoFixes( ref Message message, string fileName, ref ModuleCache moduleCache, @@ -30,7 +30,7 @@ void resolveAutoFixes( tokens, m, analysisConfig, overrideFormattingConfig); } -void resolveAutoFixes(string messageCheckName, AutoFix[] autofixes, string fileName, +private void resolveAutoFixes(string messageCheckName, AutoFix[] autofixes, string fileName, ref ModuleCache moduleCache, scope const(Token)[] tokens, const Module m, const StaticAnalysisConfig analysisConfig, @@ -77,6 +77,7 @@ void resolveAutoFixes(string messageCheckName, AutoFix[] autofixes, string fileN ~ " to resolve autofix with."); } +/// void resolveAutoFixFromCheck( ref AutoFix autofix, BaseAnalyzer check, @@ -95,7 +96,7 @@ void resolveAutoFixFromCheck( ); } -AutoFix.CodeReplacement[] resolveAutoFix(string messageCheckName, AutoFix.ResolveContext context, +private AutoFix.CodeReplacement[] resolveAutoFix(string messageCheckName, AutoFix.ResolveContext context, string fileName, ref ModuleCache moduleCache, scope const(Token)[] tokens, const Module m, @@ -109,6 +110,7 @@ AutoFix.CodeReplacement[] resolveAutoFix(string messageCheckName, AutoFix.Resolv return temp.expectReplacements("resolving didn't work?!"); } +/// void listAutofixes( StaticAnalysisConfig config, string resolveMessage, diff --git a/src/dscanner/analysis/rundmd.d b/src/dscanner/analysis/rundmd.d index a0a56fc6..aba777f0 100644 --- a/src/dscanner/analysis/rundmd.d +++ b/src/dscanner/analysis/rundmd.d @@ -299,7 +299,7 @@ MessageSet analyzeDmd(string fileName, ASTCodegen.Module m, const char[] moduleN * * If no includes are specified, all modules are included. */ -bool shouldRunDmd(check : BaseAnalyzerDmd)(const char[] moduleName, const ref StaticAnalysisConfig config) +private bool shouldRunDmd(check : BaseAnalyzerDmd)(const char[] moduleName, const ref StaticAnalysisConfig config) { enum string a = check.name; diff --git a/src/dscanner/main.d b/src/dscanner/main.d index e486adb1..23573de0 100644 --- a/src/dscanner/main.d +++ b/src/dscanner/main.d @@ -31,7 +31,7 @@ import dscanner.outliner; import dscanner.symbol_finder; import dscanner.analysis.run; import dscanner.analysis.config; -import dscanner.analysis.autofix; +import dscanner.analysis.autofix : listAutofixes; import dscanner.dscanner_version; import dscanner.utils;