Skip to content

Commit

Permalink
update linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilja Postnovs authored and Ilja Postnovs committed Jan 27, 2024
1 parent fc33f06 commit 44dca13
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
run: node -p -e '`PACKAGE_VERSION=${require("./package.json").version}`' >> $GITHUB_ENV
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1.12.0
uses: ncipollo/release-action@v1.13.0
with:
tag: v${{ env.PACKAGE_VERSION }}
name: v${{ env.PACKAGE_VERSION }}
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.17.0 (27-01-2024)

- [UI5 Linter](https://github.com/iljapostnovs/ui5plugin-linter) updated to v1.15.0
- `WrongOverrideLinter` now checks if member is deprecated ([#398](https://github.com/iljapostnovs/VSCodeUI5Plugin/issues/398))
- Fix: `UnusedClassLinter` doesn't show error if any member is used outside the class ([#387](https://github.com/iljapostnovs/VSCodeUI5Plugin/issues/387))

## 1.16.6 (25-01-2024)

- [UI5 Parser](https://github.com/iljapostnovs/ui5plugin-parser) updated to v1.7.7
Expand Down
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "ui5plugin",
"displayName": "SAPUI5 Extension",
"description": "Extension for working with UI5 projects",
"version": "1.16.6",
"version": "1.17.0",
"publisher": "iljapostnovs",
"license": "Apache-2.0",
"author": "Ilja Postnovs <ilja.postnovs@gmail.com>",
Expand Down Expand Up @@ -540,7 +540,7 @@
"webpack-cli": "^5.1.4"
},
"dependencies": {
"ui5plugin-linter": "^1.14.5",
"ui5plugin-linter": "^1.15.0",
"ui5plugin-parser": "^1.7.7"
},
"__metadata": {
Expand Down
7 changes: 7 additions & 0 deletions src/test/js/project/.ui5pluginrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ui5": {
"ui5parser": {
"ui5version": "1.84.41"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ sap.ui.define([
return MasterController.extend("com.test.controller.ExtendMaster", {
onInit: function() {

}
},

deprecatedTest() {}
});
});
7 changes: 7 additions & 0 deletions src/test/js/project/src/controller/Master.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ sap.ui.define([
this._vRegexTest = /asd/;
},

/**
* @deprecated
*/
deprecatedTest() {

},

_testMyModel: function() {
this.getView().getModel("MyModel").testMethod();
},
Expand Down
16 changes: 12 additions & 4 deletions src/test/js/suite/data/TestData.json
Original file line number Diff line number Diff line change
Expand Up @@ -819,23 +819,31 @@
]
},
{
"className": "com.test.util.TypeDefTest",
"className": "com.test.controller.ExtendMaster",
"timeLimit": 100,
"errors": [
{
"text": "No references found for \"com.test.util.TypeDefTest\" class"
"text": "Member \"deprecatedTest\" is deprecated"
},
{
"text": "No references found for \"com.test.controller.ExtendMaster\" class"
}
]
},
{
"className": "com.test.statictest.StaticClass",
"className": "com.test.util.TypeDefTest",
"timeLimit": 100,
"errors": [
{
"text": "No references found for \"com.test.statictest.StaticClass\" class"
"text": "No references found for \"com.test.util.TypeDefTest\" class"
}
]
},
{
"className": "com.test.statictest.StaticClass",
"timeLimit": 100,
"errors": []
},
{
"className": "com.test.controller.LargeFile",
"timeLimit": 1400,
Expand Down
2 changes: 2 additions & 0 deletions src/test/js/suite/data/completionitems/JSCompletionItems.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
"className": "com.extend.fragmenttest.controller.MasterExtend",
"textToFind": "\"com/extend/",
"items": [
"\"sap/ui/core/date/CalendarUtils\"",
"\"sap/ui/core/date/CalendarWeekNumbering\"",
"\"sap\"",
"\"sap/apf\"",
"\"sap/apf/abap\"",
Expand Down

0 comments on commit 44dca13

Please sign in to comment.