- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 0
chore(mega-linter): apply linters automatic fixes #47
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
          
     Open
      
      
            liblaf
  wants to merge
  1
  commit into
  main
  
    
      
        
          
  
    
      Choose a base branch
      
     
    
      
        
      
      
        
          
          
        
        
          
            
              
              
              
  
           
        
        
          
            
              
              
           
        
       
     
  
        
          
            
          
            
          
        
       
    
      
from
mega-linter-fix/main
  
      
      
   
  
    
  
  
  
 
  
      
    base: main
Could not load branches
            
              
  
    Branch not found: {{ refName }}
  
            
                
      Loading
              
            Could not load tags
            
            
              Nothing to show
            
              
  
            
                
      Loading
              
            Are you sure you want to change the base?
            Some commits from the old base branch may be removed from the timeline,
            and old review comments may become outdated.
          
          Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    | ✅ | 
| Descriptor | Linter | Files | Fixed | Errors | Warnings | Elapsed time | 
|---|---|---|---|---|---|---|
| ✅ BASH | shellcheck | 1 | 0 | 0 | 0.02s | |
| ✅ BASH | shfmt | 1 | 0 | 0 | 0 | 0.03s | 
| jscpd | yes | 89 | no | 4.01s | ||
| jsonlint | 9 | 1 | 0 | 0.16s | ||
| ✅ JSON | prettier | 9 | 0 | 0 | 0 | 0.39s | 
| ✅ JSON | v8r | 9 | 0 | 0 | 4.87s | |
| markdownlint | 5 | 0 | 35 | 0 | 1.05s | |
| ruff | yes | yes | 1 | no | 0.35s | |
| cspell | 204 | 2 | 0 | 5.67s | ||
| ✅ YAML | prettier | 3 | 0 | 0 | 0 | 0.37s | 
| ✅ YAML | v8r | 3 | 0 | 0 | 4.82s | |
| ✅ YAML | yamllint | 3 | 0 | 0 | 0.37s | 
Detailed Issues
⚠️  SPELL / cspell - 2 errors
.gitignore:203:3     - Unknown word (pvsm)       -- *.pvsm
	 Suggestions: [ppsm, poms, pms, vps, palm]
docs/design.md:12:169    - Unknown word (roboticists) -- specifically targeting roboticists and simulation researchers
	 Suggestions: [roboticist, robotics's, robotics, robotisms]
CSpell: Files checked: 201, Issues found: 2 in 2 files.
You can skip this misspellings by defining the following .cspell.json file at the root of your repository
Of course, please correct real typos before :)
{
    "version": "0.2",
    "language": "en",
    "ignorePaths": [
        "**/node_modules/**",
        "**/vscode-extension/**",
        "**/.git/**",
        "**/.pnpm-lock.json",
        ".vscode",
        "package-lock.json",
        "megalinter-reports"
    ],
    "words": [
        "pvsm",
        "roboticists"
    ]
}
You can also copy-paste megalinter-reports/LINTER_DEFAULT at the root of your repository
⚠️  COPYPASTE / jscpd - 89 errors
Clone found (python):
 - src/liblaf/apple/energy/elastic/phace_passive/_phace_passive.py [76:2 - 81:5] (5 lines, 93 tokens)
   src/liblaf/apple/energy/elastic/phace_passive/_phace_passive.py [32:6 - 37:4]
Clone found (python):
 - src/liblaf/apple/energy/elastic/phace_passive/_phace_passive.py [77:6 - 82:10] (5 lines, 89 tokens)
   src/liblaf/apple/energy/elastic/phace_passive/_phace_passive.py [61:10 - 66:10]
Clone found (python):
 - src/liblaf/apple/energy/elastic/phace_active/kernel.py [33:49 - 39:4] (6 lines, 73 tokens)
   src/liblaf/apple/energy/elastic/phace_active/kernel.py [13:35 - 19:4]
Clone found (python):
 - src/liblaf/apple/energy/elastic/phace_active/kernel.py [80:6 - 86:10] (6 lines, 74 tokens)
   src/liblaf/apple/energy/elastic/phace_active/kernel.py [56:6 - 62:10]
Clone found (python):
 - src/liblaf/apple/energy/elastic/phace_active/kernel.py [86:10 - 95:10] (9 lines, 81 tokens)
   src/liblaf/apple/energy/elastic/phace_active/kernel.py [19:4 - 28:4]
Clone found (python):
 - src/liblaf/apple/energy/elastic/phace_active/func.py [67:1 - 82:43] (15 lines, 147 tokens)
   src/liblaf/apple/energy/elastic/phace_passive/func.py [43:1 - 58:44]
Clone found (python):
 - src/liblaf/apple/energy/elastic/phace_active/func.py [84:1 - 97:9] (13 lines, 211 tokens)
   src/liblaf/apple/energy/elastic/phace_passive/func.py [60:1 - 73:9]
Clone found (python):
 - src/liblaf/apple/energy/elastic/phace_active/_phace_active.py [14:13 - 38:35] (24 lines, 273 tokens)
   src/liblaf/apple/energy/elastic/phace_passive/_phace_passive.py [14:8 - 38:36]
Clone found (python):
 - src/liblaf/apple/energy/elastic/phace_active/_phace_active.py [40:9 - 53:49] (13 lines, 171 tokens)
   src/liblaf/apple/energy/elastic/phace_passive/_phace_passive.py [38:3 - 51:50]
Clone found (python):
 - src/liblaf/apple/energy/elastic/phace_active/_phace_active.py [55:9 - 69:45] (14 lines, 196 tokens)
   src/liblaf/apple/energy/elastic/phace_passive/_phace_passive.py [53:9 - 67:46]
Clone found (python):
 - src/liblaf/apple/energy/elastic/phace_active/_phace_active.py [71:9 - 85:45] (14 lines, 202 tokens)
   src/liblaf/apple/energy/elastic/phace_passive/_phace_passive.py [69:9 - 83:46]
Clone found (python):
 - src/liblaf/apple/energy/elastic/arap_active/func.py [80:6 - 87:8] (7 lines, 85 tokens)
   src/liblaf/apple/energy/elastic/arap_active/func.py [56:6 - 63:8]
Clone found (python):
 - src/liblaf/apple/energy/elastic/arap_active/_arap_active.py [29:5 - 41:34] (12 lines, 156 tokens)
   src/liblaf/apple/energy/elastic/phace_passive/_phace_passive.py [26:9 - 38:36]
Clone found (python):
 - src/liblaf/apple/energy/elastic/arap_active/_arap_active.py [42:11 - 56:48] (14 lines, 183 tokens)
   src/liblaf/apple/energy/elastic/phace_active/_phace_active.py [39:8 - 51:50]
Clone found (python):
 - src/liblaf/apple/energy/elastic/arap_active/_arap_active.py [57:11 - 68:10] (11 lines, 114 tokens)
   src/liblaf/apple/energy/elastic/phace_active/_phace_active.py [54:8 - 63:2]
Clone found (python):
 - src/liblaf/apple/energy/elastic/arap_active/_arap_active.py [74:11 - 89:44] (15 lines, 214 tokens)
   src/liblaf/apple/energy/elastic/phace_active/_phace_active.py [70:8 - 83:46]
Clone found (python):
 - src/liblaf/apple/energy/elastic/arap/func.py [35:5 - 41:7] (6 lines, 131 tokens)
   src/liblaf/apple/energy/elastic/arap_active/func.py [60:5 - 66:17]
Clone found (python):
 - src/liblaf/apple/energy/elastic/arap/func.py [49:5 - 55:7] (6 lines, 139 tokens)
   src/liblaf/apple/energy/elastic/arap_active/func.py [84:5 - 90:17]
Clone found (python):
 - src/liblaf/apple/energy/elastic/arap/_arap.py [22:5 - 33:27] (11 lines, 143 tokens)
   src/liblaf/apple/energy/elastic/phace_passive/_phace_passive.py [27:18 - 38:36]
Clone found (python):
 - src/liblaf/apple/energy/elastic/arap/_arap.py [33:2 - 46:41] (13 lines, 176 tokens)
   src/liblaf/apple/energy/elastic/phace_passive/_phace_passive.py [38:8 - 51:50]
Clone found (python):
 - src/liblaf/apple/energy/elastic/arap/_arap.py [46:2 - 61:37] (15 lines, 215 tokens)
   src/liblaf/apple/energy/elastic/phace_passive/_phace_passive.py [52:8 - 67:46]
Clone found (python):
 - src/liblaf/apple/energy/elastic/arap/_arap.py [61:5 - 75:37] (14 lines, 202 tokens)
   src/liblaf/apple/energy/elastic/phace_passive/_phace_passive.py [69:9 - 83:46]
Clone found (python):
 - src/liblaf/apple/energy/collision/vert_face/kernel.py [124:38 - 132:4] (8 lines, 94 tokens)
   src/liblaf/apple/energy/collision/vert_face/kernel.py [79:38 - 87:7]
Clone found (python):
 - src/liblaf/apple/energy/collision/vert_face/kernel.py [173:44 - 181:10] (8 lines, 94 tokens)
   src/liblaf/apple/energy/collision/vert_face/kernel.py [79:38 - 87:7]
Clone found (python):
 - src/liblaf/apple/energy/collision/vert_face/kernel.py [226:2 - 233:10] (7 lines, 90 tokens)
   src/liblaf/apple/energy/collision/vert_face/kernel.py [80:7 - 87:7]
Clone found (python):
 - exp/2025/04/30/fat-muscle/src/20-simulate.py [17:5 - 30:6] (13 lines, 138 tokens)
   exp/2025/04/30/human-head/src/10-simulate.py [18:5 - 31:8]
Clone found (python):
 - exp/2025/04/30/fat-muscle/src/20-simulate.py [48:2 - 58:6] (10 lines, 136 tokens)
   exp/2025/04/30/human-head/src/10-simulate.py [47:2 - 57:8]
Clone found (python):
 - exp/2025/04/30/fat-muscle/src/20-simulate.py [59:6 - 72:3] (13 lines, 109 tokens)
   exp/2025/04/30/human-head/src/10-simulate.py [58:8 - 71:4]
Clone found (python):
 - exp/2025/04/30/cubic/src/10-gen.py [21:4 - 44:4] (23 lines, 196 tokens)
   exp/2025/04/30/human-head/src/10-simulate.py [24:7 - 46:9]
Clone found (python):
 - exp/2025/04/30/cubic/src/10-gen.py [44:2 - 71:2] (27 lines, 305 tokens)
   exp/2025/04/30/fat-muscle/src/20-simulate.py [46:3 - 73:2]
Clone found (python):
 - src/liblaf/apple/struct/dictutils/_array_dict.py [21:14 - 30:5] (9 lines, 123 tokens)
   src/liblaf/apple/struct/dictutils/_node_container.py [14:8 - 24:5]
Clone found (python):
 - src/liblaf/apple/struct/dictutils/_array_dict.py [42:6 - 58:44] (16 lines, 124 tokens)
   src/liblaf/apple/struct/dictutils/_node_container.py [36:4 - 52:40]
Clone found (python):
 - src/liblaf/apple/func/elastic/phace_static.py [69:1 - 76:30] (7 lines, 99 tokens)
   src/liblaf/apple/energy/elastic/phace_passive/func.py [60:1 - 67:6]
Clone found (python):
 - src/liblaf/apple/func/elastic/phace_static.py [76:30 - 82:9] (6 lines, 109 tokens)
   src/liblaf/apple/energy/elastic/phace_passive/func.py [67:35 - 73:9]
Clone found (python):
 - src/liblaf/apple/func/elastic/arap.py [34:30 - 46:30] (12 lines, 179 tokens)
   src/liblaf/apple/energy/elastic/arap/func.py [34:35 - 46:35]
Clone found (python):
 - src/liblaf/apple/func/elastic/arap.py [46:30 - 53:2] (7 lines, 181 tokens)
   src/liblaf/apple/energy/elastic/arap/func.py [46:35 - 55:2]
Clone found (python):
 - src/liblaf/apple/energy/elastic/_arap.py [13:5 - 34:25] (21 lines, 187 tokens)
   src/liblaf/apple/energy/elastic/arap/_arap.py [12:5 - 38:7]
Clone found (python):
 - src/liblaf/apple/energy/elastic/_arap.py [34:25 - 47:39] (13 lines, 176 tokens)
   src/liblaf/apple/energy/elastic/arap/_arap.py [33:27 - 51:7]
Clone found (python):
 - src/liblaf/apple/energy/elastic/_arap.py [47:39 - 62:35] (15 lines, 215 tokens)
   src/liblaf/apple/energy/elastic/arap/_arap.py [46:41 - 67:7]
Clone found (python):
 - src/liblaf/apple/energy/elastic/_arap.py [62:35 - 76:35] (14 lines, 210 tokens)
   src/liblaf/apple/energy/elastic/arap/_arap.py [61:37 - 83:7]
Clone found (python):
 - src/liblaf/apple/energy/elastic/_arap.py [94:39 - 100:8] (6 lines, 73 tokens)
   src/liblaf/apple/energy/elastic/arap/kernel.py [22:41 - 28:39]
Clone found (python):
 - src/liblaf/apple/energy/elastic/_arap.py [105:35 - 112:8] (7 lines, 87 tokens)
   src/liblaf/apple/energy/elastic/arap/kernel.py [33:37 - 40:35]
Clone found (python):
 - src/liblaf/apple/energy/elastic/_arap.py [119:35 - 127:8] (8 lines, 101 tokens)
   src/liblaf/apple/energy/elastic/arap/kernel.py [47:37 - 55:35]
Clone found (python):
 - src/libl
(Truncated to 8000 characters out of 16923)
⚠️  JSON / jsonlint - 1 error
File: pyrightconfig.json
Parse error on line 17, column 4:
...": "information"  // "reportAttributeAc...
----------------------^
Unexpected token "/"
⚠️  MARKDOWN / markdownlint - 35 errors
CHANGELOG.md:29 MD024/no-duplicate-heading Multiple headings with the same content [Context: "✨ Features"]
CHANGELOG.md:40 MD024/no-duplicate-heading Multiple headings with the same content [Context: "💥 BREAKING CHANGES"]
CHANGELOG.md:44 MD024/no-duplicate-heading Multiple headings with the same content [Context: "✨ Features"]
CHANGELOG.md:50 MD024/no-duplicate-heading Multiple headings with the same content [Context: "💥 BREAKING CHANGES"]
CHANGELOG.md:75 MD024/no-duplicate-heading Multiple headings with the same content [Context: "✨ Features"]
CHANGELOG.md:96 MD024/no-duplicate-heading Multiple headings with the same content [Context: "⬆️ Dependencies"]
CHANGELOG.md:101 MD024/no-duplicate-heading Multiple headings with the same content [Context: "♻ Code Refactoring"]
CHANGELOG.md:118 MD024/no-duplicate-heading Multiple headings with the same content [Context: "✨ Features"]
CHANGELOG.md:125 MD024/no-duplicate-heading Multiple headings with the same content [Context: "⬆️ Dependencies"]
CHANGELOG.md:131 MD024/no-duplicate-heading Multiple headings with the same content [Context: "♻ Code Refactoring"]
CHANGELOG.md:138 MD024/no-duplicate-heading Multiple headings with the same content [Context: "✨ Features"]
CHANGELOG.md:142 MD024/no-duplicate-heading Multiple headings with the same content [Context: "⬆️ Dependencies"]
CHANGELOG.md:147 MD024/no-duplicate-heading Multiple headings with the same content [Context: "♻ Code Refactoring"]
CHANGELOG.md:154 MD024/no-duplicate-heading Multiple headings with the same content [Context: "✨ Features"]
CHANGELOG.md:159 MD024/no-duplicate-heading Multiple headings with the same content [Context: "⬆️ Dependencies"]
CHANGELOG.md:163 MD024/no-duplicate-heading Multiple headings with the same content [Context: "♻ Code Refactoring"]
CHANGELOG.md:171 MD024/no-duplicate-heading Multiple headings with the same content [Context: "❤️ New Contributors"]
CHANGELOG.md:178 MD024/no-duplicate-heading Multiple headings with the same content [Context: "✨ Features"]
CHANGELOG.md:182 MD024/no-duplicate-heading Multiple headings with the same content [Context: "👷 Build System"]
CHANGELOG.md:186 MD024/no-duplicate-heading Multiple headings with the same content [Context: "❤️ New Contributors"]
docs/denotation.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "## Denotation"]
docs/README.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "{% include "../README.md" %}"]
README.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "<div align="center" markdown><..."]
README.md:3:1 MD045/no-alt-text Images should have alternate text (alt text)
README.md:4:1 MD045/no-alt-text Images should have alternate text (alt text)
README.md:5:1 MD045/no-alt-text Images should have alternate text (alt text)
README.md:26:1 MD045/no-alt-text Images should have alternate text (alt text)
README.md:36:2 MD045/no-alt-text Images should have alternate text (alt text)
README.md:50:2 MD045/no-alt-text Images should have alternate text (alt text)
README.md:58:2 MD045/no-alt-text Images should have alternate text (alt text)
README.md:70:2 MD045/no-alt-text Images should have alternate text (alt text)
README.md:78:2 MD045/no-alt-text Images should have alternate text (alt text)
README.md:80:2 MD045/no-alt-text Images should have alternate text (alt text)
README.md:84:2 MD045/no-alt-text Images should have alternate text (alt text)
README.md:100:2 MD045/no-alt-text Images should have alternate text (alt text)
⚠️  PYTHON / ruff - 1 error
F841 Local variable `lip_bottom_pv` is assigned to but never used
  --> examples/phace/close-mouth/main.py:62:5
   |
60 |         surface_pv.point_data["is-lip-top"], adjacent_cells=False
61 |     ).extract_surface()
62 |     lip_bottom_pv: pv.PolyData = surface_pv.extract_points(
   |     ^^^^^^^^^^^^^
63 |         surface_pv.point_data["is-lip-bottom"], adjacent_cells=False
64 |     ).extract_surface()
   |
help: Remove assignment to unused variable `lip_bottom_pv`
Found 1 error.
No fixes available (1 hidden fix can be enabled with the `--unsafe-fixes` option).
See detailed reports in MegaLinter artifacts
              
                    liblaf
  
              
              approved these changes
              
                  
                    Sep 2, 2025 
                  
              
              
            
            
| ❌ 2 Tests Failed:
 View the top 1 failed test(s) by shortest run time
 View the full list of 1 ❄️ flaky tests
 To view more test analytics, go to the Test Analytics Dashboard | 
a30d3ac    to
    64834cc      
    Compare
  
    
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
✅⚠️ MegaLinter analysis: Success with warnings
Detailed Issues
See detailed reports in MegaLinter artifacts