Proposal: Treat goog.scope as IIFE in indent rule
See original GitHub issueI’d like to modify the indent rule to treat code within a goog.scope
function expression similarly to an IIFE. The main reason is to correctly lint code that follows Google’s style guide.
I’m willing to implement this change.
For example, the following has a valid indent according to the google style guide:
goog.scope(function() {
var Button = goog.ui.Button;
var dom = goog.dom;
SomeType.prototype.findButton = function() {
var myText = "hi";
};
}); // goog.scope
Previous issues about this topic:
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Python Scope & the LEGB Rule: Resolving Names in Your Code
In this step-by-step tutorial, you'll learn what scopes are, how they work, and how to use them effectively to avoid name collisions in...
Read more >Pre-authorisation guidance | European Medicines Agency
This guidance should be read in conjunction with the rules governing medicinal products in the European Union, volume 2, notice to applicants and ......
Read more >Quality of Life for Prisoners Segregated for Their Own ...
This paper reviews the Chief Inspector of Prisons' reports on the conditions under which segregated inmates live in British prisons. Abstract. Rule 43...
Read more >C++ Core Guidelines - GitHub Pages
The C++ Core Guidelines are a set of tried-and-true guidelines, rules, and best practices about coding in C++.
Read more >All About Work Breakdown Structures (WBS) - Smartsheet
2.2), scope definition (3.2.2.3), and work breakdown structure development (3.2.2.4). Many organizations skip the step of creating a WBS plan, ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sorry for taking so long to find this. This issue comment on issue #6690 covers a proposal we are entertaining which would fix this issue. So I’d like to close as a duplicate if the team doesn’t object. Thanks!
Sounds good to me!