├── .gitignore ├── LICENSE ├── README.md ├── azure-pipelines.yml ├── regenerateRulesDefinition.ps1 ├── sampleProject ├── readme.md ├── sonar-project.properties └── src │ ├── test.ps1 │ ├── test2.ps1 │ └── test3.ps1 └── sonar-ps-plugin ├── .classpath ├── .gitignore ├── .project ├── .settings ├── org.eclipse.core.resources.prefs ├── org.eclipse.jdt.core.prefs └── org.eclipse.m2e.core.prefs ├── pom.xml └── src ├── main ├── java │ └── org │ │ └── sonar │ │ └── plugins │ │ └── powershell │ │ ├── Constants.java │ │ ├── PowershellLanguage.java │ │ ├── PowershellPlugin.java │ │ ├── PowershellQualityProfile.java │ │ ├── ScriptAnalyzerRulesDefinition.java │ │ ├── ast │ │ └── Tokens.java │ │ ├── fillers │ │ ├── CComplexityFiller.java │ │ ├── CpdFiller.java │ │ ├── HalsteadComplexityFiller.java │ │ ├── HighlightingFiller.java │ │ ├── IFiller.java │ │ ├── IssuesFiller.java │ │ └── LineMeasuresFiller.java │ │ ├── issues │ │ └── PsIssue.java │ │ ├── readers │ │ ├── IssuesReader.java │ │ └── TokensReader.java │ │ └── sensors │ │ ├── BaseSensor.java │ │ ├── ScriptAnalyzerSensor.java │ │ └── TokenizerSensor.java └── resources │ ├── parser.ps1 │ ├── powershell-profile.xml │ ├── powershell-rules.xml │ ├── schemas │ ├── issuesSchema.xsd │ └── parserSchema.xsd │ └── scriptAnalyzer.ps1 └── test ├── java └── org │ └── sonar │ └── plugins │ └── powershell │ ├── PowershellQualityProfileTest.java │ ├── ScriptAnalyzerRulesDefinitionTest.java │ ├── ScriptAnalyzerSensorTest.java │ ├── TokenizerSensorFileAnalysisTest.java │ └── readers │ ├── IssuesReaderTest.java │ └── TokensReaderTest.java └── resources ├── powershell-rules.xml ├── results ├── psanalyzer.xml ├── psanalyzerSingle.xml ├── tokens.xml └── tokensSingle.xml └── testFiles ├── test.ps1 └── test2.ps1 /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/README.md -------------------------------------------------------------------------------- /azure-pipelines.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/azure-pipelines.yml -------------------------------------------------------------------------------- /regenerateRulesDefinition.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/regenerateRulesDefinition.ps1 -------------------------------------------------------------------------------- /sampleProject/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sampleProject/readme.md -------------------------------------------------------------------------------- /sampleProject/sonar-project.properties: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sampleProject/sonar-project.properties -------------------------------------------------------------------------------- /sampleProject/src/test.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sampleProject/src/test.ps1 -------------------------------------------------------------------------------- /sampleProject/src/test2.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sampleProject/src/test2.ps1 -------------------------------------------------------------------------------- /sampleProject/src/test3.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sampleProject/src/test3.ps1 -------------------------------------------------------------------------------- /sonar-ps-plugin/.classpath: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/.classpath -------------------------------------------------------------------------------- /sonar-ps-plugin/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /sonar-ps-plugin/.project: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/.project -------------------------------------------------------------------------------- /sonar-ps-plugin/.settings/org.eclipse.core.resources.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/.settings/org.eclipse.core.resources.prefs -------------------------------------------------------------------------------- /sonar-ps-plugin/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/.settings/org.eclipse.jdt.core.prefs -------------------------------------------------------------------------------- /sonar-ps-plugin/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/.settings/org.eclipse.m2e.core.prefs -------------------------------------------------------------------------------- /sonar-ps-plugin/pom.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/pom.xml -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/Constants.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/Constants.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/PowershellLanguage.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/PowershellLanguage.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/PowershellPlugin.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/PowershellPlugin.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/PowershellQualityProfile.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/PowershellQualityProfile.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/ScriptAnalyzerRulesDefinition.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/ScriptAnalyzerRulesDefinition.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/ast/Tokens.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/ast/Tokens.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/fillers/CComplexityFiller.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/fillers/CComplexityFiller.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/fillers/CpdFiller.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/fillers/CpdFiller.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/fillers/HalsteadComplexityFiller.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/fillers/HalsteadComplexityFiller.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/fillers/HighlightingFiller.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/fillers/HighlightingFiller.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/fillers/IFiller.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/fillers/IFiller.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/fillers/IssuesFiller.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/fillers/IssuesFiller.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/fillers/LineMeasuresFiller.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/fillers/LineMeasuresFiller.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/issues/PsIssue.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/issues/PsIssue.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/readers/IssuesReader.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/readers/IssuesReader.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/readers/TokensReader.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/readers/TokensReader.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/sensors/BaseSensor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/sensors/BaseSensor.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/sensors/ScriptAnalyzerSensor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/sensors/ScriptAnalyzerSensor.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/sensors/TokenizerSensor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/java/org/sonar/plugins/powershell/sensors/TokenizerSensor.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/resources/parser.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/resources/parser.ps1 -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/resources/powershell-profile.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/resources/powershell-profile.xml -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/resources/powershell-rules.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/resources/powershell-rules.xml -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/resources/schemas/issuesSchema.xsd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/resources/schemas/issuesSchema.xsd -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/resources/schemas/parserSchema.xsd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/resources/schemas/parserSchema.xsd -------------------------------------------------------------------------------- /sonar-ps-plugin/src/main/resources/scriptAnalyzer.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/main/resources/scriptAnalyzer.ps1 -------------------------------------------------------------------------------- /sonar-ps-plugin/src/test/java/org/sonar/plugins/powershell/PowershellQualityProfileTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/test/java/org/sonar/plugins/powershell/PowershellQualityProfileTest.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/test/java/org/sonar/plugins/powershell/ScriptAnalyzerRulesDefinitionTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/test/java/org/sonar/plugins/powershell/ScriptAnalyzerRulesDefinitionTest.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/test/java/org/sonar/plugins/powershell/ScriptAnalyzerSensorTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/test/java/org/sonar/plugins/powershell/ScriptAnalyzerSensorTest.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/test/java/org/sonar/plugins/powershell/TokenizerSensorFileAnalysisTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/test/java/org/sonar/plugins/powershell/TokenizerSensorFileAnalysisTest.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/test/java/org/sonar/plugins/powershell/readers/IssuesReaderTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/test/java/org/sonar/plugins/powershell/readers/IssuesReaderTest.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/test/java/org/sonar/plugins/powershell/readers/TokensReaderTest.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/test/java/org/sonar/plugins/powershell/readers/TokensReaderTest.java -------------------------------------------------------------------------------- /sonar-ps-plugin/src/test/resources/powershell-rules.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/test/resources/powershell-rules.xml -------------------------------------------------------------------------------- /sonar-ps-plugin/src/test/resources/results/psanalyzer.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/test/resources/results/psanalyzer.xml -------------------------------------------------------------------------------- /sonar-ps-plugin/src/test/resources/results/psanalyzerSingle.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/test/resources/results/psanalyzerSingle.xml -------------------------------------------------------------------------------- /sonar-ps-plugin/src/test/resources/results/tokens.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/test/resources/results/tokens.xml -------------------------------------------------------------------------------- /sonar-ps-plugin/src/test/resources/results/tokensSingle.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/test/resources/results/tokensSingle.xml -------------------------------------------------------------------------------- /sonar-ps-plugin/src/test/resources/testFiles/test.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/test/resources/testFiles/test.ps1 -------------------------------------------------------------------------------- /sonar-ps-plugin/src/test/resources/testFiles/test2.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/gretard/sonar-ps-plugin/HEAD/sonar-ps-plugin/src/test/resources/testFiles/test2.ps1 --------------------------------------------------------------------------------