Skip to content

Commit

Permalink
Merge pull request #906 from rahulsom/update-codenarc
Browse files Browse the repository at this point in the history
chore(build): Update codenarc to 3.1.0
  • Loading branch information
rahulsom authored Dec 3, 2022
2 parents 5194395 + a750ca8 commit dd05daf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions gradle/codenarc/codenarc.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
apply plugin: 'codenarc'

dependencies {
codenarc 'org.codenarc:CodeNarc:2.2.0'
}

codenarc {
toolVersion = '1.1'
toolVersion = '3.1.0'
configFile = rootProject.file('gradle/codenarc/codenarc.groovy')
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ abstract class AbstractPatientSpec extends Specification {
@SuppressWarnings(['Instanceof', 'MethodParameterTypeRequired', 'AbstractPatientSpec',])
static Date getDate(def ts) {
if (ts instanceof String) {
new SimpleDateFormat('yyyy-MM-dd').parse(ts[0..10])
new SimpleDateFormat('yyyy-MM-dd', Locale.ROOT).parse(ts[0..10])
} else if (ts instanceof Long) {
new Date(ts)
} else {
Expand Down

0 comments on commit dd05daf

Please sign in to comment.