fun isValid()

in aspoet/src/main/kotlin/com/google/androidstudiopoet/DependencyValidator.kt [25:33]


    fun isValid(dependencies: List<FromToDependencyConfig>, moduleCount: Int, androidModuleCount: Int): Boolean {
        for (dependency in dependencies) {
            if (badDependency(dependency, moduleCount, androidModuleCount)) {
                return false
            }
        }
        //TODO Add check for cycle dependencies and proper reporting
        return true
    }