Question: I have added swiftLint to my Project and also added .swiftlint.yml file with all rules but some of rule of file not working in my project like excluded and line length. i want to exclude pod from Linting so i have added following code in .swiftlint.yml file

`excluded: # paths to ignore during linting. Takes precedence over`included`.
 - Carthage
 - Pods`

in my .yml file but pods is still not ignore.

Anyone have any idea where i done mistake.

Thanks in Advance

Answer: 
I can't really understand what do you want to achieve, however, I want to note:

1. Within the callback function you can check the condition of your values.
2. Return the values. At the moment you are not returning anything, and probably you are have an array with `undefined` values
```
let results = dates.filter(e => {
  if(is_filter_by_arrival_date && is_filter_by_dept_date){
    return ( e.arrival_date <= arrival_to && e.arrival_date >= arrival_from &&
             e.departure_date <= dept_to && e.departure_date > = dept_from);
  }
  else if(is_filter_by_arrival_date){
    return e.arrival_date <= arrival_to && e.arrival_date >= arrival_from
  } else if(is_filter_by_dept_date) {
    return e.departure_date <= dept_to && e.departure_date > = dept_from
  }
  return true;
})

```

I think in your question you have just used arrival\_to you should also make use of arrival\_from. I have implemented according to my understanding. 

Happy Coding!!