Comments (2)
@JustinGrote here is an example:
# PSScriptAnalyzerSettings.psd1
@{
Rules = @{
PSAlignAssignmentStatement = @{
Enable = $false
CheckHashtable = $false
}
}
}
# test_file.ps1
$dict = @{
foo = "bar"
basdasdasd = "zoom"
}
With the following setup, running Invoke-ScriptAnalyzer -Settings ./PSScriptAnalyzerSettings.psd1 -Path ./test_file.ps1 -Fix
does not result in any changes to the file. But if I hit Ctrl+S inside of vscode, the file is auto-formatted as follows:
$dict = @{
foo = "bar"
basdasdasd = "zoom"
}
despite the fact that I have set
PSAlignAssignmentStatement = @{
Enable = $false
CheckHashtable = $false
}
from vscode-powershell.
Is there a specific issue with this setting that is not reading your settings file?
from vscode-powershell.
Related Issues (20)
- Review: 1.90.0 VSCode Native PowerShell IntelliSense Issues HOT 5
- VS Code PowerShell Extension Fails to Load: Continuous Spinning Indicator and Console Prompt Absence HOT 2
- Intellisense for "[PSCustomObject]" leaves an extra close square bracket causing a syntax error HOT 2
- The PowerShell icon is not showing in the activity bar HOT 3
- Code refactoring such as inline or extract as function HOT 1
- Getting ParseException when opening PowerShell extension terminal in VS code. HOT 3
- Code Formatter: Don't remove module names from cmdlet calls HOT 4
- Problema ao clonar um repositório HOT 3
- Variable in Watch pane expression is not evaluated in the current function's scope
- Auto Correct Aliases incorrectly expands DSC resources name thinking its an alias of a cmdlet
- No output coming after giving command as "node mongotest.js" as command in powershell HOT 2
- "Format Document" removes stream redirection operators when "powershell.codeFormatting.whitespaceBetweenParameters": true, changing semantics of code HOT 1
- PSExtension not retrieving all packages with Find-PackageProvider
- Use the progress indicator when IntelliSense is running HOT 3
- IntelliSense is not triggered by trigger characters
- Plan of porting over some features from PowerShell Pro Tools extension
- Powershell terminal rendering cuts off text or scrambles text HOT 5
- Test support for Powershell intellisense in Codepilot chat code blocks HOT 2
- Memory leak until the system freezes
- Extension fails to activate when starting a script.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-powershell.