Linting issues / regex problem?
https://travis-ci.com/nf-core/rrna-ampliseq/jobs/160266618

https://github.com/nf-core/rrna-ampliseq/issues/43

Apparently it doesn't find the conda packages available? 

diff --git a/CHANGELOG.md b/CHANGELOG.md
index a32203aa..ac131834 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,8 @@
   * Sorting now works again
   * Output is partially coloured (better highlighting out of date pipelines)
   * Improved documentation
+* Fixed bugs in `nf-core lint`
+  * The order of conda channels is now correct, avoiding occasional erroneous errors that packages weren't found ([#207](https://github.com/nf-core/tools/issues/207))
 
 ## [v1.5](https://github.com/nf-core/tools/releases/tag/1.5) - 2019-03-13 Iron Shark
 
diff --git a/nf_core/lint.py b/nf_core/lint.py
index e1094a8b..cd904064 100755
--- a/nf_core/lint.py
+++ b/nf_core/lint.py
@@ -683,7 +683,7 @@ class PipelineLint(object):
         if '::' in depname:
             dep_channels = [depname.split('::')[0]]
             depname = depname.split('::')[1]
-        for ch in reversed(dep_channels):
+        for ch in dep_channels:
             anaconda_api_url = 'https://api.anaconda.org/package/{}/{}'.format(ch, depname)
             try:
                 response = requests.get(anaconda_api_url, timeout=10)
@@ -701,6 +701,8 @@ class PipelineLint(object):
                 elif response.status_code != 404:
                     self.warned.append((8, "Anaconda API returned unexpected response code '{}' for: {}\n{}".format(response.status_code, anaconda_api_url, response)))
                     raise ValueError
+                elif response.status_code == 404:
+                    logging.debug("Could not find {} in conda channel {}".format(dep, ch))
         else:
             # We have looped through each channel and had a 404 response code on everything
             self.failed.append((8, "Could not find Conda dependency using the Anaconda API: {}".format(dep)))
['nf_core/lint.py', 'CHANGELOG.md']