File tree Expand file tree Collapse file tree 3 files changed +44
-1
lines changed Expand file tree Collapse file tree 3 files changed +44
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,14 @@ name: Pull Requst
33on : [pull_request] 
44
55jobs :
6+   lint :
7+     name : Lint Formatting 
8+     runs-on : ubuntu-latest 
9+     steps :
10+       - uses : actions/checkout@v4 
11+       - name : Lint Formatting 
12+         run : swift format lint --recursive --strict . 
13+ 
614  test-ubuntu-latest :
715    name : Test Swift ${{ matrix.swift }} Ubuntu Latest 
816    strategy :
Original file line number Diff line number Diff line change 1+  {
2+    "fileScopedDeclarationPrivacy" : {
3+      "accessLevel" : "private"
4+    },
5+    "indentation" : {
6+      "spaces" : 4
7+    },
8+    "indentConditionalCompilationBlocks" : false,
9+    "indentSwitchCaseLabels" : true,
10+    "lineLength" : 140,
11+    "rules" : {
12+      "AllPublicDeclarationsHaveDocumentation" : true,
13+      "NeverForceUnwrap" : true,
14+      "NeverUseForceTry" : true,
15+      "NeverUseImplicitlyUnwrappedOptionals" : true,
16+      "NoAccessLevelOnExtensionDeclaration" : true,
17+      "NoLeadingUnderscores" : true,
18+      "OmitExplicitReturns" : true,
19+      "UseEarlyExits" : true,
20+      "UseWhereClausesInForLoops" : true,
21+      "ValidateDocumentationComments" : true
22+    },
23+    "spacesAroundRangeFormationOperators" : true,
24+    "version" : 1
25+  }
Original file line number Diff line number Diff line change 22## Getting Started  
33
44## Contributing  
5+ ### Code Formatting  
6+ This package makes use of [ swift-format] ( https://github.com/swiftlang/swift-format ) , which is built directly into the swift toolchain as of
7+ swift 6. To apply formatting rules to all files, which you should do before submitting a PR, run from the root of the repository:
58
6- ## Additional Resources  
9+ ``` sh 
10+ swift format --in-place --recursive . 
11+ ``` 
12+ 
13+ Formatting is validated with the ` --strict `  flag on every PR
14+ 
15+ 
16+ ## Additional Resources   
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments