Skip to content

Commit

Permalink
Merge branch 'onDocumentChange'
Browse files Browse the repository at this point in the history
  • Loading branch information
ChuckJonas committed May 5, 2020
2 parents 604b393 + d647631 commit 7a38ad9
Show file tree
Hide file tree
Showing 76 changed files with 2,797 additions and 625 deletions.
8 changes: 8 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"parser": "@typescript-eslint/parser",
"parserOptions": { "ecmaVersion": 2020, "sourceType": "module" },
"extends": ["plugin:@typescript-eslint/recommended", "prettier/@typescript-eslint", "plugin:prettier/recommended"],
"rules": {
"@typescript-eslint/explicit-function-return-type": [0]
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules
.sfdx
.vscode-test
bin/pmd.zip
pmd-packager/target
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"trailingComma": "es5",
"tabWidth": 2,
"printWidth": 120,
"semi": true,
"singleQuote": true
}
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ src/**
tsconfig.json
vsc-extension-quickstart.md
.sfdx
pmd-packager/**
8 changes: 8 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ All notable changes to the VS Code Apex PMD will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.5.0]
### Added
- Ability to run PMD on file change

### Change
- Long overdue refactors to simplify code
- Removed unneeded pmd dist files (reduced package size by 80%!)

## [0.4.10]
### Change
- upgraded to PMD 6.23
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Allows you to run [Apex Static Analysis](https://pmd.github.io/latest/index.html

- Run analysis on file open
- Run analysis on file save
- Run analysis on file change (new!)
- Run analysis on entire workspace
- Run analysis on single file
- Ability to define your own ruleset
Expand All @@ -26,6 +27,7 @@ Allows you to run [Apex Static Analysis](https://pmd.github.io/latest/index.html
- `rulesets` (optional): set to override default ruleset (see "Defining your own ruleset" for more details)
- `runOnFileOpen`: run every time a file is opened in vscode
- `runOnFileSave`: run every time a file is saved
- `runOnFileChange`: Run when a file is changed. NOTE: this is "debounced" to prevent performance issues. Delay can be adjusted via `onFileChangeDebounce`.
- `priorityErrorThreshold`: Determines at what priority level 'errors' will be added. Anything less will be a warning or hint
- `priorityWarnThreshold`: Determines at what priority level 'warnings' will be added. Anything less will be a hint
- `enableCache`: Creates a cache file for PMD to run faster. Will create a .pmdCache file in your workspace
Expand All @@ -49,7 +51,7 @@ NOTE: If you move away from the default ruleset in an sfdx project, make sure to

### Using custom rules written in Java

If you want to use your own [custom rules](https://pmd.github.io/latest/pmd_userdocs_extending_writing_pmd_rules.html) from a jar file, then the jar file must be on the classpath. By default, the PMD folder and the workspace root folder are included in the classpath. You can add further folders using the `additionalClassPaths` setting. This ["Hello world"](https://github.com/andrewgilbertsagecom/pmd-custom-rule-sample) example is a good starting place for beginners.
If you want to use your own [custom rules](https://pmd.github.io/latest/pmd_userdocs_extending_writing_pmd_rules.html) from a jar file, then the jar file must be on the classpath. By default, the PMD folder and the workspace root folder are included in the classpath. You can add further folders using the `additionalClassPaths` setting. This ["Hello world"](https://github.com/andrewgilbertsagecom/pmd-custom-rule-sample) example is a good starting place for beginners.

## Developing/Contributing

Expand Down
Binary file removed bin/pmd/lib/ant-1.10.1.jar
Binary file not shown.
Binary file added bin/pmd/lib/ant-1.9.4.jar
Binary file not shown.
Binary file removed bin/pmd/lib/ant-launcher-1.10.1.jar
Binary file not shown.
Binary file added bin/pmd/lib/ant-launcher-1.9.4.jar
Binary file not shown.
Binary file removed bin/pmd/lib/common_2.13-4.2.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/fastparse-utils_2.13-1.0.1.jar
Binary file not shown.
Binary file removed bin/pmd/lib/fastparse_2.13-1.0.1.jar
Binary file not shown.
Binary file removed bin/pmd/lib/fastparse_2.13-2.1.3.jar
Binary file not shown.
Binary file removed bin/pmd/lib/groovy-2.4.7.jar
Binary file not shown.
Binary file removed bin/pmd/lib/jline-2.14.6.jar
Binary file not shown.
Binary file removed bin/pmd/lib/lenses_2.13-0.9.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/parsers_2.13-4.2.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-cpp-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-cs-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-dart-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-fortran-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-go-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-groovy-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-java-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-javascript-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-jsp-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-kotlin-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-lua-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-matlab-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-modelica-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-objectivec-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-perl-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-php-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-plsql-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-python-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-ruby-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-scala-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-swift-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-ui-6.21.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-vm-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/pmd-xml-6.23.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/protobuf-java-3.7.1.jar
Binary file not shown.
Binary file removed bin/pmd/lib/rhino-1.7.7.2.jar
Binary file not shown.
Binary file removed bin/pmd/lib/scala-compiler-2.13.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/scala-library-2.13.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/scala-reflect-2.13.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/scalameta_2.13-4.2.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/scalap-2.13.0.jar
Binary file not shown.
Binary file removed bin/pmd/lib/scalapb-runtime_2.13-0.9.0.jar
Binary file not shown.
Binary file added bin/pmd/lib/slf4j-api-1.7.20.jar
Binary file not shown.
Binary file removed bin/pmd/lib/slf4j-api-1.7.25.jar
Binary file not shown.
Binary file removed bin/pmd/lib/sourcecode_2.13-0.1.7.jar
Binary file not shown.
Binary file removed bin/pmd/lib/trees_2.13-4.2.0.jar
Binary file not shown.
Loading

0 comments on commit 7a38ad9

Please sign in to comment.