mirror of
https://github.com/super-linter/super-linter.git
synced 2024-12-29 07:54:52 -05:00
11b70102c3
- Run jscpd, gitleaks, textlint against the entire workspace instead of running them over single files, one by one. - Implement a warning function for deprecated variables. - Deprecate the VALIDATE_JSCPD_ALL_CODEBASE variable. - Remove duplicate configuration files when they are the same as the ones we provide in TEMPLATES. - Add a missing tests for ansible-lint. - Move ANSIBLE_DIRECTORY configuration when running tests in buildFileList, where similar configs are. - Simplify ansible-lint test cases to include only what's necessary, and not an entire set of roles, playbooks, and inventory. - Write instructions about major upgrades in the upgrade guide.
9 lines
339 B
Groovy
9 lines
339 B
Groovy
// disable ClassNameSameAsFilename because super-linter follows a specific
|
|
// file name for tests.
|
|
// groovylint-disable-next-line ClassNameSameAsFilename
|
|
class Example {
|
|
static void main(String[] args) {
|
|
File file = new File("E:/Example.txt")
|
|
println "The file ${file.absolutePath} has ${file.length()} bytes"
|
|
}
|
|
}
|