I read over in a previous help request (Can javascript:S138 pick up functions in general, but exclude AMD module functions?) that the javascript:S138 rule is supposed to ignore AMD module function, however, it is not doing so in our code-base.
We are using a combination of require.js and backbone.js so our module definitions tend to look like this:
define(function(require) { // This function gets flagged by the rule
var $ = require("jquery");
var backbone = require("Backbone");
var Ajax = require("Ajax");
...
return backbone.View.extend({
/* various function definitions */
});
})
We are using Developer Edition Version 8.2 (build 32929)