Skip to content

Instantly share code, notes, and snippets.

View nrmancuso's full-sized avatar
🏝️

Nick Mancuso nrmancuso

🏝️
  • Delaware, US
View GitHub Profile
Title Author Genre Height Publisher
Fundamentals of Wavelets Goswami, Jaideva signal_processing 228 Wiley
Data Smart Foreman, John data_science 235 Wiley
God Created the Integers Hawking, Stephen mathematics 197 Penguin
Superfreakonomics Dubner, Stephen economics 179 HarperCollins
Orientalism Said, Edward history 197 Penguin
Nature of Statistical Learning Theory, The Vapnik, Vladimir data_science 230 Springer
Integration of the Indian States Menon, V P history 217 Orient Blackswan
Drunkard's Walk, The Mlodinow, Leonard science 197 Penguin
Image Processing & Mathematical Morphology Shih, Frank signal_processing 241 CRC
@nick-pc ➜ checkstyle git:(add-pmd-build-item) ✗ ./.ci/travis/travis.sh no-error-pmd
CS_version: 8.31-SNAPSHOT
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 33 modules...
[INFO] Installing Nexus Staging features:
[INFO] ... total of 33 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
@nrmancuso
nrmancuso / Test.java
Created March 17, 2020 19:56
parsed version of Test.java
public class Test {
String X = "ища"; // parser is ok with this line
String Y = "н"; // parser is ok with this line
char Y = 'н'; // parser is NOT ok with this line
}
@nrmancuso
nrmancuso / gist:b519815ec90e46f4918fe79dbfbc6f74
Created March 19, 2020 02:50
windows jar tree vs linux jar tree
Linux (UTF-8):
```➜ exception-char-literal-unicode_testing checkstyle -t Test.java
CLASS_DEF -> CLASS_DEF [1:0]
|--MODIFIERS -> MODIFIERS [1:0]
| `--LITERAL_PUBLIC -> public [1:0]
|--LITERAL_CLASS -> class [1:7]
|--IDENT -> Test [1:13]
`--OBJBLOCK -> OBJBLOCK [1:18]
|--LCURLY -> { [1:18]
|--VARIABLE_DEF -> VARIABLE_DEF [2:2]
<?xml version="1.0" encoding="UTF-8"?>
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report.xsd" name="com.puppycrawl.tools.checkstyle.api.TokenTypesTest" time="0.003" tests="4" errors="2" skipped="0" failures="1">
<properties>
<property name="awt.toolkit" value="sun.awt.X11.XToolkit"/>
<property name="java.specification.version" value="11"/>
<property name="sun.cpu.isalist" value=""/>
<property name="sun.jnu.encoding" value="UTF-8"/>
<property name="java.class.path" value="/home/nick/IdeaProjects/checkstyle/target/test-classes:/home/nick/IdeaProjects/checkstyle/target/classes:/home/nick/.m2/repository/info/picocli/picocli/4.2.0/picocli-4.2.0.jar:/home/nick/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7.jar:/home/nick/.m2/repository/org/antlr/antlr4-runtime/4.8-1/antlr4-runtime-4.8-1.jar:/home/nick/.m2/repository/commons-beanutils/commons-beanutils/1.9.4/commons-beanu
@nrmancuso
nrmancuso / gist:0d7afc4322fa413eead986009ae2e137
Created May 29, 2020 19:49
Exception in plugin rainbow brackets
Following exceptions happened soon after this one, most probably they are induced.
1/5
2020-05-28T21:07:34.289
com.intellij.diagnostic.PluginException: While loading class com.github.izhangzhihao.rainbow.brackets.action.ScopeOutsideHighlightingRestrainAction: com/github/izhangzhihao/rainbow/brackets/action/ScopeOutsideHighlightingRestrainAction has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0 [Plugin: izhangzhihao.rainbow.brackets]
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClassInsideSelf(PluginClassLoader.java:262)
at com.intellij.ide.plugins.cl.PluginClassLoader.tryLoadingClass(PluginClassLoader.java:205)
@nrmancuso
nrmancuso / gist:a89d2614131e8c0a44f3b31cb6775598
Last active June 1, 2020 13:41
projects-to-test-on file
# List of GIT repositories to clone / pull for checking with Checkstyle
# File format: REPO_NAME|[local|git|hg]|URL|[COMMIT_ID]|[EXCLUDE FOLDERS]
# Please note that bash comments works in this file
# Few projects that delivers set of unusual Java constructions that shall be correctly handled by AST visitor
# 'InputAllEscapedUnicodeCharacters' must be skipped because it is too big and slows down JXR
checkstyle|git|https://github.com/checkstyle/checkstyle.git|master|**/checkstyle/src/test/resources-noncompilable/**/*,**/InputAllEscapedUnicodeCharacters.java
sevntu-checkstyle|git|https://github.com/sevntu-checkstyle/sevntu.checkstyle|master||
checkstyle-sonar|git|https://github.com/checkstyle/sonar-checkstyle|master||
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name = "Checker">
<property name="charset" value="UTF-8"/>
<!-- do not change severity to 'error', as that will hide errors caused by exceptions -->
<property name="severity" value="warning"/>
➜ checkstyle-tester git:(master) ✗ groovy diff.groovy -r /home/nick/IdeaProjects/GSOC/checkstyle -b master -p initial-pattern-def-grammar -c /home/nick/Desktop/my_check.xml -l projects-to-test-on.properties
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=gasp -Dawt.useSystemAAFontSettings=gasp
[delete] Deleting directory /home/nick/IdeaProjects/contribution/checkstyle-tester/reports
Installing Checkstyle artifact (master) into local Maven repository ...
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
MSG:[maven-release-plugin] prepare for next development iteration
SHA-1:eb8ab63e6b073592dd46a13dd7f611f2fd71c5e5
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=gasp -Dawt.useSystemAAFontSettings=gasp
@nrmancuso
nrmancuso / gist:9ee318d14516f323d3da93f8e368148e
Created June 26, 2020 17:22
Files in OpenJDK14 that can be parsed after #7290
test/langtools/tools/javac/api/TestGetElementReferenceData.tree
test/langtools/tools/javac/diags/examples/InstanceofReifiableNotSafe.tree
test/langtools/tools/javac/diags/examples/MatchBindingExists.tree
test/langtools/tools/javac/diags/examples/PatternBindingMayNotBeAssigned.tree
test/langtools/tools/javac/diags/examples/PatternMatchingInstanceof.tree
test/langtools/tools/javac/lambda/deduplication/Deduplication.tree
test/langtools/tools/javac/patterns/BindingsExistTest.tree
test/langtools/tools/javac/patterns/BindingsTest1Merging.tree
test/langtools/tools/javac/patterns/BindingsTest2.tree