Skip to content

ensure < 6 levels of nesting scope #583#602

Merged
moldover merged 3 commits into
developfrom
scope_583
Jul 9, 2022
Merged

ensure < 6 levels of nesting scope #583#602
moldover merged 3 commits into
developfrom
scope_583

Conversation

@moldover
Copy link
Copy Markdown
Contributor

Refactor the offending chunks of code into functions.

@moldover moldover requested review from HEdingfield and tarheel June 10, 2022 02:32
@moldover
Copy link
Copy Markdown
Contributor Author

Btw, I could add the inspection file .idea/inspectionProfilesProject_Default.xml which does this but it looks like @HEdingfield git-ignored the inspections config file. Was it causing problems with different versions or something?

Copy link
Copy Markdown
Contributor

@HEdingfield HEdingfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I can't figure out which rule in there would exclude it. But, to answer your question, I think the idea was that our repo should be IDE-agnostic; we shouldn't assume that a developer is going to be using IntelliJ.

@moldover
Copy link
Copy Markdown
Contributor Author

moldover commented Jul 8, 2022

Hmm, I can't figure out which rule in there would exclude it. But, to answer your question, I think the idea was that our repo should be IDE-agnostic; we shouldn't assume that a developer is going to be using IntelliJ.

It's .idea/inspectionProfiles/Project_Default.xml so the rule .idea/**/Project_Default.xml hides it.

I agree that we don't want to force people to use intellij (and this won't change that) however this inspection profile is quite useful to us and the process needs to be preserved -- at least until something better is developed. Took me a couple hours to get it going, I'd hate to have that work repeated.

@tarheel
Copy link
Copy Markdown
Contributor

tarheel commented Jul 8, 2022

I agree with @moldover -- if including this file is useful for anyone working in IntelliJ but it doesn't actually force a developer to use that IDE, then it's worth doing.

Comment thread .gitignore Outdated
@moldover moldover merged commit b6a05a5 into develop Jul 9, 2022
@moldover moldover deleted the scope_583 branch July 9, 2022 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants