Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accept direct fsc arguments as input. #129

Merged
merged 2 commits into from
Oct 26, 2023
Merged

Accept direct fsc arguments as input. #129

merged 2 commits into from
Oct 26, 2023

Conversation

nojaf
Copy link
Contributor

@nojaf nojaf commented Oct 26, 2023

The use-case for this is:

  <Target Name="Analyzer"
          DependsOnTargets="Restore;ResolveAssemblyReferencesDesignTime;ResolveProjectReferencesDesignTime;ResolvePackageDependenciesDesignTime;FindReferenceAssembliesForReferences;_GenerateCompileDependencyCache;_ComputeNonExistentFileProperty;BeforeBuild;BeforeCompile;CoreCompile">
    <PropertyGroup>
      <AnalyzersPath>&quot;$(PkgNojaf_Chad_Analyzers)\analyzers\dotnet\fs&quot;</AnalyzersPath>
    </PropertyGroup>
    <Exec Command="dotnet tool restore" />
    <Exec Command="dotnet fsharp-analyzers --fsc-args &quot;@(FscCommandLineArgs)&quot; --analyzers-path $(AnalyzersPath) --verbose --report $(MSBuildProjectDirectory)\analysis.sarif" />
  </Target>

We will add more end-user / getting starting documentation shortly.

@nojaf nojaf requested a review from dawedawe October 26, 2023 11:38
Copy link
Contributor

@dawedawe dawedawe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome

@nojaf nojaf merged commit 740515e into ionide:master Oct 26, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants