{"record":{"id":"dd07456357bc6e77","repo":"puppetlabs/puppet","slug":"author-should-be-a-single-line-use-multiple-state-dd0745","errorCode":null,"errorMessage":"author should be a single line; use multiple statements","messagePattern":"author should be a single line; use multiple statements","errorType":"validation","errorClass":"ArgumentError","httpStatus":null,"severity":"error","filePath":"lib/puppet/interface/documentation.rb","lineNumber":233,"sourceCode":"        @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\n      if Array(value).any? { |x| x =~ /\\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')\n      end\n\n      @authors = Array(value).map { |x| Puppet::Interface::DocGen.strip_whitespace(x) }\n    end\n    alias :authors= :author=\n\n    # Sets the copyright owner and year. This returns the copyright\n    # string, so it can be called with no arguments retrieve that string\n    # without side effects.\n    # @param owner [String, Array<String>] The copyright owner or an\n    #   array of owners\n    # @param years [Integer, Range<Integer>, Array<Integer,Range<Integer>>]\n    #   The copyright year or years. Years can be specified with integers,\n    #   a range of integers, or an array of integers and ranges of\n    #   integers.\n    # @return [String] A string describing the copyright on this object.\n    # @api public\n    # @dsl Faces","sourceCodeStart":215,"sourceCodeEnd":251,"githubUrl":"https://github.com/puppetlabs/puppet/blob/e227c27540975c25aa22d533a52424a9d2fc886a/lib/puppet/interface/documentation.rb#L215-L251","documentation":"Error \"author should be a single line; use multiple statements\" thrown in puppetlabs/puppet.","triggerScenarios":"Thrown at lib/puppet/interface/documentation.rb:233 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"}