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

    https://github.com/apache/cordova-lib/pull/246#discussion_r33293060
  
    --- Diff: cordova-lib/spec-cordova/helpers.js ---
    @@ -17,12 +17,23 @@
         under the License.
     */
     
    -var path = require('path'),
    -    fs = require('fs'),
    -    shell = require('shelljs'),
    -    os = require('os');
    +var path         = require('path'),
    +    fs           = require('fs'),
    +    shell        = require('shelljs'),
    +    os           = require('os'),
    +    ConfigParser = require('../src/configparser/ConfigParser');
     
    -module.exports.tmpDir = function(subdir) {
    +// Just use Android everywhere; we're mocking out any calls to the 
`android` binary.
    +module.exports.testPlatform = 'android';
    +
    +function getConfigPath(dir) {
    +    if (dir.indexOf('config.xml') !== dir.length - 10) {
    --- End diff --
    
    A simple line comment stating the intent to see if dir 'endsWith' 
config.xml would be helpful.
    underscore would probably be overkill for this one method.


---
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