mirror of
https://github.com/cqfn/eo.git
synced 2024-11-20 19:55:13 +03:00
fix(objectionary#3039): fix typos and add more false positive cases
This commit is contained in:
parent
8ca2243168
commit
b9e7f48563
@ -1,8 +1,11 @@
|
||||
[default]
|
||||
extend-ignore-identifiers-re = [
|
||||
"[D,d]atas*", # valid variable names
|
||||
"Olt*", # false positive
|
||||
"Onot", # false positive
|
||||
"BA", # false positive
|
||||
"thi", # false positive
|
||||
"lowcase", # false positive
|
||||
"[D,d]atas*", # valid variable names
|
||||
"thr", # valid variable name
|
||||
"cutted", # valid variable name
|
||||
"splitted", # valid variable name
|
||||
|
@ -167,7 +167,7 @@ public final class PhiMojo extends SafeMojo {
|
||||
|
||||
/**
|
||||
* Translate given xmir to phi calculus expression.
|
||||
* @param train Train that optimize and traslates given xmir
|
||||
* @param train Train that optimize and translates given xmir
|
||||
* @param xmir Text of xmir
|
||||
* @return Translated xmir
|
||||
* @throws ImpossibleToPhiTranslationException If fails to translate given XMIR to phi
|
||||
|
@ -95,7 +95,7 @@ final class PrintMojoTest {
|
||||
void printsInReversedNotation(final String pack, @TempDir final Path temp) throws Exception {
|
||||
final Map<String, Object> yaml = new Yaml().load(pack);
|
||||
MatcherAssert.assertThat(
|
||||
"PrintMojo should print EO in reveresed notation, but it didn't",
|
||||
"PrintMojo should print EO in reversed notation, but it didn't",
|
||||
PrintMojoTest.printed(yaml, temp, true).asString(),
|
||||
Matchers.equalTo((String) yaml.get("reversed"))
|
||||
);
|
||||
|
@ -251,7 +251,7 @@ final class VerifyMojoTest {
|
||||
/**
|
||||
* Apply XSL transformation.
|
||||
* @param xsl Path to XSL within classpath
|
||||
* @param xml Path to XML to be tranformed
|
||||
* @param xml Path to XML to be transformed
|
||||
*/
|
||||
private static void applyXsl(final String xsl, final Path xml) throws Exception {
|
||||
final XML output = new Xsline(
|
||||
|
@ -275,7 +275,7 @@ vapplicationArgUnboundCurrent
|
||||
vapplicationArgUnboundNext
|
||||
: vapplicationArgVanonymUnbound // vertical anonym object
|
||||
| vapplicationHeadNamed vapplicationArgs // vertical application
|
||||
| reversed oname? vapplicationArgsReversed // reversed verical application
|
||||
| reversed oname? vapplicationArgsReversed // reversed vertical application
|
||||
;
|
||||
|
||||
// Horizontal application as argument of vertical application
|
||||
@ -351,7 +351,7 @@ onlyphiTail: spacedArrow attributes
|
||||
;
|
||||
|
||||
// Inner object of horizontal anonym object
|
||||
// Does not contan elements in vertical notation
|
||||
// Does not contain elements in vertical notation
|
||||
hanonymInner
|
||||
: SPACE LB (hmethod | hmethodVersioned | happlication | hanonym | just) oname RB
|
||||
;
|
||||
@ -390,7 +390,7 @@ hmethodExtended
|
||||
// The whole method is written in one line
|
||||
// The head does not contain elements in vertical notation
|
||||
// The division of elements into regular and versioned ones is due to
|
||||
// the presence of horizontal application where head or agruments can't
|
||||
// the presence of horizontal application where head or arguments can't
|
||||
// contain version
|
||||
hmethodVersioned
|
||||
: hmethodHead methodTail* methodTailVersioned
|
||||
|
@ -63,7 +63,7 @@ interface Objects extends Iterable<Directive> {
|
||||
Objects prop(String key, Object value);
|
||||
|
||||
/**
|
||||
* Empty propery.
|
||||
* Empty property.
|
||||
* @param key Key.
|
||||
* @return Self.
|
||||
*/
|
||||
|
@ -58,7 +58,7 @@ final class Cages {
|
||||
/**
|
||||
* Encage object for the first time.
|
||||
* When object is encaged - locator will be generated.
|
||||
* @param object Object ot encage
|
||||
* @param object Object to encage
|
||||
* @return Locator to the object in cage
|
||||
*/
|
||||
int init(final Phi object) {
|
||||
|
@ -261,7 +261,7 @@
|
||||
53.as-bytes.not
|
||||
|
||||
# Test.
|
||||
[] > conjuction-of-bytes
|
||||
[] > conjunction-of-bytes
|
||||
02-EF-D4-05-5E-78-3A > a
|
||||
12-33-C1-B5-5E-71-55 > b
|
||||
eq. > @
|
||||
@ -286,7 +286,7 @@
|
||||
1
|
||||
|
||||
# Test.
|
||||
[] > convertable-to-bool
|
||||
[] > convertible-to-bool
|
||||
not. > @
|
||||
eq.
|
||||
01-.as-bool
|
||||
|
@ -12,7 +12,7 @@
|
||||
# The above copyright notice and this permission notice shall be included
|
||||
# in all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EcounterPRESS OR
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
||||
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
|
@ -63,7 +63,7 @@ public final class EOmallocTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
void freesMemoryIfErrorIsOccured() {
|
||||
void freesMemoryIfErrorIsOccurred() {
|
||||
final ErrorDummy dummy = new ErrorDummy();
|
||||
final Phi phi = EOmallocTest.allocated(
|
||||
new Data.ToPhi(1L),
|
||||
|
Loading…
Reference in New Issue
Block a user