Coder Social home page Coder Social logo

vsts-resharper-code-quality-task's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vsts-resharper-code-quality-task's Issues

Code Quality Analysis hangs

2019-08-02T06:57:33.7347904Z ##[debug]Evaluating condition for step: 'Automated code quality checks'
2019-08-02T06:57:33.7348602Z ##[debug]Evaluating: succeeded()
2019-08-02T06:57:33.7348676Z ##[debug]Evaluating succeeded:
2019-08-02T06:57:33.7348827Z ##[debug]=> True
2019-08-02T06:57:33.7348978Z ##[debug]Result: True
2019-08-02T06:57:33.7349169Z ##[section]Starting: Automated code quality checks
2019-08-02T06:57:33.7461366Z ==============================================================================
2019-08-02T06:57:33.7461432Z Task : Resharper Code Quality Analysis
2019-08-02T06:57:33.7461479Z Description : Runs the Resharper Command-Line Tool and fails the build if code quality issues are found
2019-08-02T06:57:33.7461531Z Version : 1.0.85
2019-08-02T06:57:33.7461567Z Author : Alan Wales
2019-08-02T06:57:33.7461608Z Help : More Information
2019-08-02T06:57:33.7461643Z ==============================================================================
2019-08-02T06:57:33.7601979Z ##[warning]Task 'ResharperCli' (1.0.85) is using deprecated task execution handler. The task should use the supported task-lib: https://aka.ms/tasklib
2019-08-02T06:57:33.7617665Z Preparing task execution handler.
2019-08-02T06:57:55.8002025Z Executing the powershell script: D:\a_tasks\ResharperCli_357e581f-2683-4ac4-aff6-2c2445f063c5\1.0.85\RunResharperCodeAnalysisTool.ps1
2019-08-02T06:57:55.8002809Z ##[debug]PowerShellHandler.Execute - AddCommand(D:\a_tasks\ResharperCli_357e581f-2683-4ac4-aff6-2c2445f063c5\1.0.85\RunResharperCodeAnalysisTool.ps1)
2019-08-02T06:57:55.8003359Z ##[debug]PowerShellHandler.Execute - Add argumentParameters
2019-08-02T06:57:55.8003960Z ##[debug]PowerShellHandler.Execute - AddParameter(commandLineInterfacePath=D:\a\1\s\Lib\Resharper)
2019-08-02T06:57:55.8004318Z ##[debug]PowerShellHandler.Execute - AddParameter(solutionOrProjectPath="D:\a\1\s\LearnWise.sln")
2019-08-02T06:57:55.8004637Z ##[debug]PowerShellHandler.Execute - AddParameter(failBuildLevelSelector=Error)
2019-08-02T06:57:55.8005313Z ##[debug]PowerShellHandler.Execute - AddParameter(failBuildOnCodeIssues=true)
2019-08-02T06:57:55.8005723Z ##[debug]PowerShellHandler.Execute - AddParameter(additionalArguments="/disable-settings-layers:SolutionPersonal")
2019-08-02T06:57:55.8006144Z ##[debug]PowerShellHandler.Execute - AddParameter(buildId=424)
2019-08-02T06:57:55.8006538Z ##[debug]PowerShellHandler.Execute - AddParameter(inspectCodeResultsPathOverride=D:\a\1\s\Resharper\CodeQualityResults.xml)
2019-08-02T06:57:55.8006957Z ##[debug]PowerShellHandler.Execute - AddParameter(resharperNugetVersion=Latest)
2019-08-02T06:57:55.9046112Z ##[debug]PowerShellHandler.Execute - Invoke
2019-08-02T06:57:56.1882132Z No pre-installed Resharper CLT was found, downloading the latest from nuget.org...
2019-08-02T06:58:26.6213252Z Resharper CLT downloaded
2019-08-02T06:58:27.4966919Z ##[debug]Using Resharper Code Analysis found at 'D:\a\1\a\JetBrains.ReSharper.CommandLineTools.2019.1.3\tools\InspectCode.exe'
2019-08-02T06:58:27.4967827Z Inspecting code for "D:\a\1\s\LearnWise.sln"
2019-08-02T06:58:27.4968104Z Invoking InspectCode.exe using arguments "D:\a\1\s\LearnWise.sln" /o:"D:\a\1\s\Resharper\CodeQualityResults.xml" "/disable-settings-layers:SolutionPersonal"
2019-08-02T06:59:18.2170973Z Warning: AddToWatches C:\Users\VssAdministrator\AppData\Local\Temp isDir=True rec=True will lead to listening of the folder we should not listen to (5pcs)[C:\Users\VssAdministrator\AppData\Local\Temp, C:\Users\VssAdministrator\AppData\Local\Temp\JetBrains, A:, C:, D:]. At: at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
2019-08-02T06:59:18.2172009Z at System.Environment.get_StackTrace()
2019-08-02T06:59:18.2172768Z at JetBrains.Application.FileSystemTracker.FileSystemTrackerImpl.AddToWatches(FileSystemPath path, Boolean isDirectory, Boolean watchRecursively)
2019-08-02T06:59:18.2172978Z at JetBrains.Application.FileSystemTracker.FileSystemTrackerImpl.AdviseDirectoryChanges(FileSystemPath directoryPath, Boolean watchRecursively)
2019-08-02T06:59:18.2174353Z at JetBrains.ProjectModel.FileSystemTrackerSolutionProxy.AdviseDirectoryChanges(FileSystemPath directoryPath, Boolean watchRecursively)
2019-08-02T06:59:18.2174530Z at JetBrains.ProjectModel.ProjectItemBase.DoAdviseFileSystemChanges()
2019-08-02T06:59:18.2174676Z at JetBrains.ProjectModel.ProjectItemBase.MyOpenVisitor.VisitProjectItem(IProjectItem projectItem)
2019-08-02T06:59:18.2174820Z at JetBrains.ProjectModel.RecursiveProjectVisitor.VisitProjectFolder(IProjectFolder projectFolder)
2019-08-02T06:59:18.2174981Z at JetBrains.ProjectModel.RecursiveProjectVisitor.VisitProjectFolder(IProjectFolder projectFolder)
2019-08-02T06:59:18.2175138Z at JetBrains.ProjectModel.RecursiveProjectVisitor.VisitProject(IProject project)
2019-08-02T06:59:18.2175282Z at JetBrains.ProjectModel.ProjectManagerBase.OpenProjectInstance(Pair2 projectInstanceWithLifetime) 2019-08-02T06:59:18.2175445Z at JetBrains.ProjectModel.ProjectManagerBase.<>c__DisplayClass22_0.<EnqueueOpenProjectInstance>b__0() 2019-08-02T06:59:18.2175602Z at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.<>c__DisplayClass21_0.<ExecuteTask>b__1() 2019-08-02T06:59:18.2175767Z at JetBrains.Util.ILoggerEx.Catch(ILogger th?s, Action F, ExceptionOrigin origin, LoggingLevel loggingLevel) 2019-08-02T06:59:18.2175913Z at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerBase.ExecuteTask(SolutionLoadTask task) 2019-08-02T06:59:18.2176054Z at JetBrains.ProjectModel.Tasks.SolutionLoadTasksSchedulerSync.ExecuteTasks() 2019-08-02T06:59:18.2176215Z at JetBrains.ProjectModel.SolutionManagerBase.CreateSolutionInstance(SolutionElement solutionElement, SolutionInstance solutionInstance) 2019-08-02T06:59:18.2176532Z at JetBrains.ProjectModel.ProjectsHost.SolutionHost.Impl.SolutionHostManager.OpenSolution(ISolutionMark solutionMark, Object cookie) 2019-08-02T06:59:18.2176682Z at JetBrains.CommandLine.InspectCode.Unattended.Console.InspectCodeProductMain.<>c__DisplayClass3_0.<OpenSolution>b__0() 2019-08-02T06:59:18.2176880Z at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action) 2019-08-02T06:59:18.2177034Z at JetBrains.CommandLine.InspectCode.Unattended.Console.InspectCodeProductMain.OpenSolution(FileSystemPath solutionFilePath, IShellLocks shellLocks, ILogger logger, SolutionHostManager solutionHost) 2019-08-02T06:59:18.2177212Z at JetBrains.CommandLine.InspectCode.Unattended.Console.InspectCodeProductMain.Main(Lifetime lifetime, IThreading invocator, IComponentContainer container, IShellLocks shellLocks, ILogger logger, IInspectCodeSettings settings, IProductCommandLineArguments argumentsRaw, IProductInfo productInfo) 2019-08-02T06:59:18.2177375Z at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) 2019-08-02T06:59:18.2177540Z at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) 2019-08-02T06:59:18.2177699Z at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) 2019-08-02T06:59:18.2177866Z at JetBrains.Application.Environment.RunsPublicStaticIntMain.<>c__DisplayClass0_0.<.ctor>b__0() 2019-08-02T06:59:18.2178007Z at JetBrains.Util.Logging.Logger.Catch(Action action) 2019-08-02T06:59:18.2178147Z at JetBrains.Threading.JetDispatcher.Closure.Execute() 2019-08-02T06:59:18.2178306Z at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket) 2019-08-02T06:59:18.2178976Z at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore() 2019-08-02T06:59:18.2179241Z at System.Windows.Threading.DispatcherOperation.InvokeImpl() 2019-08-02T06:59:18.2179458Z at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj) 2019-08-02T06:59:18.2179659Z at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 2019-08-02T06:59:18.2180428Z at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) 2019-08-02T06:59:18.2180635Z at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 2019-08-02T06:59:18.2180837Z at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state) 2019-08-02T06:59:18.2181049Z at System.Windows.Threading.DispatcherOperation.Invoke() 2019-08-02T06:59:18.2181248Z at System.Windows.Threading.Dispatcher.ProcessQueue() 2019-08-02T06:59:18.2181445Z at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 2019-08-02T06:59:18.2181658Z at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) 2019-08-02T06:59:18.2181861Z at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) 2019-08-02T06:59:18.2182245Z at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) 2019-08-02T06:59:18.2182551Z at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler) 2019-08-02T06:59:18.2182714Z at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) 2019-08-02T06:59:18.2182878Z at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) 2019-08-02T06:59:18.2183306Z at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 2019-08-02T06:59:18.2183472Z at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg) 2019-08-02T06:59:18.2183639Z at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame) 2019-08-02T06:59:18.2183801Z at JetBrains.Application.Environment.IJetHostEx.<>c__DisplayClass2_0.<RunHostMessageLoop>b__0(Lifetime lifetime) 2019-08-02T06:59:18.2183962Z at JetBrains.Lifetimes.Lifetime.Using(Action1 action)
2019-08-02T06:59:18.2184107Z at JetBrains.Application.Environment.IJetHostEx.RunHostMessageLoop(IComponentContainer containerEnv)
2019-08-02T06:59:18.2184251Z at JetBrains.Application.Environment.HostParameters.JetHostParametersCaller.RunMainLoop(ComponentContainer containerEnv)
2019-08-02T06:59:18.2184411Z at JetBrains.Application.Environment.JetEnvironment.InternalRun(JetHostParametersCaller host, ComponentContainer containerEnv)
2019-08-02T06:59:18.2184565Z at JetBrains.Application.Environment.JetEnvironment.CreateAndRun(Full hostparams)
2019-08-02T06:59:18.2184716Z at JetBrains.ReSharperAutomationTools.CommandLine.Common.Application.CommandLineProgram.Main(Assembly assembly, Type environmentZoneType, HostInfo hostInfo, ICommandLineProductInfo productInfo, String[] args, IJetHostMixin[] mixins)
2019-08-02T06:59:18.2184891Z at JetBrains.ReSharperAutomationTools.CommandLine.Common.Application.CommandLineProgram.Run[TZone,TProductInfo](String productHostShortName, String[] args)
2019-08-02T06:59:18.2185037Z at JetBrains.CommandLine.InspectCode.InspectCodeProgram.Main(String[] args)
2019-08-02T06:59:35.5559669Z Warning: PersistentIndexManager was requested about missing file: _references.js
2019-08-02T06:59:35.5560798Z Warning: PersistentIndexManager was requested about missing file: _references.js
2019-08-02T06:59:49.8547094Z Can't resolve reference System.Web.Helpers: Reference wasn't resolved by MsBuild: Could not resolve this reference. Could not locate the assembly "System.Web.Helpers". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
2019-08-02T06:59:49.8759990Z Can't resolve reference Elmah: Reference wasn't resolved by MsBuild: Could not resolve this reference. Could not locate the assembly "Elmah, Version=1.2.14706.0, Culture=neutral, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
2019-08-02T06:59:49.8760940Z Can't resolve reference System.Web.Http: Reference wasn't resolved by MsBuild: Could not resolve this reference. Could not locate the assembly "System.Web.Http". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
2019-08-02T06:59:49.8761048Z Can't resolve reference System.Web.Mvc: Reference wasn't resolved by MsBuild: Could not resolve this reference. Could not locate the assembly "System.Web.Mvc". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
2019-08-02T06:59:49.8761163Z Can't resolve reference Microsoft.Web.Infrastructure: Reference wasn't resolved by MsBuild: Could not resolve this reference. Could not locate the assembly "Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
2019-08-02T06:59:49.8761562Z Can't resolve reference LearnWise.Data: Reference wasn't resolved by MsBuild: Could not resolve this reference. Could not locate the assembly "LearnWise.Data". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
2019-08-02T06:59:49.8761657Z Can't resolve reference System.Web.Http.WebHost: Reference wasn't resolved by MsBuild: Could not resolve this reference. Could not locate the assembly "System.Web.Http.WebHost". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
2019-08-02T06:59:49.8761874Z Can't resolve reference Microsoft.Web.Infrastructure: Reference wasn't resolved by MsBuild: Could not resolve this reference. Could not locate the assembly "Microsoft.Web.Infrastructure". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
2019-08-02T06:59:49.8762291Z Can't resolve reference Microsoft.CodeDom.Providers.DotNetCompilerPlatform: Reference wasn't resolved by MsBuild: Could not resolve this reference. Could not locate the assembly "Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
2019-08-02T06:59:49.8762385Z Can't resolve reference Microsoft.CodeDom.Providers.DotNetCompilerPlatform: Reference wasn't resolved by MsBuild: Could not resolve this reference. Could not locate the assembly "Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
2019-08-02T06:59:49.8762758Z Can't resolve reference Antlr3.Runtime: Reference wasn't resolved by MsBuild: Could not resolve this reference. Could not locate the assembly "Antlr3.Runtime". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
2019-08-02T06:59:49.8762864Z Can't resolve reference Microsoft.Web.Infrastructure: Reference wasn't resolved by MsBuild: Could not resolve this reference. Could not locate the assembly "Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.
2019-08-02T07:00:51.6652181Z Warning: There are not reached sync points after 00:00:59 timeout: <len=2>
2019-08-02T07:00:51.6797119Z PsiCaches: Caches are running
2019-08-02T07:00:51.6797604Z StandalonePsiModuleAttributesCache: PsiModuleAttributeCache::Initial Update
2019-08-02T07:00:51.6797765Z
2019-08-02T07:27:39.9969977Z ##[error]The task has timed out.
2019-08-02T07:27:40.0464130Z ##[section]Finishing: Automated code quality checks

Azure DevOps with cached CLT throws "This Master Assembly Binder does not know how to load the assembly."

To speed up, I've added the CLT directly as a library to the Git repository. When not doing that, but letting the task download the CLT, everything works fine, but when I use the one in the Git repository, I get the following errors:

--- EXCEPTION #1/3 [ArgumentOutOfRangeException]
Message =
ExceptionPath = Root.InnerException.InnerException
ClassName = System.ArgumentOutOfRangeException
Data.ThreadLocalDebugInfo = Environment::Create
HResult = COR_E_ARGUMENTOUTOFRANGE=80131502
Source = JetBrains.Platform.Core
ParamName = assembly
ActualValue = "JetBrains.ReSharper.Psi.Cpp, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325"
StackTraceString = "
at JetBrains.Util.OnError.<>c.<.cctor>b__23_0(Exception ex)
at JetBrains.Application.Bindings.AssemblyBinderExtensions.BindToMetadataAssembly(IAssemblyMasterBinder th?s, AssemblyNameInfo assembly, MetadataLoader loader, OnError onerror)
at JetBrains.Application.Table.Emit.EmitCatalogTables.Assemblies.PreCreateAssemblyForCataloging(AssemblyNameInfo assnameAsRequested, EmitTimeTables tables, IAssemblyMasterBinder masterbinder, MetadataLoader metaloader)
at JetBrains.Application.Table.Emit.EmitCatalogTables.<>c__DisplayClass1_0.b__0(Lifetime lifetime)
"

