Method is longer than 50 lines

Answered

I get a jarring squiggle underscore for all lines in a method that has more than 50 lines. I've searched for the way to disable this and looked through preference settings. I'm using Scala but find no style setting for this. BTW I know that 50 lines is too long but have commented out code in several places experimentally and this makes the result hard to read. When using a black theme the squiggle is pretty distracting.

Anyone know how to turn this off.

0
4 comments
Avatar
Permanently deleted user

Wow thanks for the quick reply!

The options to disable inspections do not appear on my MBP High Sierra. Option-Enter with the cursor planted shows nothing at all.

I can run the inspections and get an inspections window but the only option is to turn them off for a class, not globally. 

IDEA seems to be saying that it is a "scalastyle" inspection but I can find no file that contains settings for them. There appears to be only one on/off checkbox in the preferences dialog. Not sure what else I'll lose if I turn that off.

Is there a way to control the type of scalastyle inspections that are performed? There appears to be a way to put them in an xml file but I can't find an existing one in the project .idea directory or in IDEA's location in /Applications or in my ~. 

 

0
Avatar
Permanently deleted user

Same question here, those jarring squiggle underscores are annoying.

0

Scalastyle examines your Scala code and indicates potential problems with it. Place the config file in <root> or <root>/.idea or <root>/project directory. Config file name can be scalastyle-config.xml or scalastyle_config.xml. Configs for test sources can be overridden by scalastyle-test-config.xml or scalastyle_test_config.xml. Full documentation is available on the Scalastyle website.

http://www.scalastyle.org/

0

Please sign in to leave a comment.