{"record":{"id":"4d361eb0d9ef85c6","repo":"puppetlabs/puppet","slug":"author-should-be-a-single-line-use-multiple-state","errorCode":null,"errorMessage":"author should be a single line; use multiple statements for multiple authors","messagePattern":"author should be a single line; use multiple statements for multiple authors","errorType":"validation","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/puppet/interface/documentation.rb","lineNumber":212,"sourceCode":"    #   multiple authors, call this once for each author.\n    #   @param value [String] the name of the author\n    #   @api public\n    #   @dsl Faces\n    # @overload author\n    #   Returns a list of authors\n    #   @return [String, nil] The names of all authors separated by\n    #     newlines, or `nil` if no authors have been set.\n    #   @api private\n    def author(value = nil)\n      unless value.nil? then\n        unless value.is_a? String\n          # TRANSLATORS 'author' is an attribute name and should not be translated\n          raise ArgumentError, _('author must be a string; use multiple statements for multiple authors')\n        end\n\n        if value =~ /\\n/ then\n          # TRANSLATORS 'author' is an attribute name and should not be translated\n          raise ArgumentError, _('author should be a single line; use multiple statements for multiple authors')\n        end\n\n        @authors.push(Puppet::Interface::DocGen.strip_whitespace(value))\n      end\n      @authors.empty? ? nil : @authors.join(\"\\n\")\n    end\n\n    # Returns a list of authors. See {author}.\n    # @return [String] The list of authors, separated by newlines.\n    # @api private\n    def authors\n      @authors\n    end\n\n    # @api private\n    def author=(value)\n      # I think it's a bug that this ends up being the exposed\n      # version of `author` on ActionBuilder","sourceCodeStart":194,"sourceCodeEnd":230,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/interface/documentation.rb#L194-L230","documentation":"Error \"author should be a single line; use multiple statements for multiple authors\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/interface/documentation.rb:212 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e227c27540975c25aa22d533a52424a9d2fc886a","analyzedAt":"2026-08-21T20:49:46.650Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}