--- Outer ---

--- EXCEPTION #2/3 [InvalidOperationException]
Message = "Failed to read assembly metadata when adding its parts to the catalog."
ExceptionPath = Root.InnerException
ClassName = System.InvalidOperationException
Data.Assembly = "JetBrains.ReSharper.Psi.Cpp, Version=777.0.0.0, Culture=neutral, PublicKeyToken=1010a0d8d6380325"
InnerException = "Exception #1 at Root.InnerException.InnerException"
HResult = COR_E_INVALIDOPERATION=80131509

--- Outer ---

--- EXCEPTION #3/3 [LoggerException]
Message = "Failed to read assembly metadata when adding its parts to the catalog."
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = "Exception #2 at Root.InnerException"

Interesting enough, I've checked your task and use the same NuGet command to download the CLT in the first place, the command being "nuget.exe install JetBrains.ReSharper.CommandLineTools -source https://api.nuget.org/v3/index.json". I've also directly copy & pasted the content of this folders, so I can't see a difference there.

CLI is downloaded into artifacts folder

Comment from Etienne Maheu copied from the VSTS Marketplace Q&A page:

Hello,

All the debugging we did this week made me notice an other small issue with your extension. You download the resharper cli nuget package straight in the artifact directory. This means that if no other task wipe the content of the directory after yours run, the publish artifact task will end up publishin the nuget packge.

I think a simple fix could be to download it in the source directory, though this might also cause issues for tasks that copies all nupkg files to the artifact directory later. At least, it wouldn't be there by default.

A better fix would be to do something similar to the "Use NuGet" task which stores its files in the tools folder, outside of the build directory. This is a bigger change because you will also have to consider than the file might stay there across build so it will impact how the package gets updated.

Anyway, just my two cents. It would be really appreciated if you could look into this.

I also see this behavior, and it slows down my builds significantly, would be really great if this can be fixed.

Anyway, thanks for the great work so far!

Regards,

Wouter

Support for **\*.sln

Are there any plans for adding support for ***.sln ?

If not, I would be happy to support a PR for it. My initial plan is looping over all found sln/csproj files, but if InspectCode.exe supported multiple files that would of course be best.

naming rules are not picked up correctly

i have the following line in my resharper settings

<s:String x:Key="/Default/CodeStyle/Naming/CSharpNaming/PredefinedNamingRules/=PrivateInstanceFields/@EntryIndexedValue">&lt;Policy Inspect="True" Prefix="m_" Suffix="" Style="aaBb" /&gt;</s:String> 

resharper in vs and the clt (when called manually) works fine but vsts addin still gives errors like:

warning : R# Name 'm_logger' does not match rule 'Instance fields (private)'. Suggested name is '_mLogger'.

