diff --git a/.codeclimate.yml b/.codeclimate.yml index 9f6c02f0..bce59244 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -30,7 +30,7 @@ checks: identical-code: config: threshold: # language-specific defaults. an override will affect all languag - + plugins: checkstyle: enabled: false diff --git a/metarParser-commons/src/main/java/io/github/mivek/utils/Converter.java b/metarParser-commons/src/main/java/io/github/mivek/utils/Converter.java index 1c1a37c3..3ba26e53 100644 --- a/metarParser-commons/src/main/java/io/github/mivek/utils/Converter.java +++ b/metarParser-commons/src/main/java/io/github/mivek/utils/Converter.java @@ -36,7 +36,7 @@ public static String degreesToDirection(final String degreesStr) { return Messages.getInstance().getString("Converter.VRB"); } - return Messages.getInstance().getString("Converter." + DIRECTIONS[(int)((degrees+11.5)/22.5)]); + return Messages.getInstance().getString("Converter." + DIRECTIONS[(int) ((degrees + 11.5) / 22.5)]); } /** diff --git a/scripts/before_install.sh b/scripts/before_install.sh index e2bf17f2..f611b65f 100644 --- a/scripts/before_install.sh +++ b/scripts/before_install.sh @@ -21,7 +21,7 @@ if [[ "$isPRMerged" = true ]] ; then git config --global user.email "travis@travis-ci.com" git config --global user.name "Travis CI" git add pom.xml - git add **/pom.xml + git add ./**/pom.xml git commit -m "Bump pom" git push https://${TRAVIS_GIT_USER}@github.com/mivek/metarParser.git HEAD:master fi