0

Xcode shows Warnings for some of my Pod Files, especially warnings about deprecated variables.

I already have a .swiftlint.yml file and it is in the same folder as my Pods folder.

This is what my file looks like:

excluded:
   - Pods
   - Localization
line_length: 200
type_body_length:
   - 300 # warning
   - 400 # error
file_length:
warning: 500
error: 1200
function_body_length:
warning: 50
error: 100

I don't understand why it still shows these warnings when I exclude them.

nico_dkd
  • 99
  • 1
  • 9
  • Those are, probably, not SwiftLint warnings. And for Pod warning you can always try [`inhibit_all_warnings!`](https://guides.cocoapods.org/syntax/podfile.html#inhibit_all_warnings_bang). – user28434'mstep Mar 12 '19 at 13:17
  • @user28434 thank you, that worked for me! – nico_dkd Mar 12 '19 at 14:02

2 Answers2

0

Following will work to ignore the Pod files.

excluded: 
  - Pods

You just need to Make sure that your .swiftlint.yml file must be on the root path of project.

RJ168
  • 1,006
  • 2
  • 12
  • 22
0

try it

platform :ios

# ignore all warnings from all pods
inhibit_all_warnings!

# ignore warnings from a specific pod
pod 'SwiftLint', :inhibit_warnings => true
Jam
  • 101
  • 4