Resharper Code Quality Analysis in Azure Dev Ops

Added the task in my ADO.
Given the .csproj
hen I run the build Task I am getting the following exception

##[error]A supported task execution handler was not found. The task does not carry an implementation that is compatible with your current operating system 'Windows(X86)'. Contact the task author for more details.

Issue with additionalArguments

Hi !

Since the "Migrate task to latest vsts runner" commit in August, the additionalArguments input is passed to the command line between double quotes.
While running in VS2017 Hosted Agent, it now fails if you pass more than 1 extra argument.

Task gives errors/warnings with angular projects

Hi,

I keep getting a huge amount of the following issues:

app-routing.module.ts(50,1): error : R# Symbol 'MachineModuleResolverService' cannot be properly resolved, probably it is located in inaccessible module 

Its part of an angular app that works just fine. I keep getting errors like these a lot, basically a couple for each file. Any suggestions? can i turn this task of for a specific path or something so the angular apps inside my asp.net core app are ignored?

Task fails when solution path contains space

From the marketplace page there have been some reports that this task fails when the path to the solution contains a space (either in a directory or the filename).
Who want to pick this one up?

DotSettings file not being picked up when running inspectcode.exe

I am running the following command:

inspectcode.x86.exe "E:\vsts-agents\agent1_work\1\s\src\AI.Core\AI.Core.csproj" /o:"E:\vsts-agents\agent1_work\1\a\CodeQualityResults.xml" /disable-settings-layers:SolutionPersonal

My dotsettings file lives here:

E:\vsts-agents\agent1_work\1\s\src\AI.Core.dotsettings

When I run the above command, the settings are not picked up. Is this because im specifying a project in a folder below the main solution folder. I.e.:

settings file here:
E:\vsts-agents\agent1_work\1\s\src\AI.Core.dotsettings

project here:
E:\vsts-agents\agent1_work\1\s\src\AI.Core\AI.Core.csproj

(a level below)

Why are they not being picked up? What am I doing wrong? Can the dotsettings file be set as an argument in the command line? Thanks in advance for your help.

ItemNotFound Exception for CodeInspection_9.xml

I get ItemNotFoundException for CodeInspection_9.xml file:

2018-05-03T05:08:20.8697803Z No pre-installed Resharper CLT was found, downloading the latest from nuget.org...
2018-05-03T05:08:44.4981487Z Resharper CLT downloaded
2018-05-03T05:08:44.5355725Z Inspecting code for "D:\a\1\s\NetCoreApp"
2018-05-03T05:08:44.5356269Z Invoking InspectCode.exe using arguments "D:\a\1\s\NetCoreApp" /o:"D:\a\1\a\JetBrains.ReSharper.CommandLineTools.2018.1.0\tools\Reports\CodeInspection_9.xml" /disable-settings-layers:SolutionPersonal

2018-05-03T05:08:56.8980764Z ##[error]System.Management.Automation.ItemNotFoundException: Cannot find path 'D:\a\1\a\JetBrains.ReSharper.CommandLineTools.2018.1.0\tools\Reports\CodeInspection_9.xml' because it does not exist.

Download settings file from a URL

Currently I have a powershell script that downloads our team settings file on a daily basis (from onedrive). This task could have an extra option where you enter the public URL of your settings file that gets downloaded before the CLI is run and is passed as an option.
Who's interested in this feature?

Additional Parameter are not picked up correctly

Hello Alan,

thank you for this extension. I have a question regarding the "Additional arguments" format.

I tried this:

/disable-settings-layers:SolutionPersonal /targets-for-items:"_ResolveInputArguments;DatronLocalization"

But the task fail:

2019-05-23T09:44:02.5049086Z ##[error]Found value /targets-for-items="_ResolveInputArguments;DatronLocalization" with no corresponding named parameter

What is the correct format?

thank you.
Alexander

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.