@sap/eslint-plugin-cds 3.0.4 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -6,9 +6,16 @@ This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  The format is based on [Keep a Changelog](http://keepachangelog.com/).
8
8
 
9
+ ## [3.0.5] - 2024-09-11
10
+
11
+ ### Fixed
12
+
13
+ - Inferred rules did not run when executed via `eslint` or `cds lint`.
14
+
9
15
  ## [3.0.4] - 2024-06-19
10
16
 
11
17
  ### Changed
18
+
12
19
  - Internal refactorings
13
20
 
14
21
  ## [3.0.3] - 2024-05-08
@@ -68,7 +68,7 @@ module.exports = (spec) => {
68
68
  Cache.remove(`rule:${cdscontext.id}:${Cache.get('rootpath')}`)
69
69
  Cache.remove(`report:${context.getFilename()}:${context.id}`)
70
70
  }
71
- if (isTest || showInEditor || Cache.has(`rule:${cdscontext.id}:${Cache.get('rootpath')}`)) {
71
+ if (isTest || showInEditor || !Cache.has(`rule:${cdscontext.id}:${Cache.get('rootpath')}`)) {
72
72
  LOG && LOG(` Model: "${meta.model}" Rule: ${context.id}`)
73
73
  if (!showInEditor) {
74
74
  Cache.set(`rule:${cdscontext.id}:${Cache.get('rootpath')}`, 'done')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/eslint-plugin-cds",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "description": "ESLint plugin including recommended SAP Cloud Application Programming model and environment rules",
5
5
  "homepage": "https://cap.cloud.sap/",
6
6
  "keywords": [