Summary: public This allow to tell Infer to skip the translation of some files. This is especially useful to skip the translation of some generated files following the syntax: > cat .inferconfig { "skip_translation": [ { "language": "Java", "source_contains": "_SHOULD_BE_SKIPPED_" } ] } Reviewed By: cristianoc Differential Revision: D2588095 fb-gh-sync-id: 3fda816master
parent
abc0e8315e
commit
6f3873aa99
@ -0,0 +1 @@
|
||||
/Users/jrm/infer/.inferconfig
|
@ -0,0 +1,20 @@
|
||||
/*
|
||||
* Copyright (c) 2015 - present Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
// _SHOULD_BE_SKIPPED_
|
||||
|
||||
package infer.inferandroidexample;
|
||||
|
||||
public class Generated {
|
||||
|
||||
static Object returnsNull() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1 @@
|
||||
../../.inferconfig
|
@ -0,0 +1,21 @@
|
||||
/*
|
||||
* Copyright (c) 2015 - present Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
// _SHOULD_BE_SKIPPED_
|
||||
|
||||
package codetoanalyze.java.infer;
|
||||
|
||||
|
||||
public class SkippedSourceFile {
|
||||
|
||||
static Object createdBySkippedFile() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue