Github user dblotsky commented on a diff in the pull request:

    https://github.com/apache/cordova-coho/pull/86#discussion_r32667023
  
    --- Diff: src/audit-license-headers.js ---
    @@ -44,11 +46,27 @@ var COMMON_RAT_EXCLUDES = [
         '*.xcworkspacedata',
         '*.xccheckout',
         '*.xcscheme',
    -    ];
    +];
    +
    +var RAT_IGNORE_PATH          = '.ratignore';
    +var RATIGNORE_COMMENT_PREFIX = '#';
    +
    +var RAT_NAME = 'apache-rat-0.10';
    +var RAT_URL  = 
'https://dist.apache.org/repos/dist/release/creadur/apache-rat-0.10/apache-rat-0.10-bin.tar.gz';
    +
    +function startsWith(string, prefix) {
    +    return string.lastIndexOf(prefix, 0) === 0;
    --- End diff --
    
    It works because `lastIndexOf` searches backwards. That's definitely an 
implementation detail, and I shouldn't rely on it.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to