Disable "UseOfSystemOutOrSystemErr" inspection in tests
This commit is contained in:
+1
-1
@@ -360,7 +360,7 @@
|
|||||||
<inspection_tool class="SwitchStatementWithConfusingDeclaration" enabled="true" level="WARNING" enabled_by_default="true" />
|
<inspection_tool class="SwitchStatementWithConfusingDeclaration" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||||
<inspection_tool class="SynchronizeOnThis" enabled="true" level="WARNING" enabled_by_default="true" />
|
<inspection_tool class="SynchronizeOnThis" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||||
<inspection_tool class="SystemOutErr" enabled="true" level="WARNING" enabled_by_default="true">
|
<inspection_tool class="SystemOutErr" enabled="true" level="WARNING" enabled_by_default="true">
|
||||||
<scope name="IDEA Test Sources" level="WARNING" enabled="false" />
|
<scope name="Tests" level="WARNING" enabled="false" />
|
||||||
</inspection_tool>
|
</inspection_tool>
|
||||||
<inspection_tool class="TeardownCallsSuperTeardown" enabled="true" level="WARNING" enabled_by_default="true" />
|
<inspection_tool class="TeardownCallsSuperTeardown" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||||
<inspection_tool class="TeardownIsPublicVoidNoArg" enabled="true" level="WARNING" enabled_by_default="true" />
|
<inspection_tool class="TeardownIsPublicVoidNoArg" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ public class CliBaseTest {
|
|||||||
@NotNull
|
@NotNull
|
||||||
private static String executeCompilerGrabOutput(@NotNull CLICompiler<?> compiler, @NotNull String[] args) {
|
private static String executeCompilerGrabOutput(@NotNull CLICompiler<?> compiler, @NotNull String[] args) {
|
||||||
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
|
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
|
||||||
//noinspection UseOfSystemOutOrSystemErr
|
|
||||||
PrintStream origOut = System.out;
|
PrintStream origOut = System.out;
|
||||||
try {
|
try {
|
||||||
System.setOut(new PrintStream(bytes));
|
System.setOut(new PrintStream(bytes));
|
||||||
|
|||||||
@@ -79,7 +79,6 @@ public class ScriptTest extends CliBaseTest {
|
|||||||
@NotNull List<JetScriptDefinition> scriptDefinitions
|
@NotNull List<JetScriptDefinition> scriptDefinitions
|
||||||
) {
|
) {
|
||||||
KotlinPaths paths = new KotlinPathsFromHomeDir(new File("dist/kotlinc"));
|
KotlinPaths paths = new KotlinPathsFromHomeDir(new File("dist/kotlinc"));
|
||||||
//noinspection UseOfSystemOutOrSystemErr
|
|
||||||
GroupingMessageCollector messageCollector =
|
GroupingMessageCollector messageCollector =
|
||||||
new GroupingMessageCollector(new PrintingMessageCollector(System.err, MessageRenderer.PLAIN, false));
|
new GroupingMessageCollector(new PrintingMessageCollector(System.err, MessageRenderer.PLAIN, false));
|
||||||
Disposable rootDisposable = Disposer.newDisposable();
|
Disposable rootDisposable = Disposer.newDisposable();
|
||||||
|
|||||||
@@ -129,7 +129,6 @@ public class TestlibTest extends UsefulTestCase {
|
|||||||
if ("junit/framework/Test".equals(typeMapper.mapClass(superClass).getInternalName())) {
|
if ("junit/framework/Test".equals(typeMapper.mapClass(superClass).getInternalName())) {
|
||||||
String name = typeMapper.mapClass(descriptor).getInternalName();
|
String name = typeMapper.mapClass(descriptor).getInternalName();
|
||||||
|
|
||||||
//noinspection UseOfSystemOutOrSystemErr
|
|
||||||
System.out.println(name);
|
System.out.println(name);
|
||||||
|
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
|
|||||||
@@ -1,3 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2010-2013 JetBrains s.r.o.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
package org.jetbrains.jet.generators.builtins;
|
package org.jetbrains.jet.generators.builtins;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableSet;
|
import com.google.common.collect.ImmutableSet;
|
||||||
@@ -27,7 +43,6 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
@SuppressWarnings("UseOfSystemOutOrSystemErr")
|
|
||||||
public class BuiltInsSerializer {
|
public class BuiltInsSerializer {
|
||||||
private static final String BUILT_INS_SRC_DIR = "idea/builtinsSrc";
|
private static final String BUILT_INS_SRC_DIR = "idea/builtinsSrc";
|
||||||
public static final String DEST_DIR = "compiler/frontend/builtins";
|
public static final String DEST_DIR = "compiler/frontend/builtins";
|
||||||
|
|||||||
@@ -51,7 +51,6 @@ public abstract class AbstractHighlightingTest extends LightCodeInsightFixtureTe
|
|||||||
myFixture.checkHighlighting(checkWarnings, checkInfos, checkWeakWarnings);
|
myFixture.checkHighlighting(checkWarnings, checkInfos, checkWeakWarnings);
|
||||||
}
|
}
|
||||||
catch (FileComparisonFailure e) {
|
catch (FileComparisonFailure e) {
|
||||||
//noinspection UseOfSystemOutOrSystemErr
|
|
||||||
System.out.println(getFileWithTextAttributesKeys());
|
System.out.println(getFileWithTextAttributesKeys());
|
||||||
|
|
||||||
throw e;
|
throw e;
|
||||||
|
|||||||
@@ -135,7 +135,6 @@ public final class RhinoUtils {
|
|||||||
String problems = lintIt(context, filename, scope);
|
String problems = lintIt(context, filename, scope);
|
||||||
if (problems != null) {
|
if (problems != null) {
|
||||||
//fail(problems);
|
//fail(problems);
|
||||||
//noinspection UseOfSystemOutOrSystemErr
|
|
||||||
System.out.print(problems);
|
System.out.print(problems);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,8 +21,8 @@ import com.google.common.collect.Lists;
|
|||||||
import com.intellij.util.ArrayUtil;
|
import com.intellij.util.ArrayUtil;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.jet.cli.common.ExitCode;
|
import org.jetbrains.jet.cli.common.ExitCode;
|
||||||
import org.jetbrains.jet.cli.js.K2JSCompiler;
|
|
||||||
import org.jetbrains.jet.cli.common.arguments.K2JSCompilerArguments;
|
import org.jetbrains.jet.cli.common.arguments.K2JSCompilerArguments;
|
||||||
|
import org.jetbrains.jet.cli.js.K2JSCompiler;
|
||||||
import org.jetbrains.k2js.config.EcmaVersion;
|
import org.jetbrains.k2js.config.EcmaVersion;
|
||||||
import org.jetbrains.k2js.test.SingleFileTranslationTest;
|
import org.jetbrains.k2js.test.SingleFileTranslationTest;
|
||||||
import org.jetbrains.k2js.test.utils.LibraryFilePathsUtil;
|
import org.jetbrains.k2js.test.utils.LibraryFilePathsUtil;
|
||||||
@@ -30,7 +30,6 @@ import org.jetbrains.k2js.test.utils.LibraryFilePathsUtil;
|
|||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@SuppressWarnings("UseOfSystemOutOrSystemErr")
|
|
||||||
abstract class StdLibTestBase extends SingleFileTranslationTest {
|
abstract class StdLibTestBase extends SingleFileTranslationTest {
|
||||||
|
|
||||||
protected StdLibTestBase() {
|
protected StdLibTestBase() {
|
||||||
|
|||||||
Reference in New Issue
Block a user