simplycop 2.38.3 → 2.40.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e88395e458b9ec5b434cf786b1fa3d74631dc393c7b37804a5b96573b600b485
4
- data.tar.gz: 67671a9cc818e9d46434c407d60b62e4fb998f2d442408bff41a3bcf9c6480b3
3
+ metadata.gz: 1b600049d6e56248c611cac7bb1cd5dd4fe4a17d4b39e565f134f9aa20e5a905
4
+ data.tar.gz: f86896e09a6135b58a2ab682e0355109c36f8c29e50bf5b36c585e7bd7adc129
5
5
  SHA512:
6
- metadata.gz: b0e52a5502667bc837c6ffe6ec050f40996355eaeb02e4ba28eb84ead65886360352c541620be3ce02ff2783c267ca2590bd1ea784e3d511c1180a90d72b9d5f
7
- data.tar.gz: ce79539fa65b5b4cdb3f14db4e2bd3b72354b2283883d61b97a07f33c5571763aeca455d2e25b9a01e38d1cc6c7ee868e05565e04b819f87516c5db3994563b0
6
+ metadata.gz: 1c5ef2af8388701032eb92c2f96d4676e9b212dcd3e7dffd7ef14a91b936dc31d6b68ec97eca179cbb762592e98d040d871546b76fe9f2bcc5b0093d09d89180
7
+ data.tar.gz: a8369e59235ad95a8d7ed9cc585a003718bf85fdb5ea80aa65f53e9e2f459df3e94fb22e0dc8f9dcb657cebd38e5901a726ce8070c0dffe12874ba1d5c28bf94
@@ -33,14 +33,25 @@ jobs:
33
33
  gem-version: ${{ steps.version.outputs.version }}
34
34
  codacy-token: ${{ secrets.CODACY_TOKEN }}
35
35
  github-token: ${{ secrets.GITHUB_TOKEN }}
36
- dry-run: 'true'
37
- set-as-default: 'false'
36
+ dry-run: 'false'
37
+ set-as-default: 'true'
38
38
 
39
39
  - name: Print Summary
40
+ env:
41
+ VERSION: ${{ steps.version.outputs.version }}
42
+ DRY_RUN: ${{ steps.update.inputs.dry-run }}
43
+ CODING_STANDARD: ${{ steps.update.outputs.coding-standard-name }}
44
+ PATTERNS_APPLIED: ${{ steps.update.outputs.patterns-applied }}
45
+ REPOS_MIGRATED: ${{ steps.update.outputs.repositories-migrated }}
46
+ OLD_STANDARDS_DISABLED: ${{ steps.update.outputs.old-standards-disabled }}
40
47
  run: |
41
- echo "### 🎉 Codacy Updated for SimplyCop ${{ steps.version.outputs.version }}" >> $GITHUB_STEP_SUMMARY
48
+ echo "### 🎉 Codacy Updated for SimplyCop $VERSION" >> $GITHUB_STEP_SUMMARY
49
+ if [ "$DRY_RUN" = "true" ]; then
50
+ echo "" >> $GITHUB_STEP_SUMMARY
51
+ echo "> **Dry run** - below is what would have happened" >> $GITHUB_STEP_SUMMARY
52
+ fi
42
53
  echo "" >> $GITHUB_STEP_SUMMARY
43
- echo "**Coding Standard:** ${{ steps.update.outputs.coding-standard-name }}" >> $GITHUB_STEP_SUMMARY
44
- echo "**Patterns Applied:** ${{ steps.update.outputs.patterns-applied }}" >> $GITHUB_STEP_SUMMARY
45
- echo "**Repositories Migrated:** ${{ steps.update.outputs.repositories-migrated }}" >> $GITHUB_STEP_SUMMARY
46
- echo "**Old Standards Disabled:** ${{ steps.update.outputs.old-standards-disabled }}" >> $GITHUB_STEP_SUMMARY
54
+ echo "**Coding Standard:** $CODING_STANDARD" >> $GITHUB_STEP_SUMMARY
55
+ echo "**Patterns Applied:** $PATTERNS_APPLIED" >> $GITHUB_STEP_SUMMARY
56
+ echo "**Repositories Migrated:** $REPOS_MIGRATED" >> $GITHUB_STEP_SUMMARY
57
+ echo "**Old Standards Disabled:** $OLD_STANDARDS_DISABLED" >> $GITHUB_STEP_SUMMARY
data/.simplycop_style.yml CHANGED
@@ -315,6 +315,9 @@ Style/HashFetchChain:
315
315
  Style/HashLikeCase:
316
316
  Enabled: false
317
317
 
318
+ Style/HashLookupMethod:
319
+ Enabled: false
320
+
318
321
  Style/HashSlice:
319
322
  Enabled: false
320
323
 
@@ -494,6 +497,9 @@ Style/NegatedUnless:
494
497
  Style/NegatedWhile:
495
498
  Enabled: true
496
499
 
500
+ Style/NegativeArrayIndex:
501
+ Enabled: true
502
+
497
503
  Style/NestedFileDirname:
498
504
  Enabled: true
499
505
 
@@ -726,6 +732,7 @@ Style/ReturnNilInPredicateMethodDefinition:
726
732
 
727
733
  Style/ReverseFind:
728
734
  Enabled: true
735
+
729
736
  Style/SafeNavigation:
730
737
  Enabled: false
731
738
 
@@ -7,5 +7,5 @@
7
7
  #
8
8
 
9
9
  module Simplycop
10
- VERSION = '2.38.3'
10
+ VERSION = '2.40.0'
11
11
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplycop
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.38.3
4
+ version: 2.40.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simply Business
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-02-04 00:00:00.000000000 Z
10
+ date: 2026-02-10 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: benchmark