• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Camelcade / Perl5-IDEA / #525521653

26 Jul 2025 06:20AM UTC coverage: 82.193% (-0.09%) from 82.281%
#525521653

push

github

hurricup
#3058 Implemented synchronizer for the TemplateToolkitSettings

Configurable moved to the backend, because it is a part of the backend-only Perl5SettingsConfigurable

2 of 4 new or added lines in 2 files covered. (50.0%)

34 existing lines in 14 files now uncovered.

30981 of 37693 relevant lines covered (82.19%)

0.82 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

93.75
/plugin/common/src/main/java/com/perl5/lang/perl/idea/folding/PerlFoldingSettingsImpl.java
1
/*
2
 * Copyright 2015-2025 Alexandr Evstigneev
3
 *
4
 * Licensed under the Apache License, Version 2.0 (the "License");
5
 * you may not use this file except in compliance with the License.
6
 * You may obtain a copy of the License at
7
 *
8
 * http://www.apache.org/licenses/LICENSE-2.0
9
 *
10
 * Unless required by applicable law or agreed to in writing, software
11
 * distributed under the License is distributed on an "AS IS" BASIS,
12
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
 * See the License for the specific language governing permissions and
14
 * limitations under the License.
15
 */
16

17
package com.perl5.lang.perl.idea.folding;
18

19
import com.intellij.openapi.application.ApplicationManager;
20
import com.intellij.openapi.components.PersistentStateComponent;
21
import com.intellij.openapi.components.State;
22
import com.intellij.openapi.components.Storage;
23
import com.intellij.util.xmlb.XmlSerializerUtil;
24
import com.perl5.lang.perl.idea.PerlPathMacros;
25
import org.jetbrains.annotations.NotNull;
26
import org.jetbrains.annotations.Nullable;
27

28

29
@State(
30
  name = "PerlCodeFoldingSettings",
31
  storages = @Storage(PerlPathMacros.APP_CODEINSIGHT_SETTINGS_FILE),
32
  perClient = true
33
)
34
public class PerlFoldingSettingsImpl implements PersistentStateComponent<PerlFoldingSettingsImpl> {
1✔
35
  public boolean COLLAPSE_COMMENTS = true;
1✔
36
  public boolean COLLAPSE_CONSTANT_BLOCKS = false;
1✔
37
  public boolean COLLAPSE_ANON_ARRAYS = false;
1✔
38
  public boolean COLLAPSE_ANON_HASHES = false;
1✔
39
  public boolean COLLAPSE_PARENTHESISED = false;
1✔
40
  public boolean COLLAPSE_HEREDOCS = false;
1✔
41
  public boolean COLLAPSE_TEMPLATES = false;
1✔
42
  public boolean COLLAPSE_QW = false;
1✔
43
  public boolean COLLAPSE_CHAR_SUBSTITUTIONS = true;
1✔
44

45
  @Override
46
  public @Nullable PerlFoldingSettingsImpl getState() {
UNCOV
47
    return this;
×
48
  }
49

50
  @Override
51
  public void loadState(@NotNull PerlFoldingSettingsImpl state) {
52
    XmlSerializerUtil.copyBean(state, this);
1✔
53
  }
1✔
54

55
  public static PerlFoldingSettingsImpl getInstance() {
56
    return ApplicationManager.getApplication().getService(PerlFoldingSettingsImpl.class);
1✔
57
  }
58

59
  @Override
60
  public void noStateLoaded() {
61
    loadState(new PerlFoldingSettingsImpl());
1✔
62
  }
1✔
63
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc