Skip to content

Commit

Permalink
Merge pull request #421 from muno92/feature-420
Browse files Browse the repository at this point in the history
Add option for big solution
  • Loading branch information
muno92 authored Oct 29, 2023
2 parents 7cebc81 + 0d43091 commit 7467b12
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,22 @@ StyleCop.StyleCop,ReSharperPlugin.CognitiveComplexity
The directory to run the command in. All paths (solution path, include/exclude patterns, etc) are
also relative to this directory.

### noBuild

- true
- false (default)

et you specify whether to build the target solution before starting the analysis.
By default, InspectCode always builds the solution.

More info: https://www.jetbrains.com/help/resharper/InspectCode.html#inspection-parameters

### cacheHome

Lets you specify a custom location for the data that InspectCode caches.

More info: https://www.jetbrains.com/help/resharper/InspectCode.html#inspection-parameters

## Usage

```yaml
Expand Down
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ inputs:
extensions:
required: false
description: Comma-separated list of extensions to install.
noBuild:
required: false
default: 'false'
description: Let you specify whether to build the target solution before starting the analysis. By default (false), InspectCode always builds the solution.
cachesHome:
required: false
description: Lets you specify a custom location for the data that InspectCode caches.
runs:
using: 'node20'
main: 'dist/index.js'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "resharper_inspectcode",
"version": "1.8.5",
"version": "1.9.0",
"private": true,
"description": "Run ReSharper Inspection action",
"main": "lib/main.js",
Expand Down
10 changes: 10 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@ async function run(): Promise<void> {
.replace(/(,\s?)|(;\s?)/g, ';')}`
}

const noBuild = core.getInput('noBuild') ?? ''
if (noBuild.toLowerCase() === 'true') {
command += ' --no-build'
}

const cachesHome = core.getInput('cachesHome') ?? ''
if (cachesHome !== '') {
command += ` --caches-home=${cachesHome}`
}

const workingDir: string = core.getInput('workingDirectory')
if (workingDir) {
core.debug(`Changing to working directory: ${workingDir}`)
Expand Down

0 comments on commit 7467b12

Please sign in to comment.