Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add option to set a Nextcloud target version or parse the appinfo #164

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jul 5, 2023

Inspired by #1, but I think parsing the appinfo is more helpful.

Summary

Allow to set a targetVersion option like targetVersion: '25.0.0' to only report deprecations / removals that happend before that version.
Moreover you can also set parseAppInfo: true to parse the appinfo/info.xml from a Nextcloud app and only report deprecations / removals before the max-version of the Nextcloud dependency.

@skjnldsv
Copy link
Contributor

skjnldsv commented Jul 6, 2023

Conflicts

@susnux susnux force-pushed the feat/allow-parsing-appinfo branch from 54ad406 to 2315a46 Compare July 6, 2023 14:01
@codecov
Copy link

codecov bot commented Jul 6, 2023

Codecov Report

Attention: Patch coverage is 92.06349% with 5 lines in your changes are missing coverage. Please review.

Project coverage is 86.23%. Comparing base (f40b36f) to head (e780f8a).

❗ Current head e780f8a differs from pull request most recent head abfad6d. Consider uploading reports for the commit abfad6d to get more accurate results

Files Patch % Lines
lib/rules/no-deprecations.js 50.00% 4 Missing ⚠️
lib/rules/no-removed-apis.js 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #164      +/-   ##
==========================================
+ Coverage   77.19%   86.23%   +9.04%     
==========================================
  Files           5        6       +1     
  Lines          57      109      +52     
==========================================
+ Hits           44       94      +50     
- Misses         13       15       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@susnux
Copy link
Contributor Author

susnux commented Jul 6, 2023

Conflicts

@skjnldsv resolved and added unit tests for 100% coverage of the added utils script

@skjnldsv
Copy link
Contributor

skjnldsv commented Jul 6, 2023

Should we enable it by default on the global config?

@susnux susnux linked an issue Jul 6, 2023 that may be closed by this pull request
@susnux
Copy link
Contributor Author

susnux commented Jul 6, 2023

Should we enable it by default on the global config?

I think this would be useful, what do you think @ChristophWurst ? (As you requested that feature in the first place)

You can set a `targetVersion` option like `targetVersion: '25.0.0'` to only report deprecations / removals that happend before that version.
Moreover you can also set `parseAppInfo: true` to parse the `appinfo/info.xml` from a Nextcloud app and only report deprecations / removals before the `max-version` of the Nextcloud dependency.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux force-pushed the feat/allow-parsing-appinfo branch from 2315a46 to e780f8a Compare March 25, 2024 14:01
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
@susnux susnux merged commit 52129aa into main Mar 25, 2024
5 checks passed
@susnux susnux deleted the feat/allow-parsing-appinfo branch March 25, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Read nextcloud versions from app's package.json
2 